@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:         #1c1c1c;
  --bg-card:         #2b2b2b;
  --bg-card-hover:   #323232;
  --bg-subtle:       rgba(255,255,255,0.04);
  --bg-subtle-hover: rgba(255,255,255,0.08);
  --bg-input:        #1e1e1e;
  --border:          rgba(255,255,255,0.083);
  --border-strong:   rgba(255,255,255,0.15);
  --text:            rgba(255,255,255,0.896);
  --text-secondary:  rgba(255,255,255,0.606);
  --text-disabled:   rgba(255,255,255,0.363);
  --accent:          #60cdff;
  --accent-dark:     #0078d4;
  --accent-btn:      #0078d4;
  --accent-btn-hover:#1084d8;
  --accent-bg:       rgba(0,120,212,0.18);
  --success:         #6ccb5f;
  --error:           #f28b82;
  --ig-grad: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  --nav-width:       240px;
  --nav-collapsed:   52px;
  --radius:          6px;
  --radius-md:       8px;
  --radius-lg:       12px;
  --shadow:          0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  --font: 'Segoe UI Variable','Segoe UI','Inter',system-ui,sans-serif;
}

[data-theme="light"] {
  --bg-base:         #f3f3f3;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f0f0f0;
  --bg-subtle:       rgba(0,0,0,0.03);
  --bg-subtle-hover: rgba(0,0,0,0.06);
  --bg-input:        #ffffff;
  --border:          rgba(0,0,0,0.083);
  --border-strong:   rgba(0,0,0,0.15);
  --text:            rgba(0,0,0,0.896);
  --text-secondary:  rgba(0,0,0,0.606);
  --text-disabled:   rgba(0,0,0,0.363);
  --accent:          #0078d4;
  --accent-bg:       rgba(0,120,212,0.1);
}

body {
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  line-height: 1.4;
  overflow: hidden;
}

/* ── MICA BG ── */
.mica-layer {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%, rgba(0,0,0,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 75%, rgba(0,0,0,0.2) 0%, transparent 55%),
    url('https://cdn.discordapp.com/attachments/1407738778923040798/1484055515121324032/Copilot_20260319_000402.png?ex=69bcd5e7&is=69bb8467&hm=f988398bff9e55148e386393c8c2abbe846fdf053067f6def09649488d1e89bd&') center/cover no-repeat;
  transition: background 0.4s;
}

/* ── WINDOW ── */
.app-window {
  width: min(1100px, 100%);
  height: min(720px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: rgba(32,32,32,0.86);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
}
[data-theme="light"] .app-window { background: rgba(243,243,243,0.92); }

/* ── TITLE BAR ── */
.titlebar {
  display: flex; align-items: center;
  height: 36px; flex-shrink: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.titlebar-left {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px;
}
.titlebar-drag { flex: 1; height: 100%; }
.app-icon { font-size: 15px; }
.titlebar-title { font-size: 12px; color: var(--text-secondary); }

.nav-toggle {
  width: 32px; height: 32px; border: none;
  background: transparent; color: var(--text-secondary);
  border-radius: var(--radius); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.nav-toggle:hover { background: var(--bg-subtle-hover); color: var(--text); }

.wm-btns { display: flex; align-items: center; }
.wm-btn {
  width: 46px; height: 36px; border: none; background: transparent;
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.wm-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.wm-btn.close:hover { background: #c42b1c; color: #fff; }
[data-theme="light"] .wm-btn:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .wm-btn.close:hover { background: #c42b1c; color: #fff; }

/* ── APP BODY ── */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* ── NAV PANE ── */
.nav-pane {
  width: var(--nav-width); flex-shrink: 0;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.025);
  border-right: 1px solid var(--border);
  padding: 8px 0;
  transition: width 0.22s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.nav-pane.collapsed { width: var(--nav-collapsed); }
.nav-pane.collapsed .search-input,
.nav-pane.collapsed .nav-item span { display: none; }
.nav-pane.collapsed .nav-item { justify-content: center; padding: 0; width: 36px; margin: 0 auto; }
.nav-pane.collapsed .nav-search { padding: 4px 8px; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 12px 8px;
  padding: 7px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.nav-search:focus-within { border-color: var(--accent); }
.search-icon { color: var(--text-secondary); flex-shrink: 0; }
.search-input {
  border: none; background: transparent;
  color: var(--text); font-family: var(--font); font-size: 13px; outline: none; width: 100%;
}
.search-input::placeholder { color: var(--text-disabled); }

.nav-items { flex: 1; padding: 4px 8px 4px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-footer { padding: 8px; border-top: 1px solid var(--border); margin-top: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; height: 38px; padding: 0 10px;
  border: none; border-radius: 10px;
  background: transparent; color: var(--text-secondary);
  font-family: var(--font); font-size: 13px; font-weight: 400;
  cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  transform: translateX(1px);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(0,120,212,0.28) 0%, rgba(0,120,212,0.1) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(96,205,255,0.18), 0 2px 10px rgba(0,120,212,0.18);
}
.nav-item.active::after {
  content: ''; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 3px;
  background: linear-gradient(180deg, #60cdff, #0078d4);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(96,205,255,0.7);
}
[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(0,120,212,0.12) 0%, rgba(0,120,212,0.04) 100%);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(0,120,212,0.2);
}
.nav-icon { flex-shrink: 0; opacity: 0.7; transition: opacity 0.15s, filter 0.15s; }
.nav-item.active .nav-icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(96,205,255,0.5)); }
.nav-item:hover .nav-icon { opacity: 0.9; }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
[data-theme="light"] .main-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* ── PAGE ── */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.18s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-header { padding: 20px 0 14px; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }

/* ── HERO ── */
.hero-banner {
  background: linear-gradient(135deg, rgba(0,120,212,0.15) 0%, rgba(100,40,200,0.1) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,120,212,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-text { flex: 1; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(0,120,212,0.35);
  border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-heading { font-size: 36px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 6px; }
.hero-heading span { color: var(--accent); }
.hero-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-visual { z-index: 1; flex-shrink: 0; }

.vinyl {
  width: 110px; height: 110px; border-radius: 50%;
  background: conic-gradient(from 0deg,#1a1a1a 0%,#2a2a2a 25%,#111 50%,#2a2a2a 75%,#1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
  animation: spin 8s linear infinite;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 8px 28px rgba(0,0,0,0.6);
  position: relative;
}
.vinyl::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: repeating-radial-gradient(circle,#222 0px,#1a1a1a 2px,#222 4px);
  opacity: 0.5;
}
.vinyl-inner {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; z-index: 1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── STATS ROW ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: background 0.1s, border-color 0.1s;
  cursor: default;
}
.stat-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.stat-icon { font-size: 20px; flex-shrink: 0; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-num { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ── ANNOUNCE CARD ── */
.announce-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0,120,212,0.12), rgba(100,40,200,0.08));
  border: 1px solid rgba(0,120,212,0.25);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.announce-icon { font-size: 22px; flex-shrink: 0; }
.announce-body { flex: 1; min-width: 0; }
.announce-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.announce-text  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin: 0 0 8px;
}

/* ── INFO CARDS ── */
.info-cards { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0; }
.info-card {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0; cursor: pointer;
  transition: background 0.1s, border-color 0.12s;
  text-decoration: none; color: inherit;
}
.info-cards .info-card:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.info-cards .info-card:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.info-cards .info-card:only-child  { border-radius: var(--radius-md); }
.info-card + .info-card { border-top: none; }
.info-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.info-card:hover .info-card-chevron { opacity: 1; transform: translateX(2px); }
.info-card-icon {
  width: 34px; height: 34px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.accent-bg  { background: var(--accent-dark); }
.ig-bg      { background: var(--ig-grad); }
.discord-bg { background: #5865f2; }
.green-bg   { background: #107c10; }
.orange-bg  { background: #ca5010; }
.purple-bg  { background: #8764b8; }
.info-card-body { flex: 1; min-width: 0; }
.info-card-title { font-size: 13px; font-weight: 500; color: var(--text); }
.info-card-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.info-card-chevron {
  color: var(--text-disabled); opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s; flex-shrink: 0;
}

/* ── SETTINGS GROUP ── */
.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 14px;
}
.settings-group-header {
  padding: 10px 16px 0;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.settings-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border); min-height: 50px;
}
.settings-row:first-of-type { margin-top: 8px; }
.settings-row.tall { align-items: flex-start; padding: 14px 16px; }
.settings-row.no-pad { padding: 0; }
.row-info { flex: 1; min-width: 0; }
.row-label { font-size: 13px; font-weight: 400; color: var(--text); display: block; }
.row-sub   { font-size: 12px; color: var(--text-secondary); display: block; margin-top: 2px; }
.row-value { font-size: 13px; color: var(--text-secondary); margin-left: auto; flex-shrink: 0; }
.row-value.link { color: var(--accent); text-decoration: none; }
.row-value.link:hover { text-decoration: underline; }

/* ── SOUNDCLOUD PLAYER ── */
.sc-player { width: 100%; height: 300px; border: none; display: block; }

/* ── INSTAGRAM ── */
.ig-row { flex-direction: column; align-items: stretch; }
.ig-profile-block { display: flex; align-items: center; gap: 14px; width: 100%; }
.ig-avatar-ring {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ig-grad); padding: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ig-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ig-profile-info { flex: 1; }
.ig-username { font-size: 14px; font-weight: 600; color: var(--text); }
.ig-handle   { font-size: 12px; color: var(--text-secondary); }
.ig-embed-container { width: 100%; background: #fff; }

/* ── STORE ── */
.coming-soon-banner {
  text-align: center; padding: 40px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 20px;
}
.cs-emoji { font-size: 48px; margin-bottom: 12px; }
.coming-soon-banner h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.coming-soon-banner p  { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.notify-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.notify-input { max-width: 260px; }

.merch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px;
}
.merch-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; position: relative; cursor: default;
  transition: background 0.1s, border-color 0.1s, transform 0.15s;
}
.merch-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.merch-card.soon { opacity: 0.7; }
.merch-img  { font-size: 38px; margin-bottom: 10px; }
.merch-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.merch-price{ font-size: 12px; color: var(--text-secondary); }
.merch-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 2px 8px; background: var(--accent-bg);
  border: 1px solid rgba(0,120,212,0.3);
  border-radius: 20px; font-size: 10px; font-weight: 700; color: var(--accent);
}

/* ── DISCORD HERO ── */
.discord-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: #5865f2;
  border-radius: var(--radius-lg); margin-bottom: 14px;
}
.discord-hero-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.discord-hero-text { flex: 1; }
.discord-hero-text h3 { font-size: 16px; font-weight: 700; color: #fff; }
.discord-hero-text p  { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* ── CHANNEL BADGE ── */
.channel-badge {
  width: 26px; height: 26px; border-radius: var(--radius);
  background: var(--bg-subtle-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── RULES ── */
.rule-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rule-item { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.rule-num {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-bg); border: 1px solid rgba(0,120,212,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent); flex-shrink: 0; margin-top: 1px;
}

/* ── FAQ ── */
.faq-item {
  border-top: 1px solid var(--border); cursor: pointer;
  transition: background 0.1s;
}
.faq-item:hover { background: var(--bg-subtle-hover); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; font-size: 13px; font-weight: 500; color: var(--text);
}
.faq-chevron { flex-shrink: 0; color: var(--text-secondary); transition: transform 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; padding: 0 16px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  transition: max-height 0.25s ease, padding 0.2s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 16px 14px; }
.faq-a a { color: var(--accent); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ── ABOUT ── */
.about-block { display: flex; gap: 18px; align-items: flex-start; }
.about-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), #7928ca);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,120,212,0.35);
}
.about-text h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.about-text p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.body-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ── CONTACT FORM ── */
.win-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.win-input {
  padding: 7px 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text); font-family: var(--font); font-size: 13px;
  outline: none; transition: border-color 0.15s; width: 100%;
}
.win-input:focus { border-bottom-color: var(--accent); }
.win-input::placeholder { color: var(--text-disabled); }
.win-textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-success {
  display: none; padding: 9px 13px;
  background: rgba(108,203,95,0.1); border: 1px solid rgba(108,203,95,0.3);
  border-radius: var(--radius); color: var(--success); font-size: 13px; font-weight: 600;
}
.form-error {
  display: none; padding: 9px 13px;
  background: rgba(242,139,130,0.1); border: 1px solid rgba(242,139,130,0.3);
  border-radius: var(--radius); color: var(--error); font-size: 13px; font-weight: 600;
}
.form-success.visible, .form-error.visible { display: block; }

/* ── SPINNER ── */
.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: rotate 0.7s linear infinite;
  display: inline-block;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.1s, border-color 0.1s, transform 0.1s, box-shadow 0.1s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn.filled {
  background: var(--accent-btn); color: #fff;
  border-color: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 4px rgba(0,120,212,0.3);
}
.btn.filled:hover {
  background: var(--accent-btn-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,120,212,0.4);
}
.btn.subtle {
  background: var(--bg-subtle); color: var(--text); border-color: var(--border-strong);
}
.btn.subtle:hover { background: var(--bg-subtle-hover); }
.btn.small { padding: 4px 12px; font-size: 12px; border-radius: var(--radius); }

/* ── FOOTER CREDIT ── */
.site-credit {
  position: absolute; bottom: 8px; right: 16px;
  font-size: 11px; color: var(--text-disabled);
  pointer-events: none; user-select: none;
  letter-spacing: 0.02em;
}
.site-credit a { color: var(--text-disabled); text-decoration: none; pointer-events: all; }
.site-credit a:hover { color: var(--text-secondary); }

/* ── AUTH TABS ── */
.auth-tabs {
  display: flex; gap: 2px; padding: 12px 12px 0; margin-bottom: 0;
}
.auth-tab {
  padding: 7px 18px; border: none;
  background: var(--bg-subtle); color: var(--text-secondary);
  font-family: var(--font); font-size: 13px; font-weight: 400;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  cursor: pointer; transition: background 0.1s, color 0.1s;
  border: 1px solid var(--border); border-bottom: none;
}
.auth-tab.active {
  background: var(--bg-card); color: var(--text); font-weight: 600;
  border-color: var(--border-strong);
}
.auth-tab:hover:not(.active) { background: var(--bg-subtle-hover); color: var(--text); }

/* ── USER AVATAR ── */
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), #7928ca);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
  text-transform: uppercase;
}

/* ── FEATURE ROW (home) ── */
.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 14px 0 0;
}
.feature-card {
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column; min-height: 160px;
  position: relative; overflow: hidden; border: 1px solid var(--border-strong);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.feature-card-label { font-size: 11px; font-weight: 600; opacity: 0.8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.feature-card-title { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.feature-card-sub   { font-size: 12px; opacity: 0.75; }
.now-playing-card   { background: linear-gradient(135deg, #0078d4, #00b4d8); color: #fff; }
.discord-card       { background: linear-gradient(135deg, #5865f2, #7289da); color: #fff; }
.ig-feature-card    { background: var(--ig-grad); color: #fff; }

/* Animated music bars */
.sc-mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-top: 10px; }
.sc-mini-bars span {
  width: 4px; background: rgba(255,255,255,0.7); border-radius: 2px;
  animation: bar-bounce 1s ease-in-out infinite alternate;
}
.sc-mini-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.sc-mini-bars span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.sc-mini-bars span:nth-child(3) { height: 18px; animation-delay: 0.2s; }
.sc-mini-bars span:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.sc-mini-bars span:nth-child(5) { height: 6px;  animation-delay: 0.4s; }
@keyframes bar-bounce { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

.discord-dots { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; opacity: 0.85; }
.dd { width: 8px; height: 8px; border-radius: 50%; }
.dd.online { background: #23a55a; box-shadow: 0 0 6px #23a55a; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

/* ── UPDATES FEED ── */
.updates-feed { display: flex; flex-direction: column; gap: 2px; }
.update-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0; transition: background 0.1s;
}
.updates-feed .update-item:first-child  { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.updates-feed .update-item:last-child   { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.update-item + .update-item             { border-top: none; }
.update-item:hover { background: var(--bg-card-hover); }
.update-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.update-dot.music   { background: #0078d4; box-shadow: 0 0 6px rgba(0,120,212,0.5); }
.update-dot.discord { background: #5865f2; box-shadow: 0 0 6px rgba(88,101,242,0.5); }
.update-dot.ig      { background: #e6683c; box-shadow: 0 0 6px rgba(230,104,60,0.5); }
.update-dot.yt      { background: #ff0000; box-shadow: 0 0 6px rgba(255,0,0,0.4); }
.update-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.update-title { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-meta  { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }

/* ── TRACK LIST ── */
.track-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-top: 1px solid var(--border);
  transition: background 0.1s; cursor: default;
}
.track-item:hover { background: var(--bg-card-hover); }
.track-num  { font-size: 12px; color: var(--text-secondary); min-width: 16px; text-align: center; }
.track-art  { width: 36px; height: 36px; border-radius: var(--radius); background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.track-info { flex: 1; display: flex; flex-direction: column; }
.track-name { font-size: 13px; font-weight: 500; color: var(--text); }
.track-artist { font-size: 12px; color: var(--text-secondary); }
.track-play {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-bg); border: 1px solid rgba(0,120,212,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--accent); text-decoration: none;
  transition: background 0.1s, transform 0.1s;
  flex-shrink: 0;
}
.track-play:hover { background: var(--accent-dark); color: #fff; transform: scale(1.1); }

/* ── SOCIAL PLATFORM GRID ── */
.social-platform-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.social-platform-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-lg);
  text-decoration: none; color: #fff;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  position: relative; overflow: hidden;
}
.social-platform-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.15); opacity: 0; transition: opacity 0.15s;
}
.social-platform-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.social-platform-card:hover::before { opacity: 1; }
.social-platform-card.ig { background: var(--ig-grad); }
.social-platform-card.yt { background: linear-gradient(135deg, #ff0000, #cc0000); }
.social-platform-card.sc { background: linear-gradient(135deg, #ff5500, #ff7700); }
.social-platform-card.dc { background: linear-gradient(135deg, #5865f2, #404eed); }
.social-platform-card.kick { background: linear-gradient(135deg, #53fc18, #3bc912); color: #000; }
.social-platform-card.kick .spc-icon svg { fill: #000; }
.social-platform-card.kick .spc-arrow { color: #000; }
.spc-icon { flex-shrink: 0; opacity: 0.95; }
.spc-info { flex: 1; }
.spc-name   { font-size: 16px; font-weight: 700; display: block; }
.spc-handle { font-size: 12px; opacity: 0.8; display: block; margin-top: 2px; }
.spc-arrow  { font-size: 18px; opacity: 0.7; margin-left: auto; }

/* ── YOUTUBE CHANNEL BLOCK ── */
.yt-channel-block { display: flex; align-items: center; gap: 14px; width: 100%; }
.yt-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ff0000; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}

/* ── ACCOUNT / PROFILE ── */
#authSection { max-width: 400px; margin: 0 auto; padding: 10px 0; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; background: var(--bg-subtle); padding: 4px; border-radius: var(--radius-md); }
.auth-tab {
  flex: 1; padding: 8px 0; border: none; background: none; color: var(--text-secondary);
  font: 500 13px var(--font); border-radius: var(--radius); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.auth-tab.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--bg-input); color: var(--text); font: 14px var(--font); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(96,205,255,0.18); }
.auth-form textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--bg-input); color: var(--text); font: 14px var(--font); outline: none;
  resize: vertical; min-height: 72px; transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(96,205,255,0.18); }
.auth-btn {
  width: 100%; padding: 10px; border: none; border-radius: var(--radius);
  background: var(--accent-btn); color: #fff; font: 600 14px var(--font);
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.auth-btn:hover { background: var(--accent-btn-hover); transform: translateY(-1px); }
.auth-error { color: var(--error); font-size: 13px; text-align: center; min-height: 18px; }
.firebase-warning {
  background: rgba(242,139,130,0.12); border: 1px solid rgba(242,139,130,0.35);
  border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: var(--error); line-height: 1.5;
}

/* Profile section */
.profile-hero {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); margin-bottom: 18px;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff; user-select: none;
  box-shadow: 0 4px 16px rgba(0,120,212,0.35);
}
.profile-online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--bg-card);
}
.profile-info { flex: 1; min-width: 0; }
.profile-display-name { font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.profile-handle { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.profile-bio-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.profile-stats-row { display: flex; gap: 20px; }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.profile-stat-num { font-size: 17px; font-weight: 700; }
.profile-stat-lbl { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }

/* Account sub-tabs */
.account-subtabs { display: flex; gap: 4px; margin-bottom: 16px; }
.account-subtab {
  padding: 7px 16px; border: none; background: var(--bg-subtle);
  color: var(--text-secondary); font: 500 13px var(--font);
  border-radius: var(--radius); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.account-subtab.active { background: var(--accent-bg); color: var(--accent); }
.account-subtab:hover:not(.active) { background: var(--bg-subtle-hover); color: var(--text); }

/* Members grid */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.members-loading { color: var(--text-secondary); font-size: 14px; text-align: center; padding: 30px 0; }
.member-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-align: center; position: relative;
}
.member-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.member-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.member-name { font-size: 14px; font-weight: 600; }
.member-bio { font-size: 12px; color: var(--text-secondary); line-height: 1.4; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.member-meta { font-size: 11px; color: var(--text-disabled); margin-top: 2px; }
.member-follow-btn {
  margin-top: 4px; padding: 5px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-subtle);
  color: var(--text); font: 500 12px var(--font); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.member-follow-btn:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.member-follow-btn.following {
  background: var(--accent-bg); border-color: var(--accent); color: var(--accent);
}
.member-follow-btn.following:hover { background: rgba(242,139,130,0.1); border-color: var(--error); color: var(--error); }
.member-card.is-self .member-follow-btn { display: none; }

/* Profile modal */
.profile-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.profile-modal-overlay.open { opacity: 1; pointer-events: all; }
.profile-modal {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 28px 24px;
  width: 340px; max-width: 90vw; box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.97); transition: transform 0.2s;
  text-align: center; position: relative;
}
.profile-modal-overlay.open .profile-modal { transform: translateY(0) scale(1); }
.profile-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-secondary); font-size: 18px;
  cursor: pointer; padding: 4px; border-radius: var(--radius); transition: color 0.15s;
}
.profile-modal-close:hover { color: var(--text); }
.profile-modal-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  margin: 0 auto 12px; box-shadow: 0 4px 16px rgba(0,120,212,0.3);
}
.profile-modal-name { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.profile-modal-handle { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.profile-modal-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; min-height: 18px; }
.profile-modal-joined { font-size: 11px; color: var(--text-disabled); margin-bottom: 14px; }
.profile-modal-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 16px; }
.profile-modal-stat-num { font-size: 17px; font-weight: 700; display: block; }
.profile-modal-stat-lbl { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.modal-follow-btn {
  width: 100%; padding: 9px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--accent-btn);
  color: #fff; font: 600 14px var(--font); cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.modal-follow-btn:hover { background: var(--accent-btn-hover); transform: translateY(-1px); }
.modal-follow-btn.following { background: var(--bg-subtle); color: var(--text); }
.modal-follow-btn.following:hover { background: rgba(242,139,130,0.1); border-color: var(--error); color: var(--error); }
.modal-follow-btn.is-self { display: none; }

/* ── PFP UPLOAD ── */
.profile-avatar-wrap { position: relative; cursor: pointer; flex-shrink: 0; }
.pfp-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.5); display: flex; align-items: center;
  justify-content: center; font-size: 18px; opacity: 0;
  transition: opacity 0.2s;
}
.profile-avatar-wrap:hover .pfp-overlay { opacity: 1; }
.pfp-preview-wrap { flex-shrink: 0; }
.pfp-preview-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-dark); display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700; color: #fff;
  border: 2px solid var(--border-strong);
  background-size: cover; background-position: center;
}

/* ── ACCOUNT INFO TAB ── */
.acct-info-banner {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(0,120,212,0.18) 0%, rgba(96,205,255,0.08) 100%);
  border: 1px solid rgba(96,205,255,0.18);
  border-radius: var(--radius-lg); margin-bottom: 4px;
}
.acct-info-banner-pfp { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.acct-info-banner-pfp .pfp-preview-avatar { width: 72px; height: 72px; font-size: 28px; border: 3px solid rgba(96,205,255,0.35); box-shadow: 0 0 20px rgba(0,120,212,0.3); }
.acct-pfp-change-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius);
  background: var(--bg-subtle); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.acct-pfp-change-btn:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.acct-info-banner-text { flex: 1; }
.acct-info-banner-name { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 3px; }
.acct-info-banner-joined { font-size: 12px; color: var(--text-secondary); }
.acct-info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.acct-info-row:last-child { border-bottom: none; }
.acct-info-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.acct-info-cell { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.acct-info-lbl { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.acct-info-val { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-small { font-family: 'Consolas', monospace; font-size: 11px; color: var(--text-disabled); font-weight: 400; }

/* ── POSTS / FEED ── */
.post-composer {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.composer-avatar-wrap { flex-shrink: 0; }
.composer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dark); display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 700; color: #fff;
  background-size: cover; background-position: center;
}
.composer-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.composer-input { resize: none; min-height: 72px; }
.composer-img-preview {
  display: flex; align-items: flex-start; gap: 8px; position: relative;
}
.composer-img-preview img { max-width: 200px; max-height: 200px; border-radius: var(--radius); object-fit: cover; }
.composer-img-remove {
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  border-radius: 50%; width: 22px; height: 22px; font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.composer-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.composer-photo-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.composer-photo-btn input { display: none; }

.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 12px; transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--border-strong); }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dark); display: flex; align-items: center;
  justify-content: center; font-size: 15px; font-weight: 700; color: #fff;
  background-size: cover; background-position: center;
}
.post-header-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.post-username { font-size: 14px; font-weight: 600; }
.post-time { font-size: 11px; color: var(--text-disabled); }
.post-delete-btn {
  background: none; border: none; color: var(--text-disabled);
  font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s; line-height: 1;
}
.post-delete-btn:hover { color: var(--error); background: rgba(239,68,68,0.1); }
.post-text { font-size: 14px; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.post-image {
  width: 100%; max-height: 400px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 10px; cursor: zoom-in;
  transition: max-height 0.3s;
}
.post-image.expanded { max-height: none; cursor: zoom-out; }
.post-footer { display: flex; gap: 12px; }
.post-like-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text-secondary);
  font: 500 13px var(--font); cursor: pointer; padding: 5px 10px;
  border-radius: var(--radius); transition: all 0.15s;
}
.post-like-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.post-like-btn.liked { color: #ef4444; }
.post-like-btn.liked svg { fill: #ef4444; }

.profile-posts-header {
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 20px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── MEMBER PROFILE (Instagram-style) ── */
.ig-back-btn { margin-bottom: 18px; }
.ig-profile-header {
  display: flex; gap: 36px; align-items: flex-start;
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.ig-avatar-col { flex-shrink: 0; }
.ig-profile-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #fff;
  border: 3px solid rgba(96,205,255,0.3);
  box-shadow: 0 4px 20px rgba(0,120,212,0.3);
  background-size: cover; background-position: center;
}
.ig-info-col { flex: 1; min-width: 0; }
.ig-username-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ig-username { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.ig-stats-row { display: flex; gap: 24px; margin-bottom: 12px; }
.ig-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ig-stat strong { font-size: 18px; font-weight: 700; }
.ig-stat span { font-size: 12px; color: var(--text-secondary); }
.ig-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.ig-joined { font-size: 12px; color: var(--text-disabled); margin-bottom: 12px; }
.ig-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ig-content-area { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ig-content-card {
  padding: 18px 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.ig-content-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ig-content-value { font-size: 15px; font-weight: 600; }

.member-admin-badge {
  display: inline-flex; align-items: center;
  font-size: 13px; margin-left: 3px;
  filter: drop-shadow(0 0 4px rgba(245,158,11,0.6));
}

/* ── ADMIN ── */
.admin-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: linear-gradient(90deg,#f59e0b,#ef4444);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}
.special-badge {
  display: inline-flex; align-items: center; margin-left: 6px;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(255,105,180,0.12); border: 1px solid rgba(255,105,180,0.35);
  box-shadow: 0 0 8px rgba(255,105,180,0.5), 0 0 16px rgba(255,105,180,0.25);
  animation: pinkPulse 2.5s ease-in-out infinite;
}
@keyframes pinkPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255,105,180,0.5), 0 0 14px rgba(255,105,180,0.2); }
  50%       { box-shadow: 0 0 12px rgba(255,105,180,0.8), 0 0 24px rgba(255,105,180,0.4); }
}
.admin-panel-header {
  font-size: 11px; font-weight: 700; color: #ef4444;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px; padding-top: 8px;
  border-top: 1px solid rgba(239,68,68,0.25);
}
.admin-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.admin-btn {
  padding: 7px 10px; border-radius: var(--radius); border: 1px solid;
  font: 600 12px var(--font); cursor: pointer; transition: all 0.15s;
}
.admin-btn.warn { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: #f59e0b; }
.admin-btn.warn:hover { background: rgba(245,158,11,0.22); }
.admin-btn.danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #ef4444; }
.admin-btn.danger:hover { background: rgba(239,68,68,0.22); }

/* ── COLOR PICKER ── */
.color-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.color-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  padding: 0; outline: none;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected {
  border-color: #fff; box-shadow: 0 0 0 3px rgba(96,205,255,0.5);
  transform: scale(1.18);
}

/* ── PROFILE MODAL ACTIONS ── */
.profile-modal-actions { display: flex; gap: 8px; margin-top: 2px; }
.profile-modal-actions .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── DM OVERLAY (full chat panel) ── */
.dm-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 20px; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.dm-overlay.open { opacity: 1; pointer-events: all; }
.dm-panel {
  width: 380px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 80px);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(0.97); transition: transform 0.2s;
}
.dm-overlay.open .dm-panel { transform: translateY(0) scale(1); }

.dm-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dm-header-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dark); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; color: #fff;
}
.dm-header-name { font-size: 15px; font-weight: 600; flex: 1; }
.dm-close-btn {
  background: none; border: none; color: var(--text-secondary); font-size: 16px;
  cursor: pointer; padding: 4px 6px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.dm-close-btn:hover { color: var(--text); background: var(--bg-subtle-hover); }

.dm-messages {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.dm-messages::-webkit-scrollbar { width: 4px; }
.dm-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.dm-loading { color: var(--text-secondary); font-size: 13px; text-align: center; margin: auto; }

.dm-msg { display: flex; flex-direction: column; max-width: 78%; }
.dm-mine { align-self: flex-end; align-items: flex-end; }
.dm-theirs { align-self: flex-start; align-items: flex-start; }
.dm-bubble {
  padding: 8px 12px; border-radius: 16px;
  font-size: 13px; line-height: 1.45; word-break: break-word;
}
.dm-mine .dm-bubble {
  background: var(--accent-btn); color: #fff;
  border-bottom-right-radius: 4px;
}
.dm-theirs .dm-bubble {
  background: var(--bg-subtle-hover); color: var(--text);
  border-bottom-left-radius: 4px;
}
.dm-meta { font-size: 10px; color: var(--text-disabled); margin-top: 2px; padding: 0 2px; }

.dm-input-row {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.dm-input { flex: 1; margin: 0; }
.dm-send-btn { flex-shrink: 0; padding: 8px 14px; }

/* ── DM LIST (conversations) ── */
.dm-list-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.dm-list-header span:first-child { font-size: 15px; font-weight: 600; }
.dm-list-hint { font-size: 11px; color: var(--text-disabled); }
.dm-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; margin-bottom: 6px;
  transition: background 0.15s, transform 0.12s;
}
.dm-list-item:hover { background: var(--bg-card-hover); transform: translateX(2px); }
.dm-list-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.dm-list-info { flex: 1; min-width: 0; }
.dm-list-name { font-size: 14px; font-weight: 600; }
.dm-list-preview {
  font-size: 12px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 200px;
}
.dm-list-time { font-size: 11px; color: var(--text-disabled); flex-shrink: 0; }

/* ── NAV USER PANEL ── */
.nav-user-panel {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 4px 8px 0;
  border-radius: var(--radius-lg);
  cursor: pointer; transition: background 0.15s;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 4px;
}
.nav-user-panel:hover { background: var(--bg-subtle-hover); }
.nav-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dark); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
  background-size: cover; background-position: center;
}
.nav-user-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; }
.nav-user-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-status { font-size: 10px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.nav-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.nav-pane.collapsed .nav-user-info { display: none; }
.nav-pane.collapsed .nav-user-panel { justify-content: center; padding: 10px; }

/* ── SOCIAL LINKS ── */
.social-feed-section { margin-bottom: 8px; }
.social-feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.social-feed-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.social-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-link-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.social-link-card:hover { background: var(--bg-card-hover); border-color: var(--border-strong); transform: translateY(-1px); }
.slc-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.slc-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.slc-sc { background: linear-gradient(135deg,#ff5500,#ff7700); }
.slc-dc { background: #5865f2; }
.slc-kick { background: #53fc18; color: #000; }
.slc-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slc-name { font-size: 14px; font-weight: 600; }
.slc-handle { font-size: 12px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slc-arrow { color: var(--text-disabled); flex-shrink: 0; }

/* ── RESPONSIVE ── */
/* Mobile nav backdrop */
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(2px);
}
.nav-backdrop.visible { display: block; }

@media (max-width: 700px) {
  /* ── FULL SCREEN SHELL ── */
  body { padding: 0; overflow: hidden; height: 100dvh; height: 100vh; display: block; }
  .app-window {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; max-width: none !important;
    height: 100% !important; height: 100dvh !important;
    border-radius: 0 !important; border: none !important;
    display: flex; flex-direction: column;
  }

  /* ── TITLE BAR — compact ── */
  .titlebar { padding: 0 14px; min-height: 46px; }
  .wm-btns { display: none; }
  .titlebar-drag { display: none; }
  #navToggle { display: flex !important; }

  /* ── NAV — slide-in drawer ── */
  .nav-pane {
    position: fixed !important;
    top: 0 !important; left: -280px !important; bottom: 0 !important;
    width: 260px !important;
    z-index: 200;
    transition: left 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: none;
    overflow-y: auto;
  }
  .nav-pane.mobile-open {
    left: 0 !important;
    box-shadow: 8px 0 32px rgba(0,0,0,0.6);
  }
  .nav-pane.collapsed { width: 260px !important; left: -280px !important; }
  .nav-pane.collapsed.mobile-open { left: 0 !important; }
  /* Always show labels in drawer */
  .nav-pane .nav-item span,
  .nav-pane .search-input { display: block !important; }
  .nav-pane .nav-item { justify-content: flex-start !important; padding: 10px 14px !important; width: auto !important; }
  .nav-pane .nav-search { padding: 8px 12px; display: flex; }
  .nav-pane .nav-user-info { display: flex !important; }

  /* ── APP BODY + MAIN CONTENT ── */
  .app-body { flex: 1; min-height: 0; overflow: hidden; }
  .main-content { padding: 0 14px 20px; flex: 1; min-height: 0; }

  /* ── HERO ── */
  .hero-banner { flex-direction: column; padding: 20px 16px; gap: 16px; }
  .hero-visual { display: none; }
  .hero-heading { font-size: 26px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }

  /* ── PROFILE HERO ── */
  .profile-hero { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 18px 16px; }
  .profile-stats-row { justify-content: center; }
  .profile-hero > button { margin-left: 0 !important; }

  /* ── ACCOUNT SUBTABS ── */
  .account-subtabs {
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .account-subtabs::-webkit-scrollbar { display: none; }
  .account-subtab { flex-shrink: 0; }

  /* ── MEMBERS ── */
  .members-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .members-search-row { flex-direction: column; gap: 8px; }
  .members-search-row input { width: 100%; }

  /* ── IG PROFILE VIEW ── */
  .ig-profile-header { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 16px; }
  .ig-stats-row { justify-content: center; gap: 28px; }
  .ig-actions { justify-content: center; flex-wrap: wrap; }
  .ig-content-area { grid-template-columns: 1fr; }
  .ig-profile-avatar { width: 80px; height: 80px; font-size: 30px; }

  /* ── ACCOUNT INFO BANNER ── */
  .acct-info-banner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }

  /* ── SETTINGS ── */
  .settings-row { flex-wrap: wrap; gap: 10px; }
  .settings-row .btn { width: 100%; text-align: center; }

  /* ── SOCIAL LINKS ── */
  .social-links-grid { grid-template-columns: 1fr; }

  /* ── DM OVERLAY ── */
  .dm-overlay { padding: 0; }
  .dm-panel { width: 100%; height: 100%; border-radius: 0; }

  /* ── PROFILE MODAL — bottom sheet ── */
  .profile-modal-overlay { align-items: flex-end; }
  .profile-modal { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 82vh; overflow-y: auto; }

  /* ── NAV USER PANEL ── */
  .nav-user-panel { margin: 4px 6px 0; }
}

@media (max-width: 380px) {
  .members-grid { grid-template-columns: 1fr; }
  .account-subtab { padding: 6px 10px; font-size: 12px; }
}

/* ── Feed page ── */
.feed-subtabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: var(--bg-card); border-radius: 10px;
  padding: 4px; border: 1px solid var(--border);
}
.feed-subtab {
  flex: 1; padding: 7px 12px; border-radius: 7px; border: none;
  background: transparent; color: var(--text-secondary);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.feed-subtab.active {
  background: var(--accent); color: #fff;
}
.feed-login-prompt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 16px; font-size: 13px; color: var(--text-secondary);
  gap: 12px;
}

/* ── Home community CTA ── */
.community-cta-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0,120,212,0.18) 0%, rgba(96,205,255,0.08) 100%);
  border: 1px solid rgba(96,205,255,0.25); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(96,205,255,0.08) inset;
}
.community-cta-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.community-cta-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: rgba(0,120,212,0.3); display: flex; align-items: center; justify-content: center;
  color: #60cdff;
}
.community-cta-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.community-cta-sub { font-size: 13px; color: var(--text-secondary); }
.community-cta-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.home-feed-preview {
  padding: 16px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px;
}
.home-post-preview {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.home-post-preview:last-child { border-bottom: none; }
.home-post-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}

/* ── Banner swatch ── */
.banner-swatch.selected {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ── Profile hero with banner ── */
#myProfileHero {
  background: linear-gradient(135deg,#0d1b2a,#1a3a5c);
  border-radius: 12px; padding: 20px; margin-bottom: 4px;
  transition: background 0.3s;
}

/* ── Mobile optimization ── */
@media (max-width: 700px) {
  body { padding: 0; background-attachment: scroll; }
  .app-window {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    border-radius: 0; max-width: none; max-height: none;
    box-shadow: none;
  }
  .title-bar { padding: 0 10px; height: 38px; -webkit-app-region: no-drag; }
  .title-bar-controls { display: none; }
  .app-body { flex-direction: column; height: calc(100% - 38px); }
  .nav-pane {
    order: 2; width: 100% !important; height: 56px; min-height: 56px;
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    border-right: none; border-top: 1px solid var(--border);
    padding: 0; gap: 0; flex-shrink: 0;
  }
  .nav-pane.collapsed { width: 100% !important; height: 56px; }
  .nav-items { flex-direction: row; gap: 0; overflow-x: auto; padding: 0; flex: 1; }
  .nav-item {
    flex-direction: column; gap: 2px; padding: 4px 8px;
    min-width: 60px; font-size: 10px; border-radius: 0;
    white-space: nowrap; flex-shrink: 0;
  }
  .nav-item span { display: block; font-size: 10px; }
  .nav-icon { width: 18px; height: 18px; }
  .nav-item.active::after { display: none; }
  .nav-item.active {
    background: rgba(0,120,212,0.2);
    border-top: 2px solid var(--accent);
  }
  .nav-header, .nav-footer { display: none; }
  .main-content { order: 1; flex: 1; overflow-y: auto; }
  .page { padding: 14px; }
  .page-title { font-size: 20px; }
  .info-card { padding: 14px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-wrap: wrap; }
}
