

:root {
  color-scheme: light;
  --apple-blue: #3FC6FF;
  --apple-blue-hover: #74D8FF;
  --accent: #FFB02E; /* VU amber */
  --accent-hover: #FFC861;
  --bg-color: #f8f6fb;
  --sidebar-bg: #f8f6fb;
  --surface: #14110D;
  --surface-hover: #1D1914;
  --text-main: #F5F2EC;
  --text-muted: #A6A096;
  --border-light: rgba(255, 235, 200, 0.07);
  --border-strong: rgba(255, 235, 200, 0.15);
  --glass-bg: rgba(20, 17, 13, 0.55);
  --glass-border: rgba(255, 235, 200, 0.06);
  --glass-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --ai-gradient: linear-gradient(120deg, #FFB02E, #FF5C39 55%, #FF3D81);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 176, 46, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(63, 198, 255, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* App Layout */
.app-layout {
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 1;
  position: relative;
}

/* Sidebar styling - macOS Apple Music style */
.sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-right: 1px solid var(--border-light);
  flex-shrink: 0;
  z-index: 10;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #201b2d;
  text-decoration: none;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--ai-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 176, 46, 0.3);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 12px;
  transition: all 0.25s var(--spring-easing);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s var(--spring-easing);
}

.nav-item:hover {
  color: #201b2d;
  background-color: var(--surface-hover);
}

.nav-item:hover svg {
  transform: scale(1.1);
}

.nav-item.active {
  color: #201b2d;
  background-color: rgba(32,27,45, 0.08);
  box-shadow: inset 4px 0 0 var(--accent);
}

.sidebar-spacer {
  flex: 1;
}

/* User Account Pill */
.user-pill-container {
  margin-top: 24px;
}

.user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(32,27,45, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.user-pill:hover {
  background: rgba(32,27,45, 0.06);
  border-color: var(--border-strong);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ai-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #201b2d;
}

.username {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,185,84,0.3);
}

/* Main Dashboard Panel */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0.4) 0%, rgba(7, 6, 5, 0.95) 40%);
  overflow-y: auto;
  position: relative;
  padding-bottom: 80px;
}

.main-scroll {
  padding: 48px 56px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Header design */
.dashboard-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #201b2d 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Category grid layouts */
.forum-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.forum-sidebar {
  position: sticky;
  top: 48px;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.cat-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--spring-easing);
  font-family: inherit;
  width: 100%;
}

.cat-btn:hover {
  background: rgba(32,27,45, 0.03);
  color: #201b2d;
}

.cat-btn.active {
  background: rgba(32,27,45, 0.06);
  color: #201b2d;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
}

/* Toolbar & inputs */
.toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.text-input, .apple-select {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(32,27,45, 0.04);
  color: #201b2d;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  outline: none;
  font-weight: 600;
}

.text-input:focus, .apple-select:focus {
  background: rgba(32,27,45, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 176, 46, 0.15);
}

.apple-select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a1a1aa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 11px auto;
  cursor: pointer;
}

textarea.text-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* select options bug fix */
select option {
  background-color: #f8f6fb !important;
  color: #201b2d !important;
}

/* Post Cards */
.post-card {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  gap: 20px;
  cursor: pointer;
  margin-bottom: 18px;
}

.post-card:hover {
  background: rgba(32,27,45, 0.04);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
}

.vote-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(32,27,45, 0.02);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s var(--spring-easing);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
  background: rgba(32,27,45, 0.06);
}

.vote-btn.active {
  background: rgba(52, 199, 89, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 176, 46, 0.2);
}

.vote-count {
  font-weight: 800;
  font-size: 14.5px;
  font-family: 'Space Grotesk', sans-serif;
}

.post-main {
  flex: 1;
  min-width: 0;
}

.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-content-preview {
  color: var(--text-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(32,27,45, 0.04);
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

/* Comments */
.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.comment:last-child {
  border-bottom: none;
}

.comment-content {
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 6px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #201b2d;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--spring-easing);
  box-shadow: 0 4px 16px rgba(32,27,45, 0.1);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(32,27,45, 0.2);
}

.btn.secondary {
  background: rgba(32,27,45, 0.05);
  border: 1px solid var(--border-light);
  color: #201b2d;
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(32,27,45, 0.1);
  border-color: var(--border-strong);
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--spring-easing);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  transform: scale(0.95);
  transition: all 0.4s var(--spring-easing);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content.wide {
  max-width: 640px;
  text-align: left;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Thread Modal styles */
#threadModal .modal-content {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thread-header {
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(20px);
  padding: 32px 40px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.thread-body {
  padding: 32px 40px;
  overflow-y: auto;
  flex: 1;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.status-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
  font-weight: 700;
}

.status-msg.error {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: block;
}

.status-msg.success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--accent);
  border: 1px solid rgba(52, 199, 89, 0.2);
  display: block;
}

footer {
  text-align: center;
  padding: 40px 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.hidden { display: none !important; }

/* ================= MOBILE RESPONSIVENESS ================= */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
  }
  
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .sidebar {
    display: none !important;
  }
  
  .main-content {
    height: auto;
    overflow: visible;
    padding-bottom: 90px;
  }
  
  .main-scroll {
    padding: 24px 16px;
  }
  
  .dashboard-header {
    margin-bottom: 24px;
  }
  
  .page-header h1 {
    font-size: 30px;
  }
  
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-light);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 8px 12px;
    box-sizing: border-box;
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    transition: color 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
  }
  
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }
  
  .bottom-nav-item.active {
    color: var(--accent);
  }
  
  .forum-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .forum-sidebar {
    position: static !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .cat-list {
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
  }
  
  .cat-btn {
    width: auto !important;
    display: inline-block !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
  }
  
  .post-card {
    padding: 16px !important;
    gap: 12px !important;
  }
  
  .post-title {
    font-size: 16px !important;
  }
  
  .thread-header, .thread-body {
    padding: 24px 16px !important;
  }
  
  .modal-content.wide {
    padding: 32px 20px !important;
  }
}

/* ================= V9 FINAL - Studio Hardware Noir ================= */
::selection { background: rgba(255, 176, 46, 0.30); color: #FFF6E8; }
:focus-visible { outline: 2px solid rgba(255, 176, 46, 0.75); outline-offset: 2px; border-radius: 6px; }

* { scrollbar-width: thin; scrollbar-color: #2C251B transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #2C251B; border-radius: 8px; border: 2px solid var(--bg-color); }
*::-webkit-scrollbar-thumb:hover { background: #3D3424; }

/* warm console vignette + faint top light, layered under the existing glows */
body {
  background-image:
    radial-gradient(1100px 480px at 78% -12%, rgba(255, 92, 57, 0.05), transparent 62%),
    radial-gradient(900px 560px at -12% 112%, rgba(63, 198, 255, 0.045), transparent 60%),
    linear-gradient(180deg, rgba(255, 220, 160, 0.022), transparent 220px);
}

h1, h2, h3 { letter-spacing: -0.022em; }

.mono, .slider-val, .version-pill, .lcd-value, .lcd-unit, .v9-time {
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace !important;
  font-variant-numeric: tabular-nums;
}

/* ---- Hardware buttons ---- */
.btn {
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, 0.07), 0 1px 2px rgba(0,0,0,0.5);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.accent-btn {
  color: #1A1206 !important;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 200, 97, 0.35) inset, 0 6px 22px rgba(255, 145, 60, 0.28);
}
.btn.accent-btn:hover { box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.5) inset, 0 8px 30px rgba(255, 145, 60, 0.4); }

/* ---- LED toggles (replaces iOS look) ---- */
.ios-switch {
  width: 54px; height: 30px; border-radius: 8px;
  background: linear-gradient(180deg, #f8f6fb, #14110D);
  border: 1px solid rgba(255, 235, 200, 0.12);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.7);
}
.ios-switch::after {
  width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, #5A5247 0 3px, transparent 3.6px),
    linear-gradient(180deg, #2E2920, #1B1712);
  border: 1px solid rgba(255, 235, 200, 0.14);
  box-shadow: 0 2px 5px rgba(0,0,0,0.55);
}
.ios-switch:checked {
  background: linear-gradient(180deg, #3D2A0C, #5C3D0E);
  border-color: rgba(255, 176, 46, 0.55);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.5), 0 0 16px rgba(255, 176, 46, 0.35);
}
.ios-switch:checked::after {
  transform: translateX(24px);
  background:
    radial-gradient(circle at 50% 38%, #FFE9B8 0 3px, rgba(255, 176, 46, 0.9) 3px 4.6px, transparent 5.4px),
    linear-gradient(180deg, #FFC861, #E89A1F);
  border-color: rgba(255, 235, 200, 0.5);
  box-shadow: 0 0 12px rgba(255, 176, 46, 0.7), 0 2px 5px rgba(0,0,0,0.5);
}

/* ---- Fader-style range sliders ---- */
input[type=range] {
  height: 8px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 235, 200, 0.10) 0 1px, transparent 1px 14%),
    linear-gradient(180deg, #f8f6fb, #181410);
  border: 1px solid rgba(255, 235, 200, 0.09);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.65);
}
input[type=range]::-webkit-slider-thumb {
  width: 16px; height: 28px; border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 6px, rgba(255, 176, 46, 0.95) 6px 9px, transparent 9px 100%),
    linear-gradient(180deg, #3A332A, #15110C);
  border: 1px solid rgba(255, 235, 200, 0.22);
  box-shadow: 0 3px 8px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255, 240, 210, 0.12);
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scaleY(1.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.7), 0 0 14px rgba(255, 176, 46, 0.45);
}
input[type=range]::-moz-range-thumb {
  width: 16px; height: 28px; border-radius: 4px;
  background: linear-gradient(180deg, #3A332A, #15110C);
  border: 1px solid rgba(255, 235, 200, 0.22);
  box-shadow: 0 3px 8px rgba(0,0,0,0.7);
}
input[type=range]::-moz-range-track {
  height: 8px; border-radius: 4px; background: #14100B;
}

/* ---- Wizard step dots: channel LEDs ---- */
.step-dot { border-radius: 3px; }
.step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 176, 46, 0.8), 0 0 22px rgba(255, 176, 46, 0.35);
}
.step-dot.completed { background: rgba(255, 176, 46, 0.45); box-shadow: none; }

/* ---- LCD metric cards (analysis) ---- */
.lcd {
  background: linear-gradient(180deg, #0E1A12 0%, #0A140D 100%);
  border: 1px solid rgba(160, 255, 190, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(190, 255, 210, 0.06);
  position: relative; overflow: hidden;
}
.lcd::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  opacity: .5;
}
.lcd-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6FA77F; margin-bottom: 6px; }
.lcd-value { font-size: 22px; font-weight: 700; color: #BFF5CB; text-shadow: 0 0 10px rgba(120, 255, 160, 0.35); line-height: 1.1; }
.lcd-unit { font-size: 11px; color: #6FA77F; margin-left: 4px; font-weight: 600; }
.lcd.amber { background: linear-gradient(180deg, #1A1206, #140D04); border-color: rgba(255, 200, 110, 0.16); }
.lcd.amber .lcd-label { color: #B98A3C; }
.lcd.amber .lcd-value { color: #FFD98A; text-shadow: 0 0 10px rgba(255, 176, 46, 0.4); }

/* ---- Oscilloscope divider ---- */
.v9-scope { width: 100%; max-width: 560px; height: 44px; display: block; margin-top: 10px; opacity: .9; }
.v9-scope .grid { stroke: rgba(255, 235, 200, 0.07); stroke-width: 1; }
.v9-scope .trace {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 176, 46, 0.55));
  stroke-dasharray: 6 410; animation: v9sweep 3.4s linear infinite;
}
.v9-scope .trace.ghost { stroke: rgba(63, 198, 255, 0.55); animation-delay: -1.7s; filter: drop-shadow(0 0 5px rgba(63, 198, 255, 0.45)); }
@keyframes v9sweep { to { stroke-dashoffset: -416; } }

/* ---- Calm the motion for those who ask ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .v9-scope .trace { stroke-dasharray: none; animation: none; }
}



:root {
  color-scheme: light !important;
  --apple-blue: #7145c6 !important;
  --apple-blue-hover: #7145c6 !important;
  --accent: #7145c6 !important;
  --accent-hover: #5d32af !important;
  --spotify-green-border: #6035ab !important;
  --bg-color: #f7f7fa !important;
  --sidebar-bg: #ffffff !important;
  --surface: #ffffff !important;
  --surface-hover: #f5f2fa !important;
  --surface-elevated: #f1edf7 !important;
  --surface-alt: #eee9f5 !important;
  --text-main: #201b2d !important;
  --text-muted: #6e667c !important;
  --text-soft: #51475f !important;
  --text-negative: #f3727f !important;
  --text-warning: #ffa42b !important;
  --text-announcement: #7145c6 !important;
  --border-light: #dcd5e6 !important;
  --border-strong: #82758f !important;
  --glass-bg: #ffffff !important;
  --glass-border: transparent !important;
  --glass-shadow: rgba(0,0,0,0.5) 0px 8px 24px !important;
  --shadow-medium: rgba(0,0,0,0.3) 0px 8px 8px !important;
  --inset-border: rgb(18,18,18) 0px 1px 0px, rgb(124,124,124) 0px 0px 0px 1px inset !important;
  --spring-easing: cubic-bezier(0.16, 1, 0.3, 1) !important;
  --ai-gradient: #7145c6 !important;
  --gold: #7145c6 !important;
  --font-title: SpotifyMixUITitle, CircularSp, "Inter", "Helvetica Neue", helvetica, arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "MS Gothic", sans-serif !important;
  --font-ui: SpotifyMixUI, CircularSp, "Inter", "Helvetica Neue", helvetica, arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "MS Gothic", sans-serif !important;
}

html {
  background: #f7f7fa !important;
}

body {
  font-family: var(--font-ui) !important;
  background: #f7f7fa !important;
  background-image: none !important;
  color: #201b2d !important;
  text-rendering: geometricPrecision !important;
}

body::before,
body::after {
  display: none !important;
}

button,
input,
select,
textarea {
  font-family: inherit !important;
}

.app-layout {
  background: #f7f7fa !important;
}

.sidebar {
  width: 260px !important;
  background: #ffffff !important;
  border-right: 1px solid #ffffff !important;
  padding: 24px 14px 16px !important;
}

.nav-brand {
  font-family: var(--font-title) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 0 10px 28px !important;
  color: #201b2d !important;
}

.brand-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #7145c6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.nav-item,
.cat-btn,
.bottom-nav-item {
  font-family: var(--font-ui) !important;
}

.nav-item {
  color: #6e667c !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 12px 14px !important;
  border-radius: 9999px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease !important;
}

.nav-item:hover {
  background: #f5f2fa !important;
  color: #201b2d !important;
  transform: none !important;
}

.nav-item:hover svg {
  transform: none !important;
}

.nav-item.active {
  background: #f5f2fa !important;
  color: #201b2d !important;
  box-shadow: inset 0 0 0 1px rgba(32,27,45,0.04) !important;
}

.nav-item.active svg {
  color: #7145c6 !important;
}

.user-pill {
  background: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 10px 12px !important;
  box-shadow: rgba(0,0,0,0.3) 0px 8px 8px !important;
}

.avatar,
.role-badge,
.version-pill {
  background: #7145c6 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
}

.role-badge,
.version-pill {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
}

.main-content {
  background: linear-gradient(180deg, #f5f2fa 0%, #f7f7fa 220px, #f7f7fa 100%) !important;
  padding-bottom: 90px !important;
}

.main-scroll {
  max-width: 1220px !important;
  padding: 44px 48px !important;
}

.dashboard-header {
  margin-bottom: 34px !important;
}

.page-header h1,
.bento-item h3,
.pack-title,
.post-title,
.wall-of-fame h3,
.premium-text h3,
.modal-content h2,
.modal-content h3,
.card h1,
.card h3 {
  font-family: var(--font-title) !important;
  letter-spacing: -0.03em !important;
}

.page-header h1 {
  color: #201b2d !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-size: clamp(32px, 4vw, 48px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  margin-bottom: 10px !important;
}

.page-header p {
  color: #6e667c !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  max-width: 760px !important;
}

.v9-scope {
  display: none !important;
}

.bento-grid {
  gap: 18px !important;
}

.bento-item,
.pack-card,
.post-card,
.premium-banner,
.settings-group,
.glass-card,
.modal-content,
.card {
  background: #ffffff !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 8px !important;
  color: #201b2d !important;
  box-shadow: none !important;
}

.bento-item,
.pack-card,
.post-card {
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

.bento-item {
  min-height: 320px !important;
  padding: 28px !important;
}

.bento-item:hover,
.pack-card:hover,
.post-card:hover {
  background: #f5f2fa !important;
  border: none !important;
  transform: translateY(-3px) !important;
  box-shadow: rgba(0,0,0,0.3) 0px 8px 8px !important;
}

.bento-icon,
.mode-icon {
  width: 56px !important;
  height: 56px !important;
  background: #f1edf7 !important;
  color: #6e667c !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.bento-item:hover .bento-icon,
.mode-card.selected .mode-icon {
  background: #7145c6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.bento-item h3 {
  color: #201b2d !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.bento-item p,
.pack-author,
.pack-stats,
.post-meta,
.post-content-preview,
.thread-body,
.comment-content,
.legal-section,
.card p,
.card li,
.hint {
  color: #6e667c !important;
}

.tag,
.pack-card .tag {
  background: #f5f2fa !important;
  border: none !important;
  border-radius: 9999px !important;
  color: #6e667c !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 10px !important;
}

.tag:hover,
.pack-card:hover .tag {
  color: #201b2d !important;
}

.premium-banner {
  padding: 32px !important;
  box-shadow: rgba(0,0,0,0.5) 0px 8px 24px !important;
}

.premium-banner::before {
  display: none !important;
}

.btn,
.seg-btn,
.ab-toggle-btn {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
}

.btn {
  background: #201b2d !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 13px 26px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  transition: transform 180ms ease, background 180ms ease !important;
}

.btn:hover {
  background: #201b2d !important;
  transform: scale(1.04) !important;
  box-shadow: none !important;
}

.btn:active {
  transform: scale(0.98) !important;
}

.btn.accent-btn {
  background: #7145c6 !important;
  color: #ffffff !important;
}

.btn.accent-btn:hover {
  background: #5d32af !important;
  box-shadow: none !important;
}

.btn.secondary {
  background: #f5f2fa !important;
  color: #201b2d !important;
  border: 1px solid #dcd5e6 !important;
}

.btn.secondary:hover {
  border-color: #82758f !important;
  background: #f1edf7 !important;
}

.text-input,
.apple-select,
textarea.text-input {
  background: #f5f2fa !important;
  color: #201b2d !important;
  border: none !important;
  border-radius: 500px !important;
  box-shadow: rgb(18,18,18) 0px 1px 0px, rgb(124,124,124) 0px 0px 0px 1px inset !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 13px 18px !important;
}

textarea.text-input {
  border-radius: 18px !important;
  line-height: 1.55 !important;
}

.text-input:focus,
.apple-select:focus,
textarea.text-input:focus {
  outline: 1px solid #ffffff !important;
  border: none !important;
  box-shadow: rgb(18,18,18) 0px 1px 0px, #201b2d 0px 0px 0px 1px inset !important;
}

.toolbar {
  gap: 12px !important;
  margin-bottom: 30px !important;
}

.apple-select option,
select option {
  background: #ffffff !important;
  color: #201b2d !important;
}

.pack-card {
  padding: 22px !important;
}

.pack-title {
  color: #201b2d !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.pack-play,
.play-btn-circle {
  background: #7145c6 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

.pack-play:hover,
.play-btn-circle:hover {
  background: #5d32af !important;
  transform: scale(1.06) !important;
  box-shadow: none !important;
}

.pack-footer,
.thread-header,
.comment,
footer {
  border-color: #e4e0ea !important;
}

.forum-layout {
  gap: 24px !important;
}

.cat-btn {
  background: transparent !important;
  color: #6e667c !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 11px 14px !important;
  font-weight: 700 !important;
}

.cat-btn:hover,
.cat-btn.active {
  background: #f5f2fa !important;
  color: #201b2d !important;
  box-shadow: none !important;
}

.cat-btn.active {
  box-shadow: inset 0 0 0 1px rgba(32,27,45,0.04) !important;
}

.post-card {
  padding: 20px !important;
  gap: 16px !important;
}

.vote-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #f5f2fa !important;
  color: #6e667c !important;
}

.vote-btn:hover,
.vote-btn.active {
  background: #7145c6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.vote-count {
  color: #201b2d !important;
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
}

.modal-overlay {
  background: rgba(0,0,0,0.72) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.modal-content {
  box-shadow: rgba(0,0,0,0.5) 0px 8px 24px !important;
  padding: 36px !important;
}

.thread-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.thread-body {
  background: #f7f7fa !important;
}

.status-msg.error {
  background: rgba(243,114,127,0.12) !important;
  border: 1px solid rgba(243,114,127,0.3) !important;
  color: #f3727f !important;
}

.status-msg.success {
  background: rgba(113,69,198,0.12) !important;
  border: 1px solid rgba(113,69,198,0.3) !important;
  color: #7145c6 !important;
}

footer {
  color: #6e667c !important;
  padding-top: 32px !important;
}

footer a,
.legal-section a,
.card a {
  color: #201b2d !important;
  text-decoration: none !important;
}

footer a:hover,
.legal-section a:hover,
.card a:hover {
  color: #7145c6 !important;
}

.bottom-nav {
  background: #ffffff !important;
  border-top: 1px solid #e4e0ea !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bottom-nav-item {
  color: #6e667c !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.bottom-nav-item.active {
  color: #7145c6 !important;
}

::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

::-webkit-scrollbar-track {
  background: #f7f7fa !important;
}

::-webkit-scrollbar-thumb {
  background: #dcd5e6 !important;
  border: 2px solid #f7f7fa !important;
  border-radius: 9999px !important;
}

::selection {
  background: rgba(113,69,198,0.28) !important;
  color: #201b2d !important;
}

@media (max-width: 768px) {
  body {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
  }

  .app-layout {
    min-height: 100vh !important;
  }

  .main-content {
    min-height: 100vh !important;
    background: linear-gradient(180deg, #f5f2fa 0%, #f7f7fa 160px, #f7f7fa 100%) !important;
    padding-bottom: 90px !important;
  }

  .main-scroll {
    padding: 24px 16px 34px !important;
  }

  .page-header h1 {
    font-size: 30px !important;
  }

  .bento-grid,
  .packs-grid,
  .forum-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .bento-item,
  .pack-card,
  .post-card,
  .premium-banner,
  .glass-card,
  .modal-content,
  .card {
    border-radius: 8px !important;
  }

  .bento-item {
    min-height: auto !important;
    padding: 24px !important;
  }

  .toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .toolbar .text-input,
  .toolbar .apple-select,
  .toolbar .btn {
    width: 100% !important;
  }

  .cat-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }

  .cat-btn {
    width: auto !important;
    white-space: nowrap !important;
  }

  .post-card {
    padding: 16px !important;
  }

  .modal-content {
    padding: 28px 20px !important;
  }
}

