/* ═══════════════════════════════════════════
   PHOENIX FORUM — Modern Responsive Styles
   Supports: theme-dark | theme-light | theme-space | theme-gold | theme-pink
   Breakpoints: 360px, 480px, 768px, 1024px, 1200px
   ═══════════════════════════════════════════ */

/* ─── Google Fonts for BB-code toolbar preview ─── */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Lobster&family=Merriweather:wght@300;400;700&family=Noto+Sans:wght@400;700&family=Open+Sans:wght@400;600;700&family=Pacifico&family=PT+Sans:wght@400;700&family=PT+Serif:wght@400;700&family=Playfair+Display:wght@400;700&family=Roboto:wght@400;500;700&family=Ubuntu:wght@400;700&display=swap');
/* Музыкальный плеер на форуме */
.music-player {
    margin: 15px 0;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(42,30,20,0.9), rgba(31,20,12,0.9));
    border-radius: 60px;
    border-left: 5px solid #ff7b00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.music-player audio {
    width: 70%;
    min-width: 200px;
    max-width: 400px;
    height: 36px;
    border-radius: 30px;
    outline: none;
    vertical-align: middle;
}

.music-player audio::-webkit-media-controls-panel {
    background-color: #f5e6d3;
}

.music-download {
    margin-left: 12px;
    color: #ffaa66;
    font-size: 12px;
    text-decoration: none;
}

.music-download:hover {
    color: #ffcc88;
    text-decoration: underline;
}

.music-link {
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 30px;
}

.music-link i {
    color: #ff7b00;
    margin-right: 8px;
}
/* ─── CSS Variables ─── */
:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── THEME: DARK ─── */
.theme-dark {
  --bg-body: #0f1115;
  --bg-card: #16191f;
  --bg-card-hover: #1c2029;
  --bg-header: rgba(22, 25, 31, 0.95);
  --bg-input: #1e222b;
  --bg-overlay: rgba(0,0,0,0.6);
  --text-primary: #e8ecf1;
  --text-secondary: #9aa3b2;
  --text-muted: #5c6575;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --online: #22c55e;
  --offline: #6b7280;
  --rank-novice: #6c757d;
  --rank-user: #17a2b8;
  --rank-experienced: #28a745;
  --rank-expert: #ffc107;
  --rank-master: #fd7e14;
  --rank-pro: #e83e8c;
  --rank-moder: #ff6600;
  --scrollbar-track: #16191f;
  --scrollbar-thumb: #2d3342;
  --scrollbar-thumb-hover: #3d4558;
}

/* ─── THEME: LIGHT ─── */
.theme-light {
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-input: #f9fafb;
  --bg-overlay: rgba(0,0,0,0.4);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.2);
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.12);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --online: #16a34a;
  --offline: #9ca3af;
  --rank-novice: #6b7280;
  --rank-user: #0891b2;
  --rank-experienced: #059669;
  --rank-expert: #d97706;
  --rank-master: #ea580c;
  --rank-pro: #db2777;
  --rank-moder: #ea580c;
  --scrollbar-track: #f3f4f6;
  --scrollbar-thumb: #d1d5db;
  --scrollbar-thumb-hover: #9ca3af;
}

/* ─── THEME: SPACE ─── */
.theme-space {
  --bg-body: #05070a;
  --bg-card: #0a0e17;
  --bg-card-hover: #0f1522;
  --bg-header: rgba(10, 14, 23, 0.95);
  --bg-input: #0d1220;
  --bg-overlay: rgba(0,0,0,0.7);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.3);
  --border: rgba(6, 182, 212, 0.1);
  --border-hover: rgba(6, 182, 212, 0.2);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --online: #10b981;
  --offline: #475569;
  --rank-novice: #64748b;
  --rank-user: #0891b2;
  --rank-experienced: #059669;
  --rank-expert: #d97706;
  --rank-master: #ea580c;
  --rank-pro: #e11d48;
  --rank-moder: #f97316;
  --scrollbar-track: #0a0e17;
  --scrollbar-thumb: #1e293b;
  --scrollbar-thumb-hover: #334155;
}

/* ─── THEME: GOLD ─── */
.theme-gold {
  --bg-body: #0c0a09;
  --bg-card: #1c1917;
  --bg-card-hover: #292524;
  --bg-header: rgba(28, 25, 23, 0.95);
  --bg-input: #231f1c;
  --bg-overlay: rgba(0,0,0,0.6);
  --text-primary: #fafaf9;
  --text-secondary: #a8a29e;
  --text-muted: #78716c;
  --accent: #d97706;
  --accent-hover: #f59e0b;
  --accent-glow: rgba(217, 119, 6, 0.3);
  --border: rgba(217, 119, 6, 0.1);
  --border-hover: rgba(217, 119, 6, 0.2);
  --success: #65a30d;
  --warning: #ca8a04;
  --danger: #dc2626;
  --online: #65a30d;
  --offline: #78716c;
  --rank-novice: #78716c;
  --rank-user: #0d9488;
  --rank-experienced: #16a34a;
  --rank-expert: #ca8a04;
  --rank-master: #ea580c;
  --rank-pro: #db2777;
  --rank-moder: #ea580c;
  --scrollbar-track: #1c1917;
  --scrollbar-thumb: #44403c;
  --scrollbar-thumb-hover: #57534e;
}

/* ─── THEME: PINK ─── */
.theme-pink {
  --bg-body: #0f0a0f;
  --bg-card: #1a121a;
  --bg-card-hover: #251a25;
  --bg-header: rgba(26, 18, 26, 0.95);
  --bg-input: #231823;
  --bg-overlay: rgba(0,0,0,0.6);
  --text-primary: #fce7f6;
  --text-secondary: #d8b4d0;
  --text-muted: #9d7493;
  --accent: #db2777;
  --accent-hover: #ec4899;
  --accent-glow: rgba(219, 39, 119, 0.3);
  --border: rgba(219, 39, 119, 0.1);
  --border-hover: rgba(219, 39, 119, 0.2);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --online: #22c55e;
  --offline: #9d7493;
  --rank-novice: #9d7493;
  --rank-user: #0891b2;
  --rank-experienced: #059669;
  --rank-expert: #d97706;
  --rank-master: #ea580c;
  --rank-pro: #db2777;
  --rank-moder: #f97316;
  --scrollbar-track: #1a121a;
  --scrollbar-thumb: #3d2b3a;
  --scrollbar-thumb-hover: #52394d;
}

/* ─── Base Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ─── Forum Container ─── */
.forum-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

@media (max-width: 480px) {
  .forum-container { padding: 0 10px 30px; }
}

/* ─── Header ─── */
.forum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
}

.logo-area h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.logo-area h1 i {
  font-size: 1.4rem;
}

.logo-area p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Auth Area ─── */
.auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.welcome-text strong {
  color: var(--accent);
}

.auth-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  min-width: 120px;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-input::placeholder {
  color: var(--text-muted);
}

.auth-btn, .logout-btn, .reg-link, .pass-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

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

.auth-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.logout-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.logout-btn:hover {
  background: var(--danger);
  color: #fff;
}

.reg-link {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.reg-link:hover {
  background: var(--accent);
  color: #fff;
}

.pass-link {
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 10px;
}

.pass-link:hover {
  color: var(--accent);
}

/* ─── Theme Selector ─── */
.theme-selector {
  position: relative;
}

.theme-current {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-current:hover {
  border-color: var(--accent);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 160px;
  z-index: 200;
  display: none;
}

.theme-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.theme-dropdown button:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

/* ─── Quick Bar ─── */
.quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.quick-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.quick-bar a:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

#searchBox {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

#searchBox .auth-input {
  flex: 1;
}

/* ─── Section Block ─── */
.section-block {
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ─── Forum Card ─── */
.forum-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  transition: var(--transition);
  position: relative;
}

.forum-card:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.forum-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.forum-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  font-size: 1.3rem;
}

.newforumicon::before { content: '\f086'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent); }
.oldforumicon::before { content: '\f0c0'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--text-muted); }
.closedforumicon::before { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--danger); }

.forum-info {
  min-width: 0;
}

.forum-title a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.forum-title a:hover {
  color: var(--accent);
}

.forum-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.forum-desc i {
  color: var(--text-muted);
  font-style: italic;
}

.forum-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: right;
}

.forum-last {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 220px;
  text-align: right;
  line-height: 1.4;
}

.forum-last a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.forum-last a:hover {
  text-decoration: underline;
}

/* ─── Topic Card ─── */
.topic-card {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  transition: var(--transition);
}

.topic-card:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

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

.topic-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.topic-title a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.topic-title a:hover {
  color: var(--accent);
}

.topic-title b {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.topic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topic-meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.topic-meta a:hover {
  color: var(--danger);
}

/* Topic icons */
.newicon::before { content: '\f0eb'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent); }
.oldicon::before { content: '\f15c'; font-family: 'Font Awesome 6 Free'; font-weight: 400; color: var(--text-muted); }
.pinnedicon::before { content: '\f08d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--warning); }
.closedicon::before { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--danger); }
.movedicon::before { content: '\f0ec'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--text-muted); }

/* ─── Post Block ─── */
.post-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.post-block:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-number {
  font-weight: 700;
  color: var(--accent);
}

.post-main {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
  min-height: 120px;
}

.post-message-area {
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-message-area a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.post-message-area a:hover {
  border-bottom-color: var(--accent);
}

.post-message-area img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.post-message-area iframe {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.post-message-area audio {
  width: 100%;
  margin: 8px 0;
}

.post-message-area blockquote,
.post-message-area [class*="quote"] {
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  margin: 10px 0;
  background: var(--bg-body);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-message-area .signature {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-author-area {
  padding: 16px;
  background: var(--bg-body);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.author-avatar {
  position: relative;
}

Hpx;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: var(--transition);
}

.avatar-glow {
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
}

.glow-moderator { background: linear-gradient(135deg, var(--rank-moder), #ff9500); box-shadow: 0 0 15px rgba(255, 102, 0, 0.4); }
.glow-witcher { background: linear-gradient(135deg, #9b59b6, #8e44ad); box-shadow: 0 0 15px rgba(155, 89, 182, 0.4); }
.glow-shatika { background: linear-gradient(135deg, #e84393, #fd79a8); box-shadow: 0 0 15px rgba(232, 67, 147, 0.4); }
.glow-sergey { background: linear-gradient(135deg, #f1c40f, #f39c12); box-shadow: 0 0 15px rgba(241, 196, 15, 0.4); }
.glow-elena { background: linear-gradient(135deg, #e67e22, #d35400); box-shadow: 0 0 15px rgba(230, 126, 34, 0.4); }
.glow-sveta { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); }

.author-name a {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
}

.author-name a:hover {
  color: var(--accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
}

.rank-badge.glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 15px var(--accent-glow); }
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-body);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

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

/* ─── Reply Form ─── */
.reply-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.bb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bb-toolbar select,
.bb-toolbar input[type="button"],
.bb-toolbar button {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.bb-toolbar select:hover,
.bb-toolbar input[type="button"]:hover,
.bb-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.message-box {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.message-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#smiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 10px;
}

#smiles img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

#smiles img:hover {
  transform: scale(1.2);
}

/* ─── Stats ─── */
.stats-simple {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stats-row span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stats-row b {
  color: var(--accent);
  font-weight: 700;
}

.stats-online {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stats-online a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.stats-online a:hover {
  text-decoration: underline;
}

/* ─── Pagination / Breadcrumbs ─── */
.post-block + div[style*="margin:15px"],
.topic-card + div[style*="margin:15px"],
#topicsList + div[style*="margin:15px"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px 0 !important;
  font-size: 0.85rem;
}

.post-block + div[style*="margin:15px"] a,
.topic-card + div[style*="margin:15px"] a,
#topicsList + div[style*="margin:15px"] a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.post-block + div[style*="margin:15px"] a:hover,
.topic-card + div[style*="margin:15px"] a:hover,
#topicsList + div[style*="margin:15px"] a:hover {
  text-decoration: underline;
}

.post-block + div[style*="margin:15px"] b,
.topic-card + div[style*="margin:15px"] b,
#topicsList + div[style*="margin:15px"] b {
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ─── Hide / Spoiler ─── */
[id^="s"] {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 8px 0;
}

/* ─── Closed Topic Warning ─── */
center[style*="background:rgba(231,76,60"] {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: var(--danger) !important;
  font-weight: 600;
}

/* ─── Code blocks ─── */
.post-message-area pre,
.post-message-area code {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  display: block;
  margin: 8px 0;
}

/* ─── Font Preview in Select ─── */
.font-preview-select option {
  padding: 6px 10px;
  font-size: 0.9rem;
}

.font-preview-select option[value=""] {
  font-family: var(--font-main) !important;
  font-weight: 500;
}

/* ─── Color Preview in Select ─── */
.font-preview-select option[style*="color:"] {
  font-weight: 600;
}

/* ─── Responsive: 1024px ─── */
@media (max-width: 1024px) {
  .forum-card {
    grid-template-columns: 48px 1fr auto;
  }
  .forum-last {
    display: none;
  }
}

/* ─── Responsive: 768px ─── */
@media (max-width: 768px) {
  .forum-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .auth-form {
    width: 100%;
  }

  .auth-form .auth-input {
    flex: 1;
  }

  .forum-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .forum-stats {
    grid-column: 2;
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .post-main {
    grid-template-columns: 1fr;
  }

  .post-author-area {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .userAvatar {
    width: 56px;
    height: 56px;
  }

  .author-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
  }

  .stats-row {
    justify-content: flex-start;
    gap: 16px;
  }
}

/* ─── Responsive: 480px ─── */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .logo-area h1 {
    font-size: 1.3rem;
  }

  .header-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .auth-form {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-form .auth-input,
  .auth-form .auth-btn,
  .auth-form .reg-link {
    width: 100%;
    justify-content: center;
  }

  .quick-bar {
    padding: 10px 12px;
  }

  .quick-bar a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .forum-card {
    padding: 12px 14px;
  }

  .forum-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .forum-title a {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .forum-stats {
    font-size: 0.8rem;
  }

  .topic-card {
    padding: 14px 16px;
  }

  .topic-title a {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .topic-meta {
    gap: 10px;
    font-size: 0.8rem;
  }

  .post-header {
    padding: 8px 12px;
  }

  .post-message-area {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .post-author-area {
    padding: 12px 14px;
  }

  .bb-toolbar {
    gap: 4px;
  }

  .bb-toolbar select,
  .bb-toolbar input[type="button"],
  .bb-toolbar button {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .reply-form {
    padding: 14px;
  }

  .stats-simple {
    padding: 12px 14px;
  }

  .stats-row span {
    font-size: 0.8rem;
  }
}

/* ─── Responsive: 360px ─── */
@media (max-width: 360px) {
  html { font-size: 14px; }

  .forum-container {
    padding: 0 8px 20px;
  }

  .logo-area h1 {
    font-size: 1.15rem;
    gap: 6px;
  }

  .logo-area h1 i {
    font-size: 1.1rem;
  }

  .logo-area p {
    font-size: 0.75rem;
  }

  .theme-current {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .quick-bar {
    gap: 4px;
    padding: 8px 10px;
  }

  .quick-bar a {
    font-size: 0.75rem;
    padding: 4px 6px;
    gap: 4px;
  }

  .quick-bar a i {
    font-size: 0.8rem;
  }

  #searchBox {
    min-width: 100%;
    margin-top: 6px;
  }

  .section-header {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .forum-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 12px;
  }

  .forum-icon {
    display: none;
  }

  .forum-title a {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .forum-stats {
    grid-column: 1;
    flex-direction: row;
    gap: 12px;
    font-size: 0.78rem;
  }

  .topic-card {
    padding: 12px 12px;
  }

  .topic-title {
    gap: 6px;
  }

  .topic-title a {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .topic-meta {
    gap: 8px;
    font-size: 0.78rem;
  }

  .post-block {
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
  }

  .post-header {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .post-message-area {
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .post-author-area {
    padding: 10px 12px;
    gap: 10px;
  }

  .userAvatar {
    width: 44px;
    height: 44px;
  }

  .author-name a {
    font-size: 0.9rem;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 1px 6px;
  }

  .rank-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .post-actions {
    padding: 8px 10px;
    gap: 6px;
  }

  .action-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .reply-form {
    padding: 12px;
    margin: 14px 0;
  }

  .bb-toolbar {
    padding: 8px;
    gap: 4px;
  }

  .bb-toolbar select,
  .bb-toolbar input[type="button"],
  .bb-toolbar button {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .message-box {
    min-height: 100px;
    padding: 10px;
    font-size: 0.9rem;
  }

  .auth-btn {
    padding: 10px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .stats-simple {
    padding: 10px 12px;
  }

  .stats-row {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .stats-row span {
    font-size: 0.78rem;
  }

  .stats-online {
    font-size: 0.78rem;
  }

  select.auth-input {
    width: 100% !important;
    max-width: 100%;
  }
}

/* ─── Utility ─── */
.glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

.pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ─── Print ─── */
@media print {
  .forum-header, .quick-bar, .post-actions, .bb-toolbar, .theme-selector, .auth-area {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .post-block {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}
/* ========== 📤 UPLOAD MODAL & BUTTONS ========== */

/* Upload buttons in toolbar */
.upload-btn-toolbar {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 2px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.4 !important;
}

.upload-btn-toolbar:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.upload-btn-toolbar:active {
    transform: translateY(0) !important;
}

.upload-btn-toolbar i {
    font-size: 14px !important;
}

/* Upload Modal Overlay */
.upload-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    animation: uploadModalFadeIn 0.2s ease !important;
}

@keyframes uploadModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content Box */
.upload-modal-content {
    background: linear-gradient(145deg, #1e2127 0%, #16191f 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 480px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
    overflow: hidden !important;
    animation: uploadModalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes uploadModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.upload-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
}

.upload-modal-header span {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
}

.upload-modal-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #a0aec0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.upload-modal-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

/* Modal Body */
.upload-modal-body {
    padding: 24px !important;
}

/* Dropzone */
.upload-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.4) !important;
    border-radius: 16px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%) !important;
}

.upload-dropzone:hover {
    border-color: rgba(99, 102, 241, 0.7) !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%) !important;
    transform: translateY(-2px) !important;
}

.upload-dropzone.dragover {
    border-color: #6366f1 !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.1) 100%) !important;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2) !important;
}

.upload-dropzone i {
    font-size: 48px !important;
    color: #6366f1 !important;
    margin-bottom: 12px !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.upload-dropzone:hover i {
    transform: scale(1.1) translateY(-3px) !important;
}

.upload-dropzone p {
    color: #a0aec0 !important;
    font-size: 14px !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Preview Area */
.upload-preview {
    margin-top: 16px !important;
    text-align: center !important;
}

.upload-preview img {
    max-width: 100% !important;
    max-height: 200px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.upload-video-preview {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 20px !important;
    background: rgba(99, 102, 241, 0.1) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.upload-video-preview i {
    font-size: 40px !important;
    color: #6366f1 !important;
}

.upload-video-preview span {
    color: #e2e8f0 !important;
    font-size: 13px !important;
    word-break: break-all !important;
    font-family: 'Inter', sans-serif !important;
}

/* Progress Bar */
.upload-progress-wrap {
    margin-top: 16px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px !important;
    height: 8px !important;
    position: relative !important;
    overflow: hidden !important;
}

.upload-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-radius: 10px !important;
    transition: width 0.3s ease !important;
    width: 0% !important;
    position: relative !important;
}

.upload-progress-bar::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%) !important;
    animation: progressShine 1.5s infinite !important;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.upload-progress-text {
    display: block !important;
    text-align: center !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    color: #a0aec0 !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Status Messages */
.upload-status {
    margin-top: 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.upload-status-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.upload-status-success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    animation: statusPulse 0.5s ease !important;
}

.upload-status-error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    animation: statusShake 0.4s ease !important;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes statusShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Modal Footer */
.upload-modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    padding: 16px 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Footer Buttons */
.upload-btn {
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.upload-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

.upload-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

.upload-btn-primary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.upload-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #a0aec0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.upload-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ========== 📱 MOBILE ADAPTIVE ========== */

@media (max-width: 550px) {
    .upload-modal-content {
        max-width: 100% !important;
        border-radius: 16px !important;
        margin: 10px !important;
    }

    .upload-modal-header {
        padding: 14px 18px !important;
    }

    .upload-modal-body {
        padding: 16px !important;
    }

    .upload-dropzone {
        padding: 30px 16px !important;
    }

    .upload-dropzone i {
        font-size: 36px !important;
    }

    .upload-modal-footer {
        padding: 12px 18px !important;
    }

    .upload-btn-toolbar {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 400px) {
    .upload-btn-toolbar {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }

    .upload-btn-toolbar i {
        font-size: 12px !important;
    }
}

/* ========== 🌞 LIGHT THEME SUPPORT ========== */

body.theme-light .upload-modal-content,
body.chat-body.theme-light .upload-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .upload-modal-header,
body.chat-body.theme-light .upload-modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .upload-modal-header span,
body.chat-body.theme-light .upload-modal-header span {
    color: #1e293b !important;
}

body.theme-light .upload-modal-close,
body.chat-body.theme-light .upload-modal-close {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #64748b !important;
}

body.theme-light .upload-dropzone,
body.chat-body.theme-light .upload-dropzone {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(79, 70, 229, 0.01) 100%) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

body.theme-light .upload-dropzone p,
body.chat-body.theme-light .upload-dropzone p {
    color: #64748b !important;
}

body.theme-light .upload-video-preview,
body.chat-body.theme-light .upload-video-preview {
    background: rgba(99, 102, 241, 0.05) !important;
}

body.theme-light .upload-video-preview span,
body.chat-body.theme-light .upload-video-preview span {
    color: #334155 !important;
}

body.theme-light .upload-progress-wrap,
body.chat-body.theme-light .upload-progress-wrap {
    background: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .upload-progress-text,
body.chat-body.theme-light .upload-progress-text {
    color: #64748b !important;
}

body.theme-light .upload-status-info,
body.chat-body.theme-light .upload-status-info {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
}

body.theme-light .upload-status-success,
body.chat-body.theme-light .upload-status-success {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #16a34a !important;
}

body.theme-light .upload-status-error,
body.chat-body.theme-light .upload-status-error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

body.theme-light .upload-modal-footer,
body.chat-body.theme-light .upload-modal-footer {
    background: rgba(0, 0, 0, 0.03) !important;
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .upload-btn-secondary,
body.chat-body.theme-light .upload-btn-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #64748b !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .upload-btn-toolbar,
body.chat-body.theme-light .upload-btn-toolbar {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #475569 !important;
}

body.theme-light .upload-btn-toolbar:hover,
body.chat-body.theme-light .upload-btn-toolbar:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}