/* ============================================================
   extra.css — інтро-анімація, тикер тегів, правило дня,
   auth-форми, профіль, адмін-панель
   ============================================================ */

/* ================= ІНТРО-АНІМАЦІЯ ЗАПУСКУ ================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: block;
  background: transparent;
  transition: none;
}
.loader-half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background:
    radial-gradient(700px 340px at 50% 100%, rgba(61, 123, 253, 0.12), transparent 70%),
    linear-gradient(180deg, #04060d, #070b16);
  transition: transform .85s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-half.top { top: 0; }
.loader-half.bottom {
  bottom: 0;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255, 173, 32, 0.07), transparent 70%),
    linear-gradient(0deg, #04060d, #070b16);
}
.loader-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity .45s ease, transform .5s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-emblem {
  width: 92px; height: 92px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(110, 168, 255, 0.35);
  box-shadow: 0 0 60px rgba(61, 123, 253, 0.45), 0 0 120px rgba(61, 123, 253, 0.2);
  animation: logo-pulse 1.7s ease-in-out infinite;
}
.loader-emblem img { width: 100%; height: 100%; object-fit: cover; }

/* Розкриття завіси */
.loader.reveal .loader-half.top { transform: translateY(-102%); }
.loader.reveal .loader-half.bottom { transform: translateY(102%); }
.loader.reveal .loader-center { opacity: 0; transform: scale(1.12); }
.loader.hidden { visibility: hidden; pointer-events: none; }

/* ================= ТИКЕР ТЕГІВ (marquee) ================= */
.ticker-zone {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: grid;
  gap: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}
.ticker { overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ticker-left 46s linear infinite;
}
.ticker.reverse .ticker-track { animation: ticker-right 52s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker .tag { flex: none; font-size: 13px; padding: 8px 18px; }

/* ================= ПРАВИЛО ДНЯ ================= */
.rod-card {
  position: relative;
  max-width: 780px;
  margin: 56px auto 0;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  text-align: left;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  cursor: pointer;
}
.rod-flame {
  flex: none;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 24px;
  color: var(--yellow);
  background: rgba(255, 196, 45, 0.09);
  border: 1px solid rgba(255, 196, 45, 0.3);
  box-shadow: 0 0 28px rgba(255, 196, 45, 0.18);
  animation: star-twinkle 3.4s ease-in-out infinite;
}
.rod-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rod-title { font-size: 16.5px; font-weight: 800; line-height: 1.45; margin-bottom: 5px; }
.rod-text {
  font-size: 13.5px;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rod-num {
  margin-left: auto;
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue-2);
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(61, 123, 253, 0.12);
  border: 1px solid rgba(61, 123, 253, 0.3);
}

/* ================= РОЗДІЛЮВАЧ СЕКЦІЙ ================= */
.section-divider {
  position: relative;
  height: 1px;
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, 0.3) 30%, rgba(255, 196, 45, 0.35) 70%, transparent);
}
.section-divider::after {
  content: '★';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 196, 45, 0.8);
  background: var(--bg-0);
  padding: 0 16px;
}

/* ================= AUTH / ФОРМИ ================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow-x: clip;
}
.auth-card {
  width: 100%;
  max-width: 470px;
  padding: 40px 38px 36px;
  border-radius: 28px;
  position: relative;
}
.auth-logo {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(110, 168, 255, 0.35);
  box-shadow: 0 0 40px rgba(61, 123, 253, 0.35);
}
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(4, 7, 15, 0.6);
  border: 1px solid var(--glass-border);
  margin-bottom: 26px;
}
.auth-tab {
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.auth-tab.active {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #2f5fe0);
  box-shadow: 0 4px 18px rgba(61, 123, 253, 0.35);
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.form-field { position: relative; }
.form-field .icon-lead {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-3);
  pointer-events: none;
  transition: color .2s;
}
.form-field:focus-within .icon-lead { color: var(--blue-2); }
.form-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  background: rgba(4, 7, 15, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 13px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  border-color: rgba(61, 123, 253, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 123, 253, 0.13);
}
.form-input.invalid { border-color: rgba(255, 84, 112, 0.6); }
.form-err {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--danger);
}
.form-err.visible { display: block; }
.form-hint { margin-top: 7px; font-size: 12px; color: var(--text-3); }

.btn-block { width: 100%; margin-top: 8px; }
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}
.auth-alt a, .auth-alt button { color: var(--blue-2); font-weight: 700; cursor: pointer; }
.auth-alt a:hover, .auth-alt button:hover { text-decoration: underline; }

/* ================= ПРОФІЛЬ ================= */
.profile-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 38px;
  border-radius: 28px;
  text-align: center;
}
.profile-avatar {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2b5fe0 60%, var(--cyan));
  border: 2px solid rgba(110, 168, 255, 0.45);
  box-shadow: 0 0 44px rgba(61, 123, 253, 0.35);
  text-transform: uppercase;
}
.profile-nick { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.profile-email { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.role-badge.player {
  color: var(--blue-2);
  background: rgba(61, 123, 253, 0.1);
  border: 1px solid rgba(61, 123, 253, 0.3);
}
.role-badge.admin {
  color: #241a00;
  background: linear-gradient(120deg, var(--yellow), var(--orange));
  border: 1px solid rgba(255, 214, 90, 0.6);
  box-shadow: 0 0 22px rgba(255, 173, 32, 0.35);
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.profile-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(4, 7, 15, 0.45);
  border: 1px solid var(--glass-border);
}
.profile-stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--blue-2); }
.profile-stat .l { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-top: 4px; }
.profile-actions { display: flex; flex-direction: column; gap: 12px; }

/* ================= АДМІН-ПАНЕЛЬ ================= */
.admin-page { padding: 140px 0 80px; min-height: 100vh; position: relative; overflow-x: clip; }
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
}
.admin-title .accent { color: var(--yellow); text-shadow: 0 0 22px rgba(255, 196, 45, 0.5); }
.admin-head .spacer { flex: 1; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  transition: all .22s var(--ease);
  cursor: pointer;
}
.admin-tab:hover { color: var(--text-1); border-color: var(--glass-border-hover); }
.admin-tab.active {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #2f5fe0);
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 6px 22px rgba(61, 123, 253, 0.35);
}
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Дашборд */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.admin-stat {
  padding: 24px;
  border-radius: var(--r-md);
}
.admin-stat .v { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--blue-2); }
.admin-stat .l { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-top: 5px; }
.admin-stat.gold .v { color: var(--yellow); }
.admin-stat.danger .v { color: var(--danger); }
.admin-stat.green .v { color: var(--green); }

/* Редактор правил */
.admin-rules-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}
.admin-list-panel { padding: 18px; border-radius: var(--r-lg); }
.admin-list-search { position: relative; margin-bottom: 12px; }
.admin-list-search .form-input { padding-left: 42px; }
.admin-list-search .icon-lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; }
.admin-rule-list {
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.admin-rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: all .18s;
  cursor: pointer;
}
.admin-rule-item:hover { background: rgba(255,255,255,.05); }
.admin-rule-item.active { background: rgba(61,123,253,.12); border-color: rgba(61,123,253,.35); }
.admin-rule-item .n {
  flex: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-2);
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(61, 123, 253, 0.1);
  border: 1px solid rgba(61, 123, 253, 0.25);
}
.admin-rule-item .t {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-rule-item.edited .n { color: var(--yellow); border-color: rgba(255,196,45,.35); background: rgba(255,196,45,.08); }

.admin-editor { padding: 26px; border-radius: var(--r-lg); }
.admin-editor textarea.form-input {
  min-height: 220px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.7;
  font-family: var(--font-body);
}
.admin-editor .form-input.no-icon { padding-left: 16px; }
.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.editor-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14.5px;
}
.editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(255,196,45,.08);
  border: 1px solid rgba(255,196,45,.3);
  margin-left: 10px;
}

/* Таблиця користувачів */
.admin-table-wrap { border-radius: var(--r-lg); padding: 8px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.admin-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255,255,255,.025); }

.btn-sm {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  cursor: pointer;
}
.btn-sm.primary { color: #fff; background: linear-gradient(120deg, var(--blue), #2f5fe0); border: 1px solid rgba(110,168,255,.5); }
.btn-sm.primary:hover { filter: brightness(1.12); box-shadow: 0 4px 18px rgba(61,123,253,.4); }
.btn-sm.gold { color: #241a00; background: linear-gradient(120deg, var(--yellow), var(--orange)); border: 1px solid rgba(255,214,90,.6); }
.btn-sm.gold:hover { filter: brightness(1.07); }
.btn-sm.ghost { color: var(--text-1); background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); }
.btn-sm.ghost:hover { border-color: var(--glass-border-hover); }
.btn-sm.danger { color: var(--danger); background: rgba(255,84,112,.07); border: 1px solid rgba(255,84,112,.3); }
.btn-sm.danger:hover { background: rgba(255,84,112,.15); }

/* ================= МОДАЛЬНІ ВІКНА ================= */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all .28s var(--ease);
}
.modal-wrap.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 11, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 22px;
  transform: translateY(20px) scale(.96);
  transition: transform .3s var(--ease);
}
.modal-wrap.open .modal { transform: none; }
.modal-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-title .icon { color: var(--yellow); font-size: 20px; }
.modal-body { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.modal-body p { margin-bottom: 12px; }
.modal-body .form-input { margin-top: 4px; }
.modal-body textarea.form-input { min-height: 90px; resize: vertical; padding: 12px 14px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.modal-actions .btn-sm { padding: 11px 22px; font-size: 14px; }

/* ================= МІНІ-СЕЛЕКТ (кастомний <select>) ================= */
.mini-dd { display: inline-block; }
.dd-trigger.mini {
  min-width: 160px;
  padding: 9px 13px;
  font-size: 13px;
  border-radius: 11px;
  gap: 8px;
}
.dd-trigger.mini:disabled { opacity: .5; cursor: not-allowed; }
.dd-trigger.mini .chev { margin-left: auto; font-size: 13px; color: var(--text-3); transition: transform .22s var(--ease); }
.mini-dd.open .dd-trigger.mini .chev { transform: rotate(180deg); }
.mini-dd-panel {
  position: fixed;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 14px;
  padding: 6px;
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.mini-dd-panel.open { opacity: 1; visibility: visible; transform: none; }

/* Плашка "Техроботи" біля логотипу (бачить головний адмін) */
.maint-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #241a00;
  background: linear-gradient(120deg, var(--yellow), var(--orange));
  white-space: nowrap;
  flex: none;
  animation: maint-pulse 2.2s ease-in-out infinite;
}
@keyframes maint-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 159, 26, 0.35); }
  50%      { box-shadow: 0 0 28px rgba(255, 159, 26, 0.75); }
}

/* ================= КАСТОМНИЙ ДРОПДАУН КАТЕГОРІЙ ================= */
/* Панель пошуку має бути над картками результатів,
   інакше дропдаун ховається за правила (у карток свій stacking context) */
.search-panel { position: relative; z-index: 40; }

.dd { position: relative; margin-left: auto; min-width: 260px; }
.dd-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  background: rgba(4, 7, 15, 0.6);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.dd-trigger:hover { border-color: var(--glass-border-hover); }
.dd.open .dd-trigger { border-color: rgba(61, 123, 253, 0.55); box-shadow: 0 0 0 4px rgba(61, 123, 253, 0.14); }
.dd-trigger .dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-trigger .chev {
  margin-left: auto;
  flex: none;
  font-size: 15px;
  color: var(--text-3);
  transition: transform .25s var(--ease);
}
.dd.open .dd-trigger .chev { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, 92vw);
  max-height: 430px;
  overflow-y: auto;
  border-radius: 18px;
  padding: 8px;
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: all .25s var(--ease);
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel::-webkit-scrollbar { width: 8px; }

.dd-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--yellow);
}
.dd-group .icon { font-size: 13px; }
.dd-group .line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,196,45,.25), transparent); }

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: all .16s;
  cursor: pointer;
}
.dd-item:hover { background: rgba(61, 123, 253, 0.1); color: var(--text-1); }
.dd-item.active {
  background: rgba(61, 123, 253, 0.16);
  border-color: rgba(61, 123, 253, 0.4);
  color: #fff;
}
.dd-item .icon { flex: none; font-size: 15px; color: var(--blue-2); }
.dd-item .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-item .cnt {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 9px;
  border-radius: 999px;
}
.dd-item.active .cnt { color: var(--blue-2); border-color: rgba(61, 123, 253, 0.3); }

/* ================= ТУЛТІП ПОКАРАННЯ НА КАРТКАХ ================= */
.rule-punish-hint { position: relative; cursor: help; }
.rule-punish-hint::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: 300px;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #ffd9e0;
  white-space: normal;
  background: rgba(20, 8, 14, 0.97);
  border: 1px solid rgba(255, 84, 112, 0.45);
  box-shadow: 0 14px 40px rgba(2, 6, 18, 0.7), 0 0 26px rgba(255, 84, 112, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all .22s var(--ease);
  pointer-events: none;
  z-index: 20;
}
.rule-punish-hint::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 18px;
  border: 6px solid transparent;
  border-top-color: rgba(255, 84, 112, 0.45);
  opacity: 0;
  transition: opacity .22s;
  pointer-events: none;
  z-index: 20;
}
.rule-punish-hint:hover::after,
.rule-punish-hint:hover::before { opacity: 1; visibility: visible; transform: none; }

/* ================= ЕКРАН ТЕХНІЧНИХ РОБІТ ================= */
.maint-gate {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(255, 159, 26, 0.09), transparent 60%),
    rgba(4, 6, 13, 0.98);
  animation: panel-in .5s var(--ease);
}
.maint-icon {
  width: 86px; height: 86px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  font-size: 40px;
  color: var(--orange);
  background: rgba(255, 159, 26, 0.09);
  border: 1px solid rgba(255, 159, 26, 0.35);
  box-shadow: 0 0 50px rgba(255, 159, 26, 0.25);
  animation: star-twinkle 2.6s ease-in-out infinite;
}

/* ================= ЛОГИ В АДМІНЦІ ================= */
.log-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(61, 123, 253, 0.09);
  border: 1px solid rgba(61, 123, 253, 0.25);
  white-space: nowrap;
}
.log-action.danger { color: var(--danger); background: rgba(255,84,112,.07); border-color: rgba(255,84,112,.3); }
.log-action.gold { color: var(--yellow); background: rgba(255,196,45,.07); border-color: rgba(255,196,45,.3); }
.log-action.green { color: var(--green); background: rgba(55,217,155,.07); border-color: rgba(55,217,155,.3); }

/* ================= ЕКРАН ОЧІКУВАННЯ ПІДТВЕРДЖЕННЯ ================= */
.pending-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 40px;
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(61, 123, 253, 0.1), transparent 60%),
    rgba(4, 6, 13, 0.97);
  animation: panel-in .5s var(--ease);
}

/* Аватар у навбарі */
.nav-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: none;
}
.profile-avatar { overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Селекти в таблиці користувачів */
.role-select { cursor: pointer; }
.role-select option { background: var(--bg-2); color: var(--text-1); }

/* Бейдж очікуючих на вкладці */
.admin-tab .badge {
  min-width: 19px; height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  color: #241a00;
  background: linear-gradient(120deg, var(--yellow), var(--orange));
}

/* Навбар: точка-індикатор адміна на кнопці Профіль */
.nav-cta .admin-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

/* ================= АДАПТИВ ================= */
@media (max-width: 1024px) {
  .admin-rules-layout { grid-template-columns: 1fr; }
  .admin-rule-list { max-height: 300px; }
}
@media (max-width: 820px) {
  .rod-card { flex-direction: column; }
  .rod-num { margin-left: 0; }
  .ticker-zone { margin-top: 44px; }
  .auth-card { padding: 30px 22px 26px; }
  .profile-card { padding: 30px 22px; }
  .admin-page { padding-top: 120px; }
}
