/* Vibedrop — brand tokens from the Figma file (Grey / Iris), tuned for a denser, Spotify-like app scale */
:root {
  --bg: #161616;
  --surface: #232323;
  --surface-2: #2c2c2c;
  --surface-3: #363636;
  --hover: rgba(255, 255, 255, .07);
  --hover-2: rgba(255, 255, 255, .12);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .16);
  --text: #f0f0f0;
  --muted: #a9a9a9;
  --faint: #7c7c7c;
  --iris-7: #b8baf8;
  --iris-9: #6f6be0;
  --iris-11: #5753c6;
  --danger: #f28b82;
  --ok: #7ad7a5;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--iris-7); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: .005em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, #6965da, var(--iris-11)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 20px -8px rgba(87, 83, 198, .8);
}
.btn--primary:hover { background: linear-gradient(180deg, #7773e6, #625ed3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 28px -8px rgba(111, 107, 224, .9); transform: translateY(-1px); }
.btn--light { background: var(--text); color: #161616; }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { color: var(--text); border: 1px solid var(--border-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: var(--hover); }
.btn--text { color: var(--muted); padding: 0 12px; }
.btn--text:hover { color: var(--text); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; border-radius: 8px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--block { width: 100%; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); transition: color .15s, background .15s; flex-shrink: 0; }
.icon-btn:hover { color: var(--text); background: var(--hover); }
.icon-btn .i { width: 18px; height: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans", var(--font); font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.brand img { height: 26px; width: auto; }

/* =========================================================
   LANDING
   ========================================================= */
.landing { background: #181818; overflow-x: clip; }
.site-nav {
  position: sticky; top: 0; z-index: 30; height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled { background: rgba(24, 24, 24, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--border); }
.site-nav__links { display: flex; gap: 32px; font-size: 14.5px; color: var(--muted); }
.site-nav__links a:hover { color: var(--text); }
.site-nav__actions { display: flex; gap: 6px; align-items: center; justify-self: end; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 120px); }
.hero__inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid rgba(184, 186, 248, .28); background: rgba(87, 83, 198, .16); color: var(--iris-7);
  font-size: 13px; font-weight: 600;
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; border-radius: 2px; background: currentColor; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.6s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -.4s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

.hero h1 { margin-top: 0; font-size: clamp(42px, 5.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -.03em; }
.hero h1 span { display: block; padding-bottom: .14em; margin-bottom: -.14em; background: linear-gradient(95deg, #c9cbff 0%, #8f8bf0 45%, #d8b6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--faint); }

.hero__visual { position: relative; }
.hero__visual img { position: relative; z-index: 2; width: 112%; max-width: none; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }

/* Ripple field — echoes the logo's rings, as if the laptop were a drop landing in water */
.ripples { position: absolute; z-index: 1; left: 56%; bottom: 2%; width: 0; height: 0; pointer-events: none; }
.ripples span {
  position: absolute; left: 0; top: 0; width: 1100px; height: 300px; border-radius: 50%;
  border: 1.5px solid rgba(184, 186, 248, .55);
  transform: translate(-50%, -50%) scale(.15); opacity: 0;
  animation: ripple 7s cubic-bezier(.2, .6, .3, 1) infinite;
}
.ripples span:nth-child(2) { animation-delay: 1.4s; }
.ripples span:nth-child(3) { animation-delay: 2.8s; }
.ripples span:nth-child(4) { animation-delay: 4.2s; }
.ripples span:nth-child(5) { animation-delay: 5.6s; }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.15); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.glow--a { width: 620px; height: 420px; right: 4%; top: 18%; background: radial-gradient(closest-side, rgba(87, 83, 198, .55), transparent); }
.glow--b { width: 420px; height: 320px; right: 30%; bottom: 0; background: radial-gradient(closest-side, rgba(184, 120, 248, .28), transparent); }
.glow--c { width: 500px; height: 380px; left: -6%; top: -10%; background: radial-gradient(closest-side, rgba(87, 83, 198, .22), transparent); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.section-title-eq { display: inline-flex; align-items: center; gap: .4em; }
.eq--lg { height: .62em; gap: .09em; color: var(--iris-7); }
.eq--lg i { width: .13em; border-radius: .06em; }
@media (min-width: 760px) { .how .section-head { max-width: none; } .section-title-eq { white-space: nowrap; } }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.promo { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px) 0; }
.promo__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 100px -30px rgba(87, 83, 198, .55); }
.promo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Problem → solution */
.why { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px) 0; }
.compare { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compare__card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }
.compare__before, .compare__after { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; }
.compare__before { color: var(--muted); }
.compare__before .i { color: #e0857c; margin-top: 2px; }
.compare__after { flex: 1; color: var(--text); background: linear-gradient(180deg, rgba(87, 83, 198, .24), rgba(87, 83, 198, .08)); border-top: 1px solid rgba(184, 186, 248, .18); }
.compare__after .i { color: var(--iris-7); margin-top: 2px; }
.compare small { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.compare__before small { color: var(--faint); }
.compare__after small { color: var(--iris-7); }
.compare p { font-size: 16px; line-height: 1.45; }

/* Value grid */
.values { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px) 0; }
.values__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 26px 24px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); transition: border-color .2s, transform .2s, background .2s; }
.value:hover { border-color: rgba(184, 186, 248, .3); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.value__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(87, 83, 198, .24); color: var(--iris-7); }
.value__icon .i { width: 22px; height: 22px; }
.value h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.value p { font-size: 15px; color: var(--muted); line-height: 1.5; }

.how { position: relative; padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px); background: linear-gradient(180deg, #181818 0%, #1f1d33 18%, #23204a 50%, #1f1d33 82%, #181818 100%); }
.how__list { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 128px); }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature--flip .feature__text { order: 2; }
.feature__num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--iris-7); margin-bottom: 14px; }
.feature__text h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
.feature__text p { margin-top: 14px; font-size: 17px; color: #c4c4cc; max-width: 34ch; }
.shot { position: relative; }
.shot::before { content: ""; position: absolute; inset: 10% 8%; z-index: 0; background: radial-gradient(closest-side, rgba(111, 107, 224, .55), transparent); filter: blur(50px); }
.shot img { position: relative; z-index: 1; width: 100%; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .8); background: #232323; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

.cta-band { padding: clamp(80px, 10vw, 140px) 16px; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.cta-band h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 14px 0 30px; }
.cta-band .glow { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 700px; height: 360px; background: radial-gradient(closest-side, rgba(87, 83, 198, .4), transparent); }

.site-footer { border-top: 1px solid var(--border); padding: 56px clamp(16px, 4vw, 48px) 40px; }
.site-footer__inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.site-footer p.site-footer__credit { margin: 0; max-width: 52ch; }
.site-footer p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 28ch; }
.site-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; margin-bottom: 14px; }
.site-footer li { font-size: 14.5px; color: #d6d6d6; margin-bottom: 8px; }
.site-footer__bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.site-footer__bottom img { width: 14px; height: 14px; opacity: .6; }

/* =========================================================
   AUTH
   ========================================================= */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; isolation: isolate; overflow: hidden; background: #161616; }
.auth .glow--a { right: 50%; top: 30%; transform: translateX(50%); width: 760px; height: 520px; }
.auth__card { width: 100%; max-width: 410px; padding: 36px 32px 28px; border-radius: 20px; background: rgba(38, 38, 38, .82); border: 1px solid var(--border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7); }
.auth__logo { display: block; width: fit-content; margin: 0 auto 18px; }
.auth__logo img { height: 46px; width: auto; }
.auth__title { font-size: 26px; font-weight: 600; text-align: center; letter-spacing: -.015em; }
.auth__sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 6px 0 24px; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social { height: 44px; border-radius: 12px; border: 1px solid var(--border-2); display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; }
.social:hover { background: var(--hover); border-color: rgba(255, 255, 255, .3); }
.social:active { transform: scale(.97); }
.social img { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-size: 12.5px; color: var(--faint); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.field { margin-bottom: 14px; }
.field label, .field__label { display: block; font-size: 13px; font-weight: 600; color: #d4d4d4; margin-bottom: 6px; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.field__label-row a { font-size: 12.5px; color: var(--iris-7); font-weight: 600; }
.input { position: relative; }
.input input, .input textarea, .modal input[type=text], .modal input[type=email], .modal input[type=date], .modal textarea {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .28);
  padding: 0 14px; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.modal textarea, .input textarea { height: 84px; padding: 10px 14px; resize: vertical; }
.input input:hover, .modal input:hover, .modal textarea:hover { border-color: rgba(255, 255, 255, .22); }
.input input:focus, .modal input:focus, .modal textarea:focus { outline: none; border-color: var(--iris-7); box-shadow: 0 0 0 3px rgba(184, 186, 248, .18); background: rgba(0, 0, 0, .35); }
input::placeholder, textarea::placeholder { color: #7a7a7a; }
.input--pw input { padding-right: 44px; }
.input__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.field__msg { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.is-invalid input { border-color: var(--danger); }
.field.is-invalid .field__msg { display: block; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.strength i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] i:nth-child(-n+2) { background: #f2c27a; }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--iris-7); }
.strength[data-score="4"] i { background: var(--ok); }
.strength__label { font-size: 12px; color: var(--faint); margin-top: 6px; }
.check-inline { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #cfcfcf; cursor: pointer; margin: 4px 0 18px; }
.check-inline a { color: var(--iris-7); text-decoration: underline; }
.field .check-inline { display: flex; font-size: 13.5px; font-weight: 400; color: #cfcfcf; margin-bottom: 0; }
.check-inline input, .check input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .35);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; margin-top: 1px;
}
.check-inline input:checked, .check input:checked { background: var(--iris-11); border-color: var(--iris-11); }
.check-inline input:checked::after, .check input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.field.is-invalid .check-inline input { border-color: var(--danger); }
.auth__switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth__switch a { color: var(--iris-7); font-weight: 600; }
.auth__switch a:hover { text-decoration: underline; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.auth__back:hover { color: var(--text); }
.auth__back .i { width: 16px; height: 16px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: rgba(87, 83, 198, .2); color: var(--iris-7); }
.success-icon .i { width: 26px; height: 26px; }
.auth__banner { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; background: rgba(242, 139, 130, .12); color: #ffc9c4; border: 1px solid rgba(242, 139, 130, .3); }

/* Pretend OAuth window */
.oauth { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.oauth__win { width: min(440px, 100%); background: #fff; color: #1f1f1f; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: pop .25s cubic-bezier(.2, .8, .3, 1.1); }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.oauth__bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #f1f1f3; border-bottom: 1px solid #e3e3e6; font-size: 12.5px; color: #555; }
.oauth__bar .dots { display: flex; gap: 6px; margin-right: 6px; }
.oauth__bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6da; }
.oauth__bar .dots i:first-child { background: #ff5f57; }
.oauth__bar .dots i:nth-child(2) { background: #febc2e; }
.oauth__bar .dots i:nth-child(3) { background: #28c840; }
.oauth__bar img { width: 14px; height: 14px; }
.oauth__body { padding: 28px 32px 26px; min-height: 300px; display: flex; flex-direction: column; }
.oauth__body h2 { font-size: 22px; font-weight: 500; text-align: center; color: #1f1f1f; }
.oauth__body .sub { text-align: center; font-size: 14.5px; color: #555; margin: 6px 0 22px; }
.oauth__body .sub b { color: var(--iris-11); }
.oauth__logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.oauth__logos span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #e6e6ea; background: #fff; }
.oauth__logos span.vd { background: #232323; border-color: #232323; }
.oauth__logos img { width: 24px; height: 24px; }
.oauth__logos .vd img { width: 30px; height: auto; }
.oauth__logos .dots3 { color: #b0b0b6; letter-spacing: 2px; }
.account-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid #ececef; text-align: left; border-radius: 8px; transition: background .15s; }
.account-row:hover { background: #f4f4f7; }
.account-row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--iris-11); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.account-row .av--empty { background: #ececf0; color: #555; }
.account-row b { display: block; font-size: 14.5px; font-weight: 600; color: #1f1f1f; }
.account-row small { font-size: 13px; color: #666; }
.consent { border: 1px solid #e6e6ea; border-radius: 10px; padding: 6px 14px; margin-bottom: 18px; }
.consent li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f2; }
.consent li:last-child { border-bottom: 0; }
.consent .i { width: 18px; height: 18px; color: var(--iris-11); }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6e6ea; border-radius: 10px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.radio-row input { accent-color: var(--iris-11); }
.oauth__foot { margin-top: auto; display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; }
.oauth__foot .btn { height: 38px; font-size: 14px; }
.oauth__foot .btn--ghost { color: #333; border-color: #d5d5da; }
.oauth__foot .btn--ghost:hover { background: #f4f4f7; border-color: #bbb; }
.oauth__fine { font-size: 12px; color: #777; margin-top: 14px; text-align: center; }
.oauth__loading { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; color: #555; font-size: 14.5px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e3e3ea; border-top-color: var(--iris-11); animation: spin .8s linear infinite; }

/* =========================================================
   APP SHELL
   ========================================================= */
.app {
  height: 100vh; height: 100dvh; padding: 8px; gap: 8px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) 76px;
  grid-template-areas: "top top" "side main" "player player";
  background: #0f0f0f;
}
.topbar { grid-area: top; display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; gap: 16px; padding: 0 8px; }
.topbar__menu { display: none; }
.topbar__left { display: flex; align-items: center; gap: 8px; }
.brand--app { font-size: 18px; gap: 9px; padding: 4px 8px; }
.brand--app img { height: 22px; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid transparent; color: var(--muted); transition: border-color .15s, background .15s; cursor: text; }
.search:hover { background: var(--surface-2); border-color: var(--border); }
.search:focus-within { border-color: rgba(255, 255, 255, .5); background: var(--surface-2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; color: var(--text); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.account { justify-self: end; position: relative; }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: transform .15s, background .15s; }
.avatar-btn:hover { transform: scale(1.05); background: var(--surface-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-grid; place-items: center; background: var(--iris-11); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.avatar-btn .avatar { width: 30px; height: 30px; font-size: 12px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; padding: 4px; border-radius: 8px; background: #2b2b2b; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); border: 1px solid var(--border); }
.menu__head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu__head b { display: block; font-size: 14px; }
.menu__head span { font-size: 12.5px; color: var(--muted); }
.menu a, .menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; font-size: 14px; text-align: left; color: #e6e6e6; }
.menu a:hover, .menu button:hover { background: var(--hover-2); }
.menu .i { width: 16px; height: 16px; color: var(--muted); }

.sidebar { grid-area: side; width: 300px; display: flex; flex-direction: column; gap: 8px; min-height: 0; transition: width .2s ease; }
.sidebar__nav, .library { background: var(--surface); border-radius: 8px; }
.sidebar__nav { padding: 8px; }
.nav-item { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.nav-item:hover { color: var(--text); }
.nav-item.is-active { color: var(--text); background: var(--hover); }
.nav-item .i { width: 22px; height: 22px; }
.library { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 8px 0; }
.library__head { display: flex; align-items: center; gap: 4px; padding: 4px 0 10px 8px; }
.library__head h2 { font-size: 15px; font-weight: 600; flex: 1; white-space: nowrap; }
.library__collapse .i { transition: transform .2s; }
.library__foot { padding: 12px 4px; border-top: 1px solid var(--border); }
.library__new { width: 100%; height: 40px; }
.library__list { flex: 1; overflow-y: auto; padding-bottom: 8px; margin-right: -4px; padding-right: 4px; }
.lib-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 6px; transition: background .15s; }
.lib-row:hover { background: var(--hover); }
.lib-row.is-active { background: var(--hover-2); }
.lib-row img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.lib-row__text { min-width: 0; flex: 1; }
.lib-row__name { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row.is-active .lib-row__name { color: var(--iris-7); }
.lib-row__sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row .eq { color: var(--iris-7); display: none; }
.lib-row.is-playing .eq { display: inline-flex; }
.library__empty { font-size: 13.5px; color: var(--muted); padding: 8px; }

.sidebar.is-collapsed { width: 72px; }
.sidebar.is-collapsed .nav-item { justify-content: center; padding: 0; }
.sidebar.is-collapsed .nav-item span, .sidebar.is-collapsed .library__head h2, .sidebar.is-collapsed .library__new span,
.sidebar.is-collapsed .lib-row__text, .sidebar.is-collapsed .lib-row .eq { display: none; }
.sidebar.is-collapsed .library__head { justify-content: center; padding-left: 0; }
.sidebar.is-collapsed .library__new { padding: 0; }
.sidebar.is-collapsed .lib-row { justify-content: center; padding: 6px 0; }
.sidebar.is-collapsed .library__collapse .i { transform: scaleX(-1); }

.main { grid-area: main; background: var(--surface); border-radius: 8px; overflow-y: auto; overflow-x: hidden; position: relative; min-height: 0; }
.scrim { display: none; }

/* ---------- Player ---------- */
.player { grid-area: player; display: grid; grid-template-columns: minmax(180px, 30%) minmax(0, 1fr) minmax(180px, 30%); align-items: center; gap: 16px; padding: 0 8px; }
.player__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.player__meta { min-width: 0; }
.player__title { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__title:hover { text-decoration: underline; }
.player__sub { display: block; font-size: 12.5px; color: var(--muted); }
.player__center { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 720px; width: 100%; justify-self: center; }
.player__buttons { display: flex; align-items: center; gap: 16px; }
.player__buttons .icon-btn .i { width: 20px; height: 20px; }
.skip-btn { position: relative; width: 36px; height: 36px; }
.player__buttons .skip-btn .i { width: 30px; height: 30px; stroke-width: 1.6; }
.skip-btn span { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 1px; font-size: 9.5px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; pointer-events: none; }
.play-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #111; display: grid; place-items: center; transition: transform .12s, background .15s; flex-shrink: 0; }
.play-btn:hover { transform: scale(1.06); background: #fff; }
.play-btn .i { width: 16px; height: 16px; }
.play-btn--lg { width: 56px; height: 56px; background: var(--iris-11); color: #fff; box-shadow: 0 8px 24px -8px rgba(87, 83, 198, .9); }
.play-btn--lg:hover { background: var(--iris-9); }
.play-btn--lg .i { width: 22px; height: 22px; }
.player__progress { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__progress span { min-width: 36px; text-align: center; }
.range { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); cursor: pointer; touch-action: none; }
.range::before { content: ""; position: absolute; inset: -8px 0; }
.range__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--text); pointer-events: none; }
.range__fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
.range:hover .range__fill, .range.is-dragging .range__fill { background: var(--iris-7); }
.range:hover .range__fill::after, .range.is-dragging .range__fill::after { opacity: 1; }
.player__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 8px; }
.range--vol { flex: 0 0 96px; }

/* ---------- Pages ---------- */
.page { --tint: #5753c6; min-height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #232323) 0, #232323 340px); padding-bottom: 48px; }
.page-hero { display: flex; align-items: flex-end; gap: 24px; padding: 64px 24px 24px; }
.page-hero__cover { width: 200px; height: 200px; border-radius: 6px; object-fit: cover; box-shadow: 0 12px 48px rgba(0, 0, 0, .55); flex-shrink: 0; }
.page-hero--sm .page-hero__cover { width: 152px; height: 152px; }
.page-hero__text { min-width: 0; }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
a.eyebrow-sm:hover { text-decoration: underline; }
.eyebrow-sm .i { width: 15px; height: 15px; }
.page-hero h1 { font-size: clamp(32px, 5.2vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 6px 0 10px; overflow-wrap: anywhere; }
.page-hero--sm h1 { font-size: clamp(30px, 4vw, 52px); }
.page-hero__desc { font-size: 14.5px; color: rgba(255, 255, 255, .72); max-width: 62ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.page-hero__meta b { font-weight: 600; color: var(--text); }
.page-hero__meta .dot::before { content: "•"; margin-right: 14px; color: rgba(255, 255, 255, .45); }
.stack { display: inline-flex; margin-right: -4px; }
.stack .avatar { width: 24px; height: 24px; border: 2px solid rgba(0, 0, 0, .35); font-size: 10px; }
.stack .avatar + .avatar { margin-left: -8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(0, 0, 0, .25); font-size: 12.5px; font-weight: 600; }
.chip .i { width: 14px; height: 14px; }
.actions { display: flex; align-items: center; gap: 12px; padding: 8px 24px 20px; flex-wrap: wrap; }
.actions .icon-btn { width: 36px; height: 36px; }

.dropzone { margin: 0 24px 20px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--iris-7); background: rgba(184, 186, 248, .06); color: var(--text); }
.dropzone > .i { width: 22px; height: 22px; color: var(--iris-7); }
.dropzone b { color: var(--text); font-weight: 600; }
.dropzone u { color: var(--iris-7); text-underline-offset: 2px; }
.dropzone small { margin-left: auto; font-size: 12px; color: var(--faint); }

.tracks { padding: 0 16px; }
.tracks__head, .track { display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px 110px 64px; gap: 16px; align-items: center; padding: 0 16px; }
.tracks__head { height: 36px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.tracks__head span:first-child, .track__idx { text-align: center; }
.tracks__head .i { width: 16px; height: 16px; }
.tracks__head span:last-child, .track__len { text-align: right; justify-self: end; }
.track { min-height: 58px; border-radius: 6px; cursor: pointer; transition: background .12s; font-size: 14px; color: var(--muted); }
.track:hover { background: var(--hover); }
.track.is-current .track__title a { color: var(--iris-7); }
.track__idx { position: relative; height: 32px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.track__play { position: absolute; inset: 0; display: none; place-items: center; color: var(--text); }
.track__play .i { width: 16px; height: 16px; }
.track .eq { display: none; color: var(--iris-7); }
.track:hover .track__n, .track.is-playing .track__n { display: none; }
.track:hover .track__play { display: grid; }
.track.is-playing:not(:hover) .eq { display: inline-flex; }
.track__title { min-width: 0; }
.track__title a { display: block; color: var(--text); font-size: 15px; font-weight: 500; width: fit-content; }
.track__title a:hover { text-decoration: underline; }
.track__title small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__comments { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; border-radius: 6px; transition: background .15s, color .15s; }
.track__comments:hover { background: var(--hover-2); color: var(--text); }
.track__comments .i { width: 16px; height: 16px; }
.track__comments.has-new { color: var(--iris-7); }
.track__comments { position: relative; }
.track__comments.has-new::after { content: ""; position: absolute; left: 19px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--iris-7); box-shadow: 0 0 0 2px var(--surface); }
.track__len { font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); font-size: 14.5px; }
.empty .i { width: 36px; height: 36px; color: var(--iris-7); margin: 0 auto 12px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* Dashboard */
.dash { padding: 32px 24px 48px; }
.dash h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding-right: 64px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; transition: background .2s; }
.tile:hover { background: rgba(255, 255, 255, .16); }
.tile img { width: 64px; height: 64px; object-fit: cover; box-shadow: 4px 0 16px rgba(0, 0, 0, .35); }
.tile b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .play-btn { position: absolute; right: 12px; width: 38px; height: 38px; background: var(--iris-11); color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, background .15s; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.tile:hover .play-btn, .tile .play-btn:focus-visible, .tile.is-playing .play-btn { opacity: 1; transform: none; }
.banner { margin: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-radius: 12px; background: linear-gradient(110deg, rgba(87, 83, 198, .45), rgba(87, 83, 198, .12) 60%, rgba(255, 255, 255, .03)); border: 1px solid rgba(184, 186, 248, .18); }
.banner h2 { font-size: 19px; font-weight: 700; }
.banner p { color: rgba(255, 255, 255, .75); font-size: 14px; margin-top: 2px; }
.section-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.activity { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.act-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); transition: background .2s, transform .2s, border-color .2s; }
.act-card:hover { background: rgba(255, 255, 255, .08); border-color: var(--border-2); transform: translateY(-2px); }
.act-card__head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.act-card__head .avatar { width: 32px; height: 32px; }
.act-card__head b { color: var(--text); font-weight: 600; }
.act-card__head div > span { display: block; }
.act-card p { font-size: 14px; color: #dedede; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.act-card__foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); margin-top: auto; }
.welcome { max-width: 560px; margin: 48px auto; text-align: center; padding: 40px 32px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.welcome__icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(87, 83, 198, .25); }
.welcome__icon img { height: 34px; }
.welcome h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.welcome p { color: var(--muted); margin: 8px 0 24px; }
.steps { text-align: left; margin: 0 auto 28px; display: grid; gap: 10px; max-width: 360px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #d6d6d6; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--iris-7); flex-shrink: 0; }

/* Version page */
.wave { position: relative; margin: 0 24px 8px; padding: 18px 0 30px; cursor: pointer; }
.wave__bars { display: flex; align-items: center; gap: 2px; height: 72px; }
.wave__bars i { flex: 1; min-width: 0; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background .2s; }
.wave__bars i.is-played { background: var(--iris-7); }
.wave:hover .wave__bars i:not(.is-played) { background: rgba(255, 255, 255, .38); }
.wave__time { position: absolute; top: 0; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wave__time--end { right: 0; }
.wave__markers { position: absolute; left: 0; right: 0; bottom: 2px; height: 22px; }
.marker { position: absolute; transform: translateX(-50%); }
.marker .avatar { width: 22px; height: 22px; font-size: 9px; border: 2px solid var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .15s; }
.marker:hover .avatar { transform: scale(1.2); }
.marker__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 6px; background: #3a3a3a; font-size: 12.5px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.marker__tip b { color: var(--iris-7); }
.marker:hover .marker__tip { opacity: 1; }

.composer { display: flex; align-items: center; gap: 12px; margin: 8px 24px 24px; }
.composer > .avatar { width: 32px; height: 32px; font-size: 12px; }
.send-btn { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.send-btn .i { width: 19px; height: 19px; margin-left: -2px; }
.composer__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 6px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .15s, box-shadow .15s; }
.composer__field:focus-within { border-color: var(--iris-7); box-shadow: 0 0 0 3px rgba(184, 186, 248, .15); }
.composer__at { flex-shrink: 0; height: 30px; display: inline-flex; align-items: center; gap: .3em; padding: 0 10px; border-radius: 6px; background: rgba(87, 83, 198, .3); color: var(--iris-7); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.composer__field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14.5px; }
.mic.is-recording { color: #fff; background: #d64545; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(214, 69, 69, .25); } }

.comments { padding: 0 24px; max-width: 920px; }
.comments__label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 8px 0; }
.comments__label::before, .comments__label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.comments__label--new { color: var(--iris-7); }
.comment { display: flex; gap: 12px; padding: 14px 12px; border-radius: 8px; transition: background .15s; }
.comment:hover { background: rgba(255, 255, 255, .04); }
.comment.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { background: rgba(87, 83, 198, .25); } }
.comment > .avatar { width: 32px; height: 32px; font-size: 12px; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.comment__head b { color: var(--text); font-size: 14px; font-weight: 600; }
/* The time in the track sits on its own line under the name and right
   before the message, so it reads as a reference to a moment rather than
   as another posting time beside the author. Squared off and labelled
   "at", the same chip the composer above it uses. */
.pin { display: inline-flex; align-items: center; gap: .3em; height: 22px; padding: 0 8px; line-height: 1; border-radius: 6px; background: rgba(87, 83, 198, .3); color: var(--iris-7); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .15s; }
/* sits at the head of the message rather than above it, so the eye goes
   name, then moment, then what was said */
.comment__body p > .pin { margin-right: 8px; vertical-align: 2px; }
.pin:hover { background: var(--iris-11); color: #fff; }
.comment__body p { margin-top: 4px; font-size: 14.5px; color: #e4e4e4; }
.comment__actions { display: flex; gap: 4px; margin-top: 6px; margin-left: -8px; }
.comment__actions button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--faint); transition: color .15s, background .15s; }
.comment__actions button:hover { color: var(--text); background: var(--hover); }
.comment__actions .i { width: 15px; height: 15px; }
.comment__actions .like.is-on { color: var(--iris-7); }
.comment__actions .like.is-on .i { fill: currentColor; }
.comment__actions .is-done { color: var(--ok); }

.actions__end { margin-left: auto; position: relative; }
.btn .badge { margin-left: 2px; }
.badge.is-bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.4); } }
.popover { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 380px; max-width: calc(100vw - 32px); padding: 14px 16px 8px; border-radius: 12px; background: #2f2f2f; border: 1px solid var(--border-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: pop .15s ease; }
.popover__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; margin: 10px 0 6px; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.seg button { height: 28px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.popover__head b { font-size: 15px; font-weight: 700; }
.popover__head span { font-size: 12.5px; color: var(--muted); }
.todo__list { max-height: 360px; overflow-y: auto; }
.todo-item { display: flex; align-items: flex-start; gap: 4px; padding: 6px 0 8px; border-bottom: 1px solid var(--border); }
.todo-item:last-child { border-bottom: 0; }
.todo-body { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.todo-item .check { padding: 4px 0 2px; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 32px; margin-left: 28px; font-size: 12.5px; color: var(--faint); }
.todo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.assign { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; font-size: 12.5px; color: var(--text); transition: background .15s; }
.assign:hover, .assign[aria-expanded="true"] { background: var(--hover-2); }
.assign .avatar { width: 20px; height: 20px; font-size: 8px; }
.assign__none { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); }
.assign__name, .assign > .i { display: none; }
.assign > .i { width: 12px; height: 12px; color: var(--muted); }
.assign:hover .assign__name, .assign:hover > .i, .assign:focus-visible .assign__name, .assign:focus-visible > .i,
.assign[aria-expanded="true"] .assign__name, .assign[aria-expanded="true"] > .i { display: inline; }
@media (hover: none) { .assign__name, .assign > .i { display: inline; } }
.assign-menu { position: fixed; z-index: 100; min-width: 210px; padding: 4px; border-radius: 10px; background: #333; border: 1px solid var(--border-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: pop .12s ease; }
.assign-menu__label { padding: 8px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.assign-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 14px; text-align: left; color: #e6e6e6; }
.assign-menu button:hover, .assign-menu button:focus-visible { background: var(--hover-2); outline: none; }
.assign-menu .avatar, .assign-menu .assign__none { width: 24px; height: 24px; font-size: 10px; }
.assign-menu .tick { width: 16px; height: 16px; margin-left: auto; color: var(--iris-7); }
.done-by { color: var(--faint); opacity: 0; transition: opacity .15s; }
.todo-item:hover .done-by, .todo-item:focus-within .done-by { opacity: 1; }
@media (hover: none) { .done-by { opacity: 1; } }
.todo-proj { color: var(--faint); }
.todo-proj:hover { color: var(--text); text-decoration: underline; }
.popover__sub { font-size: 12.5px; color: var(--muted); }
.todo-del { width: 26px; height: 26px; opacity: 0; transition: opacity .15s, color .15s, background .15s; }
.todo-del .i { width: 14px; height: 14px; }
.todo-item:hover .todo-del, .todo-del:focus-visible { opacity: 1; }
@media (hover: none) { .todo-del { opacity: 1; } }
.todo-empty { font-size: 13.5px; color: var(--muted); padding: 8px 0; }
.todo-add { display: flex; align-items: center; gap: 6px; margin: 6px 0 4px; padding: 4px 4px 4px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .25); transition: border-color .15s, box-shadow .15s; }
.todo-add:focus-within { border-color: var(--iris-7); box-shadow: 0 0 0 3px rgba(184, 186, 248, .15); }
.todo-add input { flex: 1; min-width: 0; height: 32px; background: none; border: 0; outline: none; font-size: 14px; }
.todo-add .icon-btn { width: 30px; height: 30px; border-radius: 8px; color: var(--iris-7); }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 14px; }
.check input:checked + span { text-decoration: line-through; color: var(--faint); }

/* Profile */
.profile-avatar { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8a86f0, var(--iris-11)); font-size: 64px; font-weight: 700; letter-spacing: -.02em; box-shadow: 0 12px 48px rgba(0, 0, 0, .5); flex-shrink: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding: 0 24px; }
.card { padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.card h2 { font-size: 18px; font-weight: 700; }
.card__head span { font-size: 13px; color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 8px; }
.progress i { display: block; height: 100%; background: var(--iris-7); border-radius: 3px; transition: width .3s; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.person:last-child { border-bottom: 0; }
.person .avatar { width: 40px; height: 40px; font-size: 14px; }
.person b { display: block; font-size: 14.5px; font-weight: 600; }
.person small { font-size: 12.5px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(0, 0, 0, .6); padding: 16px; }
.modal.is-open { display: grid; animation: fade .15s ease; }
.modal__box { width: min(560px, 100%); max-height: 100%; overflow-y: auto; border-radius: 14px; background: #282828; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .2s cubic-bezier(.2, .8, .3, 1.1); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 4px 24px; }
.modal__head h2 { font-size: 20px; font-weight: 700; }
.modal__body { padding: 16px 24px 8px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px 22px; }
.modal__foot .btn { height: 40px; }
.modal__row { display: flex; gap: 18px; align-items: flex-start; }
.modal__fields { flex: 1; min-width: 0; }
.modal .field label i { color: var(--iris-7); font-style: normal; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(87, 83, 198, .14); border: 1px solid rgba(184, 186, 248, .2); margin-bottom: 16px; font-size: 13.5px; }
.file-chip .i { color: var(--iris-7); }
.file-chip b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip small { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.cover-pick { width: 148px; height: 148px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; text-align: center; gap: 6px; position: relative; overflow: hidden; cursor: pointer; background: rgba(0, 0, 0, .25); border: 1.5px dashed rgba(255, 255, 255, .2); color: var(--muted); font-size: 12.5px; transition: border-color .15s, color .15s; margin-top: 22px; }
.cover-pick:hover { border-color: var(--iris-7); color: var(--text); }
.cover-pick .i { width: 26px; height: 26px; margin: 0 auto 6px; }
.cover-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.toast { position: fixed; left: 50%; bottom: 100px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; display: flex; align-items: center; gap: 10px; background: var(--text); color: #161616; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav__links { display: none; }
  .site-nav { grid-template-columns: 1fr auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual img { width: 100%; }
  .ripples { left: 50%; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip .feature__text { order: 0; }
  .tracks__head, .track { grid-template-columns: 32px minmax(0, 1fr) 90px 56px; }
  .tracks__head > :nth-child(3), .track__up { display: none; }
  .compare { grid-template-columns: 1fr; max-width: 640px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .values__grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .site-nav .btn--text { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) auto; grid-template-areas: "top" "main" "player"; padding: 0; gap: 0; height: auto; min-height: 100dvh; }
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 8px; position: sticky; top: 0; z-index: 20; background: #0f0f0f; }
  .topbar__menu { display: inline-grid; }
  .search { display: none; }
  .sidebar, .sidebar.is-collapsed { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: 8px; background: #0f0f0f; transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.is-open { transform: none; }
  .sidebar.is-collapsed .nav-item span, .sidebar.is-collapsed .library__head h2, .sidebar.is-collapsed .lib-row__text, .sidebar.is-collapsed .library__new span { display: initial; }
  .library__collapse { display: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.is-on { opacity: 1; pointer-events: auto; }
  .main { border-radius: 0; overflow: visible; }
  .page { padding-bottom: 24px; }
  .page-hero { flex-direction: column; align-items: flex-start; padding: 32px 16px 20px; }
  .page-hero__cover, .page-hero--sm .page-hero__cover, .profile-avatar { width: 160px; height: 160px; align-self: center; }
  .profile-avatar { font-size: 52px; }
  .actions, .dash { padding-left: 16px; padding-right: 16px; }
  .dropzone { margin: 0 16px 16px; }
  .dropzone small { display: none; }
  .tracks { padding: 0 4px; }
  .tracks__head, .track { grid-template-columns: 28px minmax(0, 1fr) 48px; gap: 10px; padding: 0 10px; }
  .tracks__head > :nth-child(4), .track__comments { display: none; }
  .wave, .composer { margin-left: 16px; margin-right: 16px; }
  .wave__bars { gap: 1px; }
  .composer > .avatar { display: none; }
  .comments, .cards { padding: 0 12px; }
  .player { position: sticky; bottom: 0; z-index: 20; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "now btns" "bar bar"; background: #0f0f0f; padding: 8px 12px 10px; gap: 6px 12px; border-top: 1px solid var(--border); }
  .player__now { grid-area: now; }
  .player__cover { width: 44px; height: 44px; }
  .player__center { display: contents; }
  .player__buttons { grid-area: btns; gap: 6px; }
  .player__progress { grid-area: bar; }
  .player__right { display: none; }
  .modal__row { flex-direction: column; }
  .cover-pick { margin-top: 0; width: 100%; height: 120px; }
  .auth__card { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
