/* Тема Retro Dark — ночной режим имиджборда */
:root {
  --bg-color: #1d1f21;
  --text-color: #c5c8c6;
  --title-color: #cc6666;
  --sub-color: #969896;
  --link-color: #81a2be;
  --link-hover: #b294bb;
  --border-color: #373b41;
  --reply-bg: #282a2e;
  --reply-highlight: #3c3f44;
  --postblock-bg: #373b41;
  --postblock-text: #de935f;
  --name-color: #b5bd68;
  --trip-color: #8abeb7;
  --date-color: #969896;
  --nav-bg: #212326;
}

.post-table input[type="text"],
.post-table input[type="password"],
.post-table textarea,
.qr-row input[type="text"],
.qr-row textarea {
  background-color: #282a2e !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.rules-box {
  background-color: #222428 !important;
}

.welcome-box, .board-card, .stats-box, .recent-box, .catalog-tile {
  background-color: #282a2e !important;
}

/* Стили 4PDA формы для темной темы */
.forum-reply-card, .file-preview-wrap {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.forum-bb-toolbar {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.bb-btn {
  background-color: #373b41 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.bb-btn:hover {
  background-color: #4b4e54 !important;
}

.forum-textarea-wrap textarea,
.ff-group input[type="text"],
.ff-group input[type="password"] {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.attach-dropzone {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: #4b4e54 !important;
  color: #c5c8c6 !important;
}

.attach-dropzone:hover, .attach-dropzone.dragover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #81a2be !important;
}

/* Стили чата для темной темы */
.chat-form-card {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.chat-toolbar {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.tool-btn {
  background-color: #373b41 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.tool-btn:hover {
  background-color: #4b4e54 !important;
}

.attach-label-btn {
  background-color: #373b41 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.chat-textarea-wrap textarea,
.field-item input[type="text"],
.field-item input[type="password"] {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.chat-submit-btn {
  background-color: #373b41 !important;
  color: #de935f !important;
  border-color: #4b4e54 !important;
}

/* Стили авторизации для темной темы */
.auth-card {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.auth-header {
  background-color: #373b41 !important;
  color: #de935f !important;
  border-color: #4b4e54 !important;
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.auth-submit-btn {
  background-color: #373b41 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.auth-error {
  background-color: #3c1e1e !important;
  border-color: #cc6666 !important;
  color: #f08080 !important;
}

.guest-auth-banner {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.guest-auth-banner a {
  color: #cc6666 !important;
}

.board-locked-banner {
  background-color: #282a2e !important;
  border-color: #de935f !important;
  color: #de935f !important;
  font-family: "Courier New", Courier, monospace !important;
}

/* ==========================================
   ТЁМНАЯ ТЕМА: ЛИДЕРБОРД
   ========================================== */

.leaderboard-widget,
.leaderboard-tabs-bar,
.leaderboard-info-note {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.leaderboard-widget-header h3,
.leaderboard-current-info h3 span {
  color: #cc6666 !important;
}

.leaderboard-table-wrap {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.leaderboard-table th {
  background-color: #212326 !important;
  color: #de935f !important;
  border-color: #373b41 !important;
}

.leaderboard-table td {
  border-color: #373b41 !important;
}

.leaderboard-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.lb-row.rank-gold {
  background-color: #32301f !important;
}

.lb-row.rank-silver {
  background-color: #2b2e33 !important;
}

.lb-row.rank-bronze {
  background-color: #33271f !important;
}

.lb-total-badge {
  background-color: #373b41 !important;
  color: #de935f !important;
  border-color: #4b4e54 !important;
}

.tab-btn {
  background-color: #212326 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.tab-btn:hover {
  background-color: #373b41 !important;
}

.tab-btn.active-tab {
  background-color: #cc6666 !important;
  color: #1d1f21 !important;
  border-color: #cc6666 !important;
}

.lb-item-score {
  background: #1d1f21 !important;
  border-color: #373b41 !important;
}

/* ==========================================
   ТЁМНАЯ ТЕМА: ПРОФИЛИ И ПОДПИСКИ
   ========================================== */

.profile-header-card,
.profile-posts-section {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.profile-avatar-retro {
  background-color: #373b41 !important;
  color: #de935f !important;
  border-color: #4b4e54 !important;
}

.profile-username,
.profile-section-header h3 {
  color: #cc6666 !important;
}

.profile-stat-box {
  background: #212326 !important;
  border-color: #373b41 !important;
}

.profile-stat-box.highlight-stat {
  background: rgba(204, 102, 102, 0.1) !important;
  border-color: #cc6666 !important;
}

.profile-stat-val {
  color: #de935f !important;
}

.user-post-item {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.user-post-snippet {
  color: #c5c8c6 !important;
}

/* ==========================================
   ТЁМНАЯ ТЕМА: АДМИНКА ИНВАЙТ-КОДОВ
   ========================================== */

.admin-actions-bar,
.code-stat-pill {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.admin-select {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.admin-gen-btn {
  background-color: #373b41 !important;
  color: #de935f !important;
  border-color: #4b4e54 !important;
}

.admin-gen-btn:hover {
  background-color: #4b4e54 !important;
}

.invite-code-pill {
  background-color: #1d1f21 !important;
  color: #de935f !important;
  border: 1px solid #373b41 !important;
}

.code-stat-pill.active b {
  color: #85c292 !important;
}

.code-status.active {
  color: #85c292 !important;
}

.code-status.used {
  color: #777 !important;
}

.auth-success-notice {
  background: #1e3c23 !important;
  border-color: #50a060 !important;
  color: #98fb98 !important;
}

.profile-change-pw-card {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.change-pw-field input {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.tenor-gif-thumb {
  border-color: #373b41 !important;
  background-color: #1d1f21 !important;
}

.tenor-loading {
  color: #999 !important;
  background: #1d1f21 !important;
  border-color: #373b41 !important;
}

.tenor-fallback-link {
  color: #81a2be !important;
}

/* ==========================================
   ОБЛЕГЧЕННАЯ ПАНЕЛЬ И TG-БОТ В ТЕМНОЙ ТЕМЕ
   ========================================== */
.post-form-toggle-btn {
  color: #81a2be !important;
}

.post-form-toggle-btn:hover {
  color: #cc6666 !important;
}

.compact-post-form {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.compact-label {
  color: #c5c8c6 !important;
}

.compact-input,
.compact-textarea {
  background-color: #1d1f21 !important;
  color: #c5c8c6 !important;
  border-color: #373b41 !important;
}

.compact-file-label,
.compact-submit-btn {
  background: #373b41 !important;
  color: #c5c8c6 !important;
  border-color: #4b4e54 !important;
}

.compact-file-label:hover,
.compact-submit-btn:hover {
  background: #4b4e54 !important;
}

.compact-file-name {
  color: #999 !important;
}

.compact-clear-btn {
  color: #cc6666 !important;
}

.tg-bot-notice {
  background-color: #1a291e !important;
  border-color: #3f6e46 !important;
  color: #c5c8c6 !important;
}

.tg-bot-link {
  color: #85c292 !important;
}

.tg-bot-link:hover {
  color: #b5bd68 !important;
}

/* ==========================================
   БОКОВОЕ МЕНЮ И ПРАВИЛА ПЛАТФОРМЫ В ТЕМЕ RETRO DARK
   ========================================== */
.side-drawer {
  background-color: #282a2e !important;
  border-color: #373b41 !important;
}

.drawer-top-bar, .drawer-footer {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.drawer-user-box, .drawer-guest-box {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.drawer-guest-buttons a,
.burger-menu-btn {
  background-color: #373b41 !important;
  border-color: #4b4e54 !important;
  color: #c5c8c6 !important;
}

.drawer-guest-buttons a:hover,
.burger-menu-btn:hover {
  background-color: #4b4e54 !important;
  color: #fff !important;
}

.reg-rules-container {
  background-color: #212326 !important;
  border-color: #373b41 !important;
}

.reg-rules-scrollable {
  background-color: #1d1f21 !important;
  border-color: #373b41 !important;
}

.rules-consent-field {
  background-color: rgba(63, 110, 70, 0.15) !important;
  border-color: #3f6e46 !important;
}

.rules-consent-text {
  color: #85c292 !important;
}


