/* ===== EMBEDS ===== */
.embed-wrapper {
  margin: 15px 0;
}
.embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 4px;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.embed-suno {
  height: 150px;
  border-radius: 4px;
  overflow: hidden;
}
.embed-suno iframe {
  width: 100%;
  height: 100%;
}
.embed-vertical {
  position: relative;
  padding-bottom: 177.77%; /* 9:16 ratio */
  height: 0;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
  background: #000;
  border-radius: 4px;
}
.embed-vertical iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.embed-source {
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.7;
  word-break: break-all;
}
.post-body .embed-wrapper {
  margin-bottom: 15px;
}

/* ===== THEMES ===== */

/* 1. SUBSILVER (Default Light) */
body.theme-subsilver, :root {
  --primary:       #006699;
  --primary-lt:    #0076B1;
  --primary-dk:    #005580;
  --accent:        #FFA34F;
  --accent-lt:     #FFC48D;
  --bg-page:       #E5E5E5;
  --bg-white:      #FFFFFF;
  --bg-r1:         #ECECEC;
  --bg-r2:         #F5F5F5;
  --bg-r3:         #D1D7DC;
  --border-main:   #98AAB1;
  --text:          #333333;
  --text-muted:    #5a6a74;
  --modal-bg:      #ECECEC;
  --input-bg:      #FFFFFF;
  --input-border:  #999999;
  --nav-bg:        #D1D7DC;
  /* Alerts */
  --success-bg:    #EAFAF1; --success-text: #186A3B; --success-border: #1E8449;
  --error-bg:      #FDECEA;   --error-text:   #922B21; --error-border:   #C0392B;
  /* WV Button */
  --wv-bg:         #000000; --wv-text: #FFFFFF;
  /* Typography */
  --sans: Verdana, Geneva, Tahoma, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

/* 2. MODERN LIGHT */
body.theme-modern {
  --primary:       #2c3e50;
  --primary-lt:    #34495e;
  --primary-dk:    #1a252f;
  --accent:        #3498db;
  --accent-lt:     #5dade2;
  --bg-page:       #f8f9fa;
  --bg-white:      #ffffff;
  --bg-r1:         #ffffff;
  --bg-r2:         #f1f3f5;
  --bg-r3:         #e9ecef;
  --border-main:   #dee2e6;
  --text:          #212529;
  --text-muted:    #6c757d;
  --modal-bg:      #ffffff;
  --input-bg:      #ffffff;
  --input-border:  #ced4da;
  --nav-bg:        #f1f3f5;
  --success-bg:    #d4edda; --success-text: #155724; --success-border: #c3e6cb;
  --error-bg:      #f8d7da;   --error-text:   #721c24; --error-border:   #f5c6cb;
  --wv-bg:         #2c3e50; --wv-text: #ffffff;
}

/* 3. DEEP NIGHT (Dark) */
body.theme-deepnight {
  --primary:       #e67e22;
  --primary-lt:    #eb984e;
  --primary-dk:    #af601a;
  --accent:        #f1c40f;
  --accent-lt:     #f4d331;
  --bg-page:       #121212;
  --bg-white:      #1e1e1e;
  --bg-r1:         #252525;
  --bg-r2:         #2c2c2c;
  --bg-r3:         #333333;
  --border-main:   #444444;
  --text:          #e0e0e0;
  --text-muted:    #bbbbbb;
  --modal-bg:      #1e1e1e;
  --input-bg:      #2c2c2c;
  --input-border:  #555555;
  --nav-bg:        #2c2c2c;
  --success-bg:    #1b3324; --success-text: #2ecc71; --success-border: #27ae60;
  --error-bg:      #3d1a1a;   --error-text:   #e74c3c; --error-border:   #c0392b;
  --wv-bg:         #000000; --wv-text: #ffffff;
}

/* 4. DARK OCEAN (Dark Blue/Teal) */
body.theme-ocean {
  --primary:       #1a7c9c;
  --primary-lt:    #48c9b0;
  --primary-dk:    #148f77;
  --accent:        #2448ab;
  --accent-lt:     #5dade2;
  --bg-page:       #0a192f;
  --bg-white:      #112240;
  --bg-r1:         #1d2d50;
  --bg-r2:         #112240;
  --bg-r3:         #233554;
  --border-main:   #1e3a5a;
  --text:          #ccd6f6;
  --text-muted:    #8892b0;
  --modal-bg:      #112240;
  --input-bg:      #1d2d50;
  --input-border:  #233554;
  --nav-bg:        #1d2d50;
  --success-bg:    #143330; --success-text: #1abc9c; --success-border: #16a085;
  --error-bg:      #331414;   --error-text:   #e74c3c; --error-border:   #c0392b;
  --wv-bg:         #0a192f; --wv-text: #ccd6f6;
}

/* 5. FOREST (Warm earthy light) */
body.theme-forest {
  --primary:       #2D6A4F;
  --primary-lt:    #3A866A;
  --primary-dk:    #1E4F3A;
  --accent:        #64B261;
  --accent-lt:     #F7BC8A;
  --bg-page:       #F5F1EB;
  --bg-white:      #FFFFFF;
  --bg-r1:         #EEE8DE;
  --bg-r2:         #F5F1EB;
  --bg-r3:         #D8CFC2;
  --border-main:   #B5A99A;
  --text:          #2D2926;
  --text-muted:    #6B5E52;
  --modal-bg:      #F9F5EF;
  --input-bg:      #FFFFFF;
  --input-border:  #B5A99A;
  --nav-bg:        #DED4C6;
  --success-bg:    #dcf0e7; --success-text: #1b4332; --success-border: #74c69d;
  --error-bg:      #f9e5e5;   --error-text:   #bc4749; --error-border:   #e5989b;
  --wv-bg:         #2D2926; --wv-text: #F5F1EB;
}

/* 6. MIDNIGHT (Deep dark blue) */
body.theme-midnight {
  --primary:       #58A6FF;
  --primary-lt:    #79B8FF;
  --primary-dk:    #388BFD;
  --accent:        #FFA657;
  --accent-lt:     #FFBE86;
  --bg-page:       #010409;
  --bg-white:      #0D1117;
  --bg-r1:         #161B22;
  --bg-r2:         #1C2128;
  --bg-r3:         #21262D;
  --border-main:   #30363D;
  --text:          #E6EDF3;
  --text-muted:    #8B949E;
  --modal-bg:      #161B22;
  --input-bg:      #1C2128;
  --input-border:  #30363D;
  --nav-bg:        #21262D;
  --success-bg:    #13231b; --success-text: #3fb950; --success-border: #238636;
  --error-bg:      #2b1316;   --error-text:   #f85149; --error-border:   #da3633;
  --wv-bg:         #000000; --wv-text: #E6EDF3;
}


 
* { margin:0; padding:0; box-sizing:border-box; }
 
body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  background-color: var(--bg-page);
  color: var(--text);
  padding: 20px;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}
 
a { color: var(--primary); text-decoration: none; font-weight: bold; }
a:hover { color: var(--accent); text-decoration: underline; }
 
/* ===== ROOT CONTAINER ===== */
#app {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
 
/* ===== LANGUAGE BAR & THEME BAR ===== */
.lang-bar {
  background: var(--nav-bg);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-main);
}
.lang-btn, .theme-btn {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--sans);
}
.lang-btn:hover, .lang-btn.active, .theme-btn:hover, .theme-btn.active {
  background: var(--bg-white);
  border-color: var(--primary);
  color: var(--primary);
}
 
/* ===== HEADER ===== */
.site-header {
  background: var(--bg-white);
  padding: 20px;
  border-bottom: 1px solid var(--border-main);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { cursor: pointer; }
.logo-title {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: var(--text);
}
.logo-title em { color: var(--primary); font-style: normal; }
.logo-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}
.active-community-badge {
  display: inline-block !important;
  margin-top: 15px !important;
  background: var(--primary) !important;
  color: var(--accent) !important;
  padding: 10px 25px !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  font-size: 44px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
  font-family: 'Trebuchet MS', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  width: fit-content !important;
  border: 3px solid var(--accent) !important;
}

.warning-link {
  display: inline-block;
  background: var(--primary);
  color: var(--accent) !important;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  border: 1px solid var(--accent);
  margin-left: 5px;
  transition: all 0.2s;
}
.warning-link:hover, .warning-link:active {
  background: var(--accent);
  color: var(--primary) !important;
}

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.block-status {
  font-size: 12px;
  color: var(--text-muted);
}
.user-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.btn-hdr {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}
.btn-hdr:hover { background: var(--bg-white); border-color: var(--primary); color: var(--primary); }
 
/* ===== NAV BAR ===== */
.nav-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-main);
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
}
.nav-links { display: flex; }
.nav-link {
  padding: 10px 15px;
  font-size: 13px;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
}
.nav-link:hover { color: var(--accent); background: var(--bg-page); }
 
/* ===== BREADCRUMB ===== */
.breadcrumb { background: var(--bg-page); padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--border-main); color: var(--text); }
 
/* ===== CONTENT AREA ===== */
.content { padding: 15px; }
 
/* ===== FORUM TABLES ===== */
.forumline {
  background: var(--bg-white);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
}
.topic-table, .profile-list-table { table-layout: fixed; }
.catHead {
  background: var(--bg-r3);
  height: 32px;
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
  padding: 0 10px;
}
.thHead {
  background: var(--primary);
  color: var(--accent);
  height: 30px;
  padding: 2px 8px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
}
.row1 { background: var(--bg-r1); padding: 10px; border-top: 1px solid var(--bg-white); color: var(--text); }
.row2 { background: var(--bg-r2); padding: 10px; border-top: 1px solid var(--bg-white); color: var(--text); }
.row3 { background: var(--bg-r3); padding: 10px; border-top: 1px solid var(--bg-white); color: var(--text); }
.forumline tr:first-child .row3:first-child { border-top-left-radius: 4px; }
.forumline tr:first-child .row3:last-child { border-top-right-radius: 4px; }
.row-hover { cursor: pointer; }
.row-hover:hover td { background-color: var(--bg-r3) !important; opacity: 0.9; }
 
/* ===== AVATAR ===== */
.avatar {
  display: block;
  margin: 5px auto;
  width: 80px; height: 80px;
  border: 1px solid var(--input-border);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-white);
}
.avatar-sm { width: 50px; height: 50px; margin: 6px auto; }
 
/* ===== POST LAYOUT ===== */
.post-profile { width: 150px; vertical-align: top; text-align: center; border-right: 1px solid var(--border-main); }
.post-body-cell { vertical-align: top; padding: 15px; background: var(--bg-white); color: var(--text); }
.post-header {
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 10px;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}
 
/* ===== BADGES ===== */
.badge {
  padding: 2px 8px;
  font-weight: bold;
  font-size: 11px;
  font-family: var(--mono);
  white-space: nowrap;
  color: #fff;
}
.badge-blue { background: var(--primary); }
.badge-green { background: #1e8449; }
.badge-gray { background: #7f8c8d; }
 
/* ===== POST BODY MARKDOWN ===== */
.post-body { font-size: 14px; line-height: 1.6; overflow-wrap: break-word; word-wrap: break-word; overflow: hidden; }
.post-body img { max-width: 100%; height: auto; margin: 10px 0; display: block; cursor: pointer; }
.post-body h1, .post-body h2, .post-body h3 { color: var(--primary); margin: 15px 0 10px; }
.post-body p { margin-bottom: 10px; }
.post-body code { background: var(--bg-r3); padding: 2px 4px; font-family: var(--mono); font-size: 13px; }
.post-body pre { background: var(--bg-r2); border: 1px solid var(--border-main); padding: 10px; overflow-x: auto; font-family: var(--mono); font-size: 13px; margin: 10px 0; }
.post-body blockquote { border-left: 4px solid var(--primary); padding: 5px 15px; color: var(--text-muted); margin: 10px 0; background: var(--bg-r2); }
.post-body a { word-break: break-all; }
.post-body ul, .post-body ol { margin-left: 25px; margin-bottom: 10px; }
.post-body hr { border: none; border-top: 1px solid var(--border-main); margin: 15px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 10px 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border-main); padding: 6px 10px; text-align: left; }
.post-body th { background: var(--bg-r3); }
 
/* ===== QUOTE BLOCK ===== */
.quote-box {
  background: var(--bg-r2);
  border: 1px solid var(--border-main);
  padding: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}
.quote-toggle {
  cursor: pointer;
  color: var(--primary);
  font-weight: bold;
  margin-left: 5px;
}
.quote-toggle:hover { color: var(--accent); }
.quote-content {
  margin-top: 5px;
  padding: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  line-height: 1.5;
  max-height: 200px;
  overflow-y: auto;
}
 
/* ===== REPLY / POST FORMS ===== */
.write-form {
  background: var(--bg-r1);
  border: 1px solid var(--primary);
  padding: 15px;
  margin: 10px 0;
  border-radius: 6px;
}
.write-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.write-form input[type="text"], .write-form input[type="password"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  margin-bottom: 10px;
}
.form-label {
  display: block;
  font-weight: bold;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 5px;
}
 
/* ===== BUTTONS ===== */
.btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
}
.btn:hover { background: var(--bg-white); border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary-dk); }
.btn-primary:hover { background: var(--primary-lt); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--primary-dk); }
.btn-accent:hover { background: var(--accent-lt); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; }
 
/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--primary);
  width: 450px;
  max-width: 95vw;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal-header {
  background: var(--primary);
  color: var(--accent);
  padding: 12px 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
}
.modal-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.modal-body { padding: 20px; overflow-y: auto; max-height: 80vh; color: var(--text); }
 
/* ===== TABS ===== */
.tabs { display: flex; gap: 2px; margin-bottom: 15px; border-bottom: 1px solid var(--primary); }
.tab-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  background: var(--nav-bg);
  border: 1px solid var(--input-border);
  border-bottom: none;
  color: var(--text);
}
.tab-btn.active { background: var(--modal-bg); border-color: var(--primary); color: var(--primary); border-bottom: 2px solid var(--modal-bg); margin-bottom: -1px; }
 
/* ===== ALERTS ===== */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.alert-info { background: var(--bg-r3); border-color: var(--primary); color: var(--primary); }
 
/* ===== MODS SECTION ===== */
.mods-section {
  background: var(--bg-r1);
  border: 1px solid var(--primary);
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
}
.mods-header { background: var(--primary); color: var(--accent); padding: 8px 14px; font-weight: bold; text-transform: uppercase; font-size: 12px; }
.mods-body { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.mod-badge {
  background: var(--bg-white);
  border: 1px solid var(--border-main);
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mod-role { font-size: 10px; text-transform: uppercase; font-weight: bold; color: var(--primary); }
 
/* ===== LOADER ===== */
.loader { text-align: center; padding: 40px; color: var(--primary); font-size: 14px; font-weight: bold; }
.spin {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--input-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
 
/* ===== FOOTER ===== */
.site-footer {
  background: var(--nav-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-size: 12px;
  border-top: 1px solid var(--border-main);
}
 
/* ===== WHALEVAULT BUTTON ===== */
.wv-btn {
  width: 100%;
  padding: 12px;
  background: var(--wv-bg);
  color: var(--wv-text);
  border: 1px solid var(--border-main);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.wv-btn:hover { opacity: 0.8; }
.wv-btn:disabled { opacity: .5; cursor: default; }
 
.gs { font-size: 12px; color: var(--text-muted); }
.gs i { color: var(--primary); opacity: 0.8; } /* Make icons in GS slightly more visible */
.depth-badge { display: inline-block; font-size: 11px; color: var(--accent); margin-left: 5px; }

.highlighted-post {
  animation: highlight-fade 3s ease-out;
  border: 2px solid var(--accent) !important;
}
@keyframes highlight-fade {
  0% { box-shadow: 0 0 20px var(--accent); background-color: var(--accent-lt); }
  100% { box-shadow: 0 0 0 transparent; }
}

/* PROFILE STATS */
.profile-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.stat-box {
  background: var(--bg-r1);
  border: 1px solid var(--border-main);
  padding: 12px 18px;
  border-radius: 4px;
  min-width: 140px;
}
.stat-label {
  font-size: 10px;
  font-weight: bold;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stat-val {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
}

/* VOTING */
.vote-btn { cursor: pointer; color: var(--text-muted); font-size: 18px; user-select: none; }
.vote-btn:hover { color: var(--primary); }
.vote-btn.active { color: #1e8449; }

/* PAYOUT LINK */
.payout-link { cursor: pointer; text-decoration: underline dotted; }
.payout-link:hover { color: #1e8449; }

/* NOTIFICATIONS */
.notif-item { padding: 10px; border-bottom: 1px solid var(--border-main); font-size: 13px; color: var(--text); }
.notif-item:last-child { border-bottom: none; }
.notif-item .gs { display: block; margin-top: 3px; }

/* COMMUNITY SELECTOR */
.community-bar {
  margin: 10px 15px;
  width: auto;
  padding: 10px 15px;
  background: var(--bg-r3);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary);
  color: var(--text);
}
.community-bar select, .community-bar input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  font-size: 13px;
  padding: 4px 8px;
}

/* ===== BLOCKCHAIN WAIT QUEUE PANEL ===== */
.bc-queue-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--nav-bg);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.2);
  padding: 8px 14px;
}
.bc-queue-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bc-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
}
.bc-queue-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--bg-page);
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}
.bc-queue-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.bc-queue-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-queue-more {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--sans);
}
.bc-queue-more:hover { background: var(--primary); color: #fff; }

/* Desktop: side-by-side columns, more compact */
@media (min-width: 681px) {
  .bc-queue-item {
    flex: 1 1 260px;
    max-width: 340px;
  }
}

/* Mobile: stack vertically, limit to 3 */
@media (max-width: 680px) {
  .bc-queue-item {
    flex: 1 1 100%;
  }
  .bc-queue-label { max-width: 55vw; }
}

/* ===== BENEFICIARIES INLINE ===== */
.beneficiaries-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-r2);
  border: 1px solid var(--border-main);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1.4;
}
.ben-icon { font-size: 13px; }
.ben-link { font-size: 12px; font-weight: bold; }
.ben-pct { color: var(--text-muted); font-size: 12px; }
.ben-sep { color: var(--text-muted); }
.ben-more { background: var(--bg-r3); border-radius: 2px; padding: 0 4px; font-size: 11px; }

/* ===== BENEFICIARY FORM ROW (in write forms) ===== */
.ben-form-row {
  display: grid;
  grid-template-columns: 1fr 72px auto;
  gap: 8px;
  align-items: center;
}
.ben-input-account,
.ben-input-pct {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 13px;
  font-family: var(--sans);
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
}
.ben-pct-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 36px;
}

/* ===== VOTE WEIGHT MODAL ===== */
.vote-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: block;
}
.vote-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}
.vote-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  cursor: pointer;
}
.vote-estimate-box {
  background: var(--bg-r2);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
}
.vote-est-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--text);
}
.vote-est-row span { color: var(--text-muted); }


/* ===== RESPONSIVE STYLES (Mobile) ===== */
@media (max-width: 680px) {
  body { padding: 0; }
  #app { border: none; border-radius: 0; width: 100vw; overflow-x: hidden; }
  .header-inner { flex-direction: column; text-align: center; gap: 15px; }
  .active-community-badge { font-size: 30px !important; padding: 10px 20px !important; margin: 15px auto 0 !important; width: 90% !important; }
  .header-right { align-items: center; }

  /* Responsive Post List - Only for the main list */
  .post-list-table { border-collapse: collapse; width: 100% !important; }
  .post-list-table tr:first-child { display: none; } /* Hide headers on mobile */
  
  .post-list-table tr {
    display: block;
    padding: 12px 10px 12px 45px;
    border-bottom: 1px solid var(--border-main);
    position: relative;
    background: var(--bg-main) !important;
  }
  
  .post-list-table td {
    display: inline;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    text-align: left !important;
  }

  .post-list-table td[colspan] {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
  }
  
  /* Vote button positioning */
  .post-list-table td:first-child {
    display: block !important;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px !important;
  }
  
  .col-topic {
    display: block !important;
    margin-bottom: 4px;
  }
  
  .col-topic a {
    font-size: 16px !important;
    font-weight: bold;
  }
  
  /* .col-topic .gs { display: none; } */ 
  .col-topic .gs { display: block; font-size: 12px; opacity: 0.8; margin-top: 2px; }
  
  .col-author, .col-payout, .col-lastpost {
    font-size: 13px;
    color: var(--gs);
  }
  
  .col-author a { color: var(--gs); }
  
  .col-author::before { content: "by "; }
  .col-payout::before { content: " • "; }
  .col-lastpost::before { content: " • "; }
  
  .badge { padding: 2px 6px; font-size: 11px; }

  /* Topic View Responsive */
  .topic-table, .topic-table tbody, .topic-table tr, .topic-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .topic-table tr:first-child .post-profile { display: none; } /* Hide redundant author cell */
  
  .topic-table .post-profile {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-right: none !important;
    border-bottom: 1px solid var(--border-main);
    text-align: left !important;
  }
  
  .topic-table .post-profile .avatar { margin: 0; width: 32px; height: 32px; }
  .topic-table .post-profile .avatar-sm { width: 24px; height: 24px; }
  .topic-table .post-profile .gs { margin: 0; }
  
  .topic-table .post-body-cell {
    padding: 12px 10px;
  }
  
  .post-header {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ===== COMPACT COLLAPSED BAR ===== */
.collapsed-support-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-r2);
  border: 1px solid var(--border-main);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.collapsed-support-bar .author-tag {
  font-weight: bold;
  color: var(--text);
}
.collapsed-support-bar .expand-btn {
  margin-left: auto;
  cursor: pointer;
  font-weight: bold;
  color: var(--primary);
  text-decoration: underline;
}
.collapsed-support-bar .expand-btn:hover {
  color: var(--accent);
}
.collapsed-support-bar .vote-info {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-weight: bold;
}
