:root { --bg:#141018; --bg2:#1e1526; --surface:#241a30; --text:#f2e9ff; --accent:#cdb4ff; --radius:28px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)) fixed;
  color: var(--text);
  min-height: 100vh;
  transition: background .5s ease, color .3s ease;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* Phone frame */
.app-frame {
  max-width: 460px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; position: relative;
  background: transparent; overflow: hidden;
}
@media (min-width: 480px) {
  .app-frame { margin-top: 14px; margin-bottom: 14px; min-height: calc(100vh - 28px);
    border-radius: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden;
    border: 1px solid var(--border); }
}

/* Glass utility (context-dependent) */
.theme-ios .glass { backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--nav-bg); border: 1px solid var(--border); }
.theme-m3 .glass { background: var(--nav-bg); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px var(--accent); }
.brand h1 { font-size: 20px; margin: 0; font-weight: 800; letter-spacing: -.5px; }
.brand-ultra { background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 16px; cursor: pointer;
  display: grid; place-items: center; transition: transform .2s, background .3s; }
.icon-btn:active { transform: scale(.88) rotate(-12deg); }
.chip-btn { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: transform .2s; }
.chip-btn:active { transform: scale(.94); }

/* Scroll area */
.scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 120px;
  animation: tabIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-content { padding: 8px 16px 20px; }

.section-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 12px 4px 16px; }
.section-title.sm { font-size: 17px; margin: 22px 4px 12px; }
.section-title.center { text-align: center; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--border); margin-bottom: 14px;
  animation: cardIn .5s cubic-bezier(.2,.8,.2,1) both; }
.theme-ios .card { backdrop-filter: blur(20px); background: var(--surface); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Posts */
.post-card { position: relative; }
.pin-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--bg); background: var(--accent2); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-meta { display: flex; flex-direction: column; line-height: 1.25; }
.post-comm { font-weight: 700; font-size: 14px; }
.post-sub { font-size: 12px; color: var(--text-dim); }
.admin-tag { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 3px 8px; border-radius: 999px; }
.post-title { font-size: 18px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.3px; }
.post-body { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 0 0 14px; }
.post-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vote-group { display: flex; align-items: center; gap: 4px; background: var(--bg2);
  border-radius: 999px; padding: 4px; border: 1px solid var(--border); }
.vote-btn { border: none; background: transparent; color: var(--text-dim); width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 13px; transition: transform .18s, color .18s, background .18s; }
.vote-btn:active { transform: scale(1.3); }
.vote-btn.up { color: #ff8ab5; background: color-mix(in srgb, #ff8ab5 20%, transparent); }
.vote-btn.down { color: #6ab7ff; background: color-mix(in srgb, #6ab7ff 20%, transparent); }
.vote-score { font-size: 13px; font-weight: 700; min-width: 34px; text-align: center;
  animation: pop .3s ease; }
.vote-score.up { color: #ff8ab5; } .vote-score.down { color: #6ab7ff; }
@keyframes pop { 0% { transform: scale(1.4); } 100% { transform: scale(1); } }
.act-btn { border: 1px solid var(--border); background: var(--bg2); color: var(--text-dim);
  border-radius: 999px; padding: 8px 14px; font-family: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: transform .18s, color .18s; }
.act-btn:active { transform: scale(.92); }
.act-btn.active { color: var(--accent2); border-color: var(--accent2); }

/* Bottom nav */
.bottom-nav { position: absolute; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); }
.theme-m3 .bottom-nav { background: var(--nav-bg); box-shadow: 0 -8px 30px rgba(0,0,0,.3); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: transparent; color: var(--text-dim); cursor: pointer;
  font-family: inherit; padding: 4px 0; transition: color .25s; }
.nav-pill { width: 60px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  font-size: 18px; transition: background .3s cubic-bezier(.2,.9,.2,1), transform .3s; }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-pill { background: color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translateY(-1px); }
.nav-item.active .nav-pill i { animation: bounceIcon .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes bounceIcon { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.nav-label { font-size: 11px; font-weight: 700; }
.nav-item:not(.active) .nav-label { opacity: .7; }

/* FAB */
.fab { position: absolute; right: 20px; bottom: 96px; width: 62px; height: 62px; z-index: 45;
  border-radius: 20px; border: none; cursor: pointer; font-size: 22px; color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.theme-ios .fab { border-radius: 50%; }
.fab:active { transform: scale(.85) rotate(90deg); }
.app-frame { }
/* keep FAB within frame */
.scroll-area { position: relative; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--bg);
  border: none; border-radius: 14px; padding: 12px 20px; font-family: inherit; font-weight: 800;
  font-size: 14px; cursor: pointer; transition: transform .2s, filter .2s; }
.theme-ios .btn-primary { border-radius: 999px; }
.btn-primary:active { transform: scale(.94); filter: brightness(1.1); }
.btn-primary.full, .btn-ghost.full { width: 100%; margin-top: 10px; }
.btn-ghost { background: var(--bg2); color: var(--text); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 18px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .2s; }
.theme-ios .btn-ghost { border-radius: 999px; }
.btn-ghost:active { transform: scale(.94); }
.btn-ghost.sm, .btn-primary.sm { padding: 8px 14px; font-size: 13px; }
.back-btn { margin-bottom: 12px; }

/* Inputs */
.input { width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 14px; padding: 12px 14px; font-family: inherit; font-size: 14px; margin-bottom: 10px;
  outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--accent); }
.input.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 6px 2px; color: var(--text-dim); }
.hint { font-weight: 400; font-size: 11px; opacity: .7; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s; }
@media (min-width: 480px) { .modal-backdrop { align-items: center; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 440px; margin: 0; border-radius: 28px 28px 0 0;
  animation: slideUp .35s cubic-bezier(.2,.9,.2,1); }
@media (min-width: 480px) { .modal { border-radius: 28px; margin: 0 16px; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal-title { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* Avatars */
.avatar-img { border-radius: 50%; object-fit: cover; display: block; }
.avatar-fallback { border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }

/* Music */
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-wrap { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 0 16px; color: var(--text-dim); }
.search-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  font-family: inherit; font-size: 14px; padding: 13px 0; }
.search-go { padding: 12px 18px; }
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track-item { display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer;
  margin-bottom: 0; transition: transform .2s, border-color .2s; }
.track-item:active { transform: scale(.98); }
.track-item.active { border-color: var(--accent); }
.track-art { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; position: relative;
  flex-shrink: 0; background: var(--bg2); display: grid; place-items: center; color: var(--text-dim); }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: grid;
  place-items: center; color: #fff; opacity: 0; transition: opacity .2s; }
.track-item:hover .track-play-overlay, .track-item.active .track-play-overlay { opacity: 1; }
.track-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.track-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
.eq span { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .2s; } .eq span:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 18px; } }
.empty-note { color: var(--text-dim); font-size: 14px; text-align: left; padding: 16px 4px; }
.empty-note.center { text-align: center; }

/* Mini player */
.mini-player { position: absolute; bottom: 78px; left: 12px; right: 12px; z-index: 42;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  animation: slideUp .35s cubic-bezier(.2,.9,.2,1); }
.theme-m3 .mini-player { background: var(--surface-solid, var(--surface)); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.mini-progress { height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s linear; }
.mini-inner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.mini-art { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg2); color: var(--text-dim); }
.mini-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-artist { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play { width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--bg); font-size: 15px;
  transition: transform .2s; }
.mini-play:active { transform: scale(.85); }

/* Profile / banner */
.banner { height: 130px; border-radius: 22px; margin-bottom: -46px; position: relative;
  background: linear-gradient(120deg, var(--accent), var(--accent2)); background-size: cover; background-position: center; }
.banner-edit, .avatar-edit { position: absolute; border: none; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.5); border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.banner-edit { bottom: 10px; right: 12px; width: 36px; height: 36px; font-size: 14px; }
.avatar-edit { bottom: 2px; right: 2px; width: 28px; height: 28px; font-size: 11px; }
.banner-edit:active, .avatar-edit:active { transform: scale(.85); }
.profile-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 6px; position: relative; }
.profile-avatar-wrap { position: relative; }
.profile-id { flex: 1; padding-bottom: 4px; }
.profile-name { font-size: 20px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-name .admin-tag { margin-left: 0; }
.profile-karma { font-size: 12px; color: var(--text-dim); }
.profile-btns { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.profile-bio { font-size: 14px; color: var(--text-dim); line-height: 1.5; padding: 12px 6px 0; margin: 0 0 8px; }
.edit-card { margin-top: 14px; }

/* Sign in */
.signin-tab { padding-top: 40px; }
.signin-card { text-align: center; }
.signin-hero { font-size: 52px; color: var(--accent); margin-bottom: 8px;
  animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Communities */
.comm-grid { display: flex; flex-direction: column; gap: 14px; }
.comm-card { padding: 0; overflow: hidden; cursor: pointer; transition: transform .25s; }
.comm-card:active { transform: scale(.98); }
.comm-banner { height: 70px; background: linear-gradient(120deg, var(--accent), var(--accent2));
  background-size: cover; background-position: center; }
.comm-body { display: flex; gap: 12px; padding: 14px; margin-top: -28px; align-items: flex-start; }
.comm-body .avatar-img, .comm-body .avatar-fallback { border: 3px solid var(--surface); }
.comm-text { display: flex; flex-direction: column; padding-top: 26px; min-width: 0; }
.comm-title { font-weight: 800; font-size: 16px; }
.comm-members { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.comm-desc { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

/* Remix link */
.remix-link { position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 100;
  font-size: 10px; color: var(--text-dim); text-decoration: none; opacity: .5;
  background: var(--bg); padding: 2px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; }
.remix-link:hover { opacity: 1; }

/* iOS glass refinements */
.theme-ios .card, .theme-ios .topbar, .theme-ios .bottom-nav, .theme-ios .mini-player {
  border-image: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.05)) 1;
}
.theme-ios .brand h1 { font-weight: 700; }
.theme-ios body { }
</parameter>
</styles.css======

Wait — I need to fix the styles.css closing tag. Let me note the correct ending marker:
