:root {
  --bg-main: #140916;
  --bg-deep: #1d0d23;
  --panel-dark: rgba(59, 22, 72, 0.88);
  --panel-light: rgba(242, 228, 245, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);

  --text-main: #fff8ff;
  --text-dark: #2d1731;
  --text-muted: #d9c8dc;
  --text-soft-dark: #6f5374;

  --lavender: #c89ad8;
  --lavender-soft: #e4c8ea;
  --plum: #4d145f;
  --plum-deep: #2a0333;
  --accent: #a33cc2;
  --accent-hover: #8c2ea8;
  --white: #ffffff;

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --font-display: "Cormorant Garamond", serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(153, 73, 181, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(236, 205, 244, 0.12), transparent 30%),
    linear-gradient(135deg, #120513 0%, #2b0f33 45%, #1f0827 100%);
  color: var(--text-main);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.auth-shell {
  width: 100%;
  max-width: 1320px;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  background: rgba(21, 8, 28, 0.7);
}

.auth-brand-panel {
  position: relative;
  padding: 56px;
  background:
    linear-gradient(180deg, rgba(110, 38, 128, 0.78), rgba(33, 10, 40, 0.95)),
    url("spillrlogo1.png");
  background-repeat: no-repeat;
  background-position: right 36px bottom 28px;
  background-size: 180px;
  display: flex;
  align-items: stretch;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 194, 251, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.95;
}

.brand-logo-full {
  width: 220px;
  max-width: 60%;
  object-fit: contain;
}

.brand-copy {
  max-width: 540px;
}

.brand-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender-soft);
  margin-bottom: 14px;
}

.brand-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: 1em;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.brand-description {
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 470px;
  color: var(--text-muted);
}

.brand-preview-card {
  width: min(100%, 430px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 24px 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.brand-preview-card h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 12px;
}

.brand-preview-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.preview-meta {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--lavender-soft);
}

.auth-form-panel {
  background: linear-gradient(180deg, #f0deef 0%, #e6d4e7 100%);
  color: var(--text-dark);
  padding: 34px 34px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
  background: rgba(77, 20, 95, 0.08);
  border-radius: 999px;
  padding: 8px;
  width: fit-content;
}

.mode-toggle {
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--text-soft-dark);
  transition: 0.25s ease;
}

.mode-toggle.active {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(74, 17, 91, 0.25);
}

.auth-form-wrap {
  width: 100%;
  max-width: 500px;
}

.form-heading {
  margin-bottom: 28px;
}

.form-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  color: #82588d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-heading h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.95;
  margin-bottom: 12px;
  color: #3d1d44;
}

.form-heading p:last-child {
  color: #73597a;
  line-height: 1.65;
  font-size: 0.98rem;
}

.auth-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid.single-column {
  grid-template-columns: 1fr;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #533558;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1.5px solid rgba(77, 20, 95, 0.16);
  background: rgba(255, 255, 255, 0.8);
  padding: 0 16px;
  color: var(--text-dark);
  outline: none;
  transition: 0.25s ease;
}

.input-group input::placeholder {
  color: #a288a8;
}

.input-group input:focus {
  border-color: rgba(163, 60, 194, 0.75);
  box-shadow: 0 0 0 4px rgba(163, 60, 194, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #7a5a81;
  font-size: 1rem;
  line-height: 1;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  color: #614767;
  font-size: 0.93rem;
  line-height: 1.5;
}

.checkbox-row.compact {
  margin: 0;
  align-items: center;
}

.checkbox-row input {
  accent-color: var(--accent);
  margin-top: 3px;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0 24px;
}

.forgot-link {
  font-size: 0.92rem;
  color: var(--plum);
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--plum) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(112, 26, 136, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(112, 26, 136, 0.28);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--plum) 100%);
}

.auth-switch-text {
  margin-top: 18px;
  text-align: center;
  color: #73597a;
  font-size: 0.95rem;
}

.inline-switch {
  color: var(--plum);
  font-weight: 700;
  margin-left: 4px;
}

.inline-switch:hover {
  text-decoration: underline;
}

.auth-form[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .auth-brand-panel {
    min-height: 420px;
    background-size: 150px;
    background-position: right 26px bottom 20px;
  }

  .brand-logo-full {
    width: 180px;
  }

  .auth-form-panel {
    padding: 28px 24px 32px;
  }

  .form-heading h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 700px) {
  .auth-page {
    padding: 16px;
  }

  .auth-shell {
    border-radius: 28px;
    min-height: auto;
  }

  .auth-brand-panel {
    padding: 28px 22px;
    min-height: 360px;
    background-size: 110px;
  }

  .brand-content {
    gap: 24px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-logo-icon {
    width: 52px;
    height: 52px;
  }

  .brand-logo-full {
    width: 140px;
    max-width: 100%;
  }

  .brand-copy h1 {
    font-size: 2.5rem;
    line-height: 3em;
  }

  .brand-description {
    font-size: 0.95rem;
  }

  .brand-preview-card {
    width: 100%;
    padding: 20px 18px;
  }

  .auth-form-panel {
    padding: 22px 18px 28px;
  }

  .auth-topbar {
    width: 100%;
    justify-content: center;
  }

  .mode-toggle {
    flex: 1;
    text-align: center;
    padding: 11px 14px;
  }

  .form-heading h2 {
    font-size: 2.15rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .login-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   SPILLR FEED PAGE
========================= */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.sidebar-left,
.sidebar-right,
.feed-main {
  min-width: 0;
}

.sidebar-left {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 24px 20px;
  border-radius: 28px;
  background: rgba(24, 10, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sidebar-brand-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.sidebar-brand-full {
  width: 126px;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  color: var(--text-muted);
  font-weight: 600;
  transition: 0.22s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(194, 122, 214, 0.22), rgba(102, 31, 125, 0.3));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-icon {
  width: 24px;
  display: inline-flex;
  justify-content: center;
  font-size: 1.1rem;
}

.spill-btn-primary {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  margin: 22px 0 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--plum) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 12px 24px rgba(112, 26, 136, 0.22);
  transition: 0.22s ease;
}

.spill-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(112, 26, 136, 0.28);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.user-avatar,
.composer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1d7f7, #a347c5);
  color: #2a0333;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.user-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.user-handle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 8px 2px;
}

.feed-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-soft);
  margin-bottom: 8px;
  font-weight: 700;
}

.feed-title-wrap h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  line-height: 0.95;
}

.feed-search-wrap {
  width: min(100%, 360px);
}

.feed-search {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0 18px;
  outline: none;
  transition: 0.22s ease;
}

.feed-search::placeholder {
  color: #cdbdd1;
}

.feed-search:focus {
  border-color: rgba(212, 162, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(200, 154, 216, 0.12);
}

.post-composer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.composer-trigger {
  flex: 1;
  min-height: 56px;
  border-radius: 16px;
  text-align: left;
  padding: 0 18px;
  color: #dbc9df;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.composer-trigger:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: 0.22s ease;
}

.filter-chip:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(199, 145, 217, 0.24), rgba(96, 30, 116, 0.35));
  border-color: rgba(255, 255, 255, 0.1);
}

.feed-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spill-post {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.audio-post {
  background:
    linear-gradient(180deg, rgba(85, 25, 102, 0.78), rgba(31, 10, 40, 0.88));
}

.post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.post-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(240, 214, 248, 0.95), rgba(167, 69, 194, 0.85));
  color: #2a0333;
  font-weight: 800;
}

.post-name {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 2px;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.post-more {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 6px 8px;
  border-radius: 12px;
}

.post-more:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.post-title {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-body {
  color: #eee2f0;
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.post-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lavender-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reaction-btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #f4e8f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: 0.18s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.reaction-btn.is-active {
  background: linear-gradient(135deg, rgba(221, 163, 237, 0.26), rgba(135, 45, 163, 0.3));
  border-color: rgba(255, 255, 255, 0.14);
}

.post-comments {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.post-comments p {
  color: #eaddec;
  line-height: 1.55;
  font-size: 0.93rem;
}

.fake-audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0 18px;
}

.audio-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #efcff8, #b54fd0);
  color: #2a0333;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(185, 83, 211, 0.24);
}

.audio-wave {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.audio-wave span {
  display: block;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #efcff8, #ac5fc3);
  animation: wavePulse 1.4s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 30%; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 75%; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 88%; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 56%; animation-delay: 0.4s; }
.audio-wave span:nth-child(6) { height: 70%; animation-delay: 0.5s; }
.audio-wave span:nth-child(7) { height: 34%; animation-delay: 0.6s; }
.audio-wave span:nth-child(8) { height: 90%; animation-delay: 0.7s; }
.audio-wave span:nth-child(9) { height: 48%; animation-delay: 0.8s; }
.audio-wave span:nth-child(10) { height: 66%; animation-delay: 0.9s; }

.audio-time {
  color: var(--lavender-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.sidebar-right {
  position: sticky;
  top: 24px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.side-card-head {
  margin-bottom: 14px;
}

.side-card-head h3 {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.2;
}

.trend-list {
  display: grid;
  gap: 10px;
}

.trend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trend-tag {
  color: var(--lavender-soft);
  font-weight: 700;
}

.trend-item small,
.mini-post small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mini-post {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-post-title {
  color: var(--white);
  line-height: 1.45;
  font-size: 0.94rem;
  font-weight: 600;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stats div {
  padding: 14px 10px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.profile-stats strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.profile-stats span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mobile-bottom-nav {
  display: none;
}

.hidden-post {
  display: none !important;
}

@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.8);
    opacity: 0.75;
  }
  50% {
    transform: scaleY(1.08);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar-right {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px 16px 96px;
    gap: 18px;
  }

  .sidebar-left {
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar-nav,
  .spill-btn-primary,
  .sidebar-user-card {
    display: none;
  }

  .sidebar-brand {
    margin-bottom: 0;
    justify-content: center;
  }

  .feed-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .feed-search-wrap {
    width: 100%;
  }

  .spill-post {
    padding: 18px;
    border-radius: 22px;
  }

  .post-title {
    font-size: 1.15rem;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(24, 10, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }

  .mobile-nav-item {
    min-height: 58px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 1rem;
  }

  .mobile-nav-item small {
    font-size: 0.7rem;
    font-weight: 600;
  }

  .mobile-nav-item.active,
  .mobile-post-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }

  .mobile-post-btn span {
    font-size: 1.35rem;
    font-weight: 800;
  }
}
/* =========================
   SPILLR CREATE POST PAGE
========================= */

.create-page-main {
  gap: 22px;
}

.create-topbar {
  align-items: center;
}

.create-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link-btn {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: 0.22s ease;
}

.ghost-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.create-post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.create-left-column,
.create-right-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.create-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.create-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.card-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-soft);
  margin-bottom: 8px;
  font-weight: 700;
}

.create-card-head h2 {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
}

.draft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lavender-soft);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.post-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.post-type-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.22s ease;
}

.post-type-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.post-type-btn.active {
  background: linear-gradient(
    135deg,
    rgba(199, 145, 217, 0.2),
    rgba(96, 30, 116, 0.35)
  );
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}

.post-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #efcff8, #b54fd0);
  color: #2a0333;
  font-weight: 800;
  flex-shrink: 0;
}

.post-type-btn strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.post-type-btn small {
  display: block;
  color: inherit;
  opacity: 0.82;
  line-height: 1.45;
}

.create-post-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.create-post-form textarea,
.create-post-form select {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  outline: none;
  transition: 0.22s ease;
}

.create-post-form textarea::placeholder,
.create-post-form input::placeholder {
  color: #cdbdd1;
}

.create-post-form select {
  height: 54px;
  padding: 0 16px;
  appearance: none;
}

.create-post-form textarea {
  min-height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.create-post-form textarea:focus,
.create-post-form select:focus {
  border-color: rgba(212, 162, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(200, 154, 216, 0.12);
}

.create-post-form .input-group label {
  color: var(--white);
}

.create-post-form .input-group input {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.create-post-form .input-group input:focus {
  border-color: rgba(212, 162, 226, 0.45);
  box-shadow: 0 0 0 4px rgba(200, 154, 216, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.textarea-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.textarea-meta small,
.textarea-meta span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.audio-post-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hidden-post-builder {
  display: none;
}

.audio-upload-mockup {
  padding: 26px 22px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(85, 25, 102, 0.65),
    rgba(31, 10, 40, 0.88)
  );
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.audio-upload-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #efcff8, #b54fd0);
  color: #2a0333;
  box-shadow: 0 10px 24px rgba(185, 83, 211, 0.24);
}

.audio-upload-mockup h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.audio-upload-mockup p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 16px;
}

.audio-upload-btn,
.draft-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  transition: 0.22s ease;
}

.audio-upload-btn:hover,
.draft-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.settings-row strong {
  display: block;
  color: var(--white);
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.settings-row small {
  display: block;
  color: var(--text-muted);
  line-height: 1.45;
}

.settings-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.preview-post-card {
  margin-top: 2px;
}

.publish-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.publish-btn {
  margin: 0;
}

#previewTags:empty {
  display: none;
}

@media (max-width: 1200px) {
  .create-post-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .create-card {
    padding: 18px;
    border-radius: 22px;
  }

  .create-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-type-toggle {
    grid-template-columns: 1fr;
  }

  .textarea-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-row {
    align-items: flex-start;
  }
}
/* =========================
   SPILLR PROFILE PAGE
========================= */

.profile-page-main {
  gap: 20px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.profile-cover {
  height: 180px;
  background:
    radial-gradient(circle at top left, rgba(236, 196, 247, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(109, 32, 130, 0.95), rgba(34, 9, 44, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-hero-content {
  position: relative;
  padding: 0 28px 28px;
}

.profile-avatar-wrap {
  margin-top: -48px;
  margin-bottom: 18px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2d7f8, #ad4dcb);
  color: #2a0333;
  font-size: 2rem;
  font-weight: 800;
  border: 4px solid rgba(27, 8, 34, 0.88);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.profile-main-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-name-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.profile-name-row h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 0.95;
  margin-bottom: 6px;
}

.profile-handle {
  color: var(--text-muted);
  font-size: 1rem;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-bio {
  max-width: 760px;
  color: #eee2f0;
  line-height: 1.75;
  font-size: 0.98rem;
}

.profile-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lavender-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat-box {
  padding: 16px 12px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.profile-stat-box strong {
  display: block;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.profile-stat-box span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.profile-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tab-btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  transition: 0.22s ease;
}

.profile-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.profile-tab-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, rgba(199, 145, 217, 0.24), rgba(96, 30, 116, 0.35));
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-tab-panel[hidden] {
  display: none;
}

.profile-about-copy {
  color: #eee2f0;
  line-height: 1.75;
  font-size: 0.98rem;
}

.profile-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-topic-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-topic-card strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.profile-topic-card small {
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .profile-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-name-row {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .profile-cover {
    height: 140px;
  }

  .profile-hero-content {
    padding: 0 18px 20px;
  }

  .profile-avatar-wrap {
    margin-top: -38px;
  }

  .profile-avatar-large {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 1.5rem;
  }

  .profile-name-row h1 {
    font-size: 2.35rem;
  }

  .profile-stat-row,
  .profile-topic-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    width: 100%;
  }

  .profile-actions .ghost-link-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
.logout-btn {
  width: 100%;
  margin-bottom: 18px;
}
/* =========================
   SPILLR DISCOVER PAGE
========================= */

.discover-page-main {
  gap: 22px;
}

.discover-topbar {
  align-items: center;
}

.discover-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(236, 196, 247, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(92, 24, 108, 0.88), rgba(27, 8, 35, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.discover-hero-copy {
  max-width: 640px;
}

.discover-hero-copy h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
  margin-bottom: 12px;
}

.discover-hero-copy p:last-child {
  color: #eee2f0;
  line-height: 1.75;
  font-size: 0.98rem;
}

.discover-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 360px;
}

.discover-hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lavender-soft);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.discover-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discover-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.discover-topic-card {
  padding: 18px;
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: 0.22s ease;
  box-shadow: var(--shadow-md);
}

.discover-topic-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(199, 145, 217, 0.18),
    rgba(96, 30, 116, 0.28)
  );
  color: var(--white);
}

.discover-topic-card.is-active {
  background: linear-gradient(
    135deg,
    rgba(199, 145, 217, 0.24),
    rgba(96, 30, 116, 0.35)
  );
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.discover-topic-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.discover-topic-card small {
  display: block;
  line-height: 1.55;
  color: inherit;
  opacity: 0.9;
}

.discover-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.discover-post {
  transition: 0.2s ease;
}

.discover-post.hidden-post {
  display: none !important;
}

.discover-audio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.discover-audio-card {
  padding: 22px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(85, 25, 102, 0.72), rgba(31, 10, 40, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.discover-audio-card h3 {
  color: var(--white);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.discover-audio-card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

@media (max-width: 1200px) {
  .discover-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discover-audio-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .discover-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .discover-hero-tags {
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .discover-hero-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .discover-topic-grid,
  .discover-audio-row {
    grid-template-columns: 1fr;
  }

  .discover-hero-copy h2 {
    font-size: 2rem;
  }
}
/* =========================
   SPILLR NOTIFICATIONS PAGE
========================= */

.notifications-page-main {
  gap: 22px;
}

.notifications-topbar {
  align-items: center;
}

.notifications-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notifications-filter-bar {
  margin-top: -4px;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notification-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  transition: 0.22s ease;
}

.notification-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.notification-card.unread {
  background:
    linear-gradient(
      135deg,
      rgba(199, 145, 217, 0.14),
      rgba(96, 30, 116, 0.22)
    );
  border-color: rgba(255, 255, 255, 0.1);
}

.notification-card.hidden-notification {
  display: none !important;
}

.notification-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #efcff8, #b54fd0);
  color: #2a0333;
  box-shadow: 0 10px 24px rgba(185, 83, 211, 0.2);
}

.notification-content {
  min-width: 0;
  flex: 1;
}

.notification-title {
  color: var(--white);
  line-height: 1.65;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.notification-title strong {
  color: var(--lavender-soft);
  font-weight: 700;
}

.notification-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .notification-card {
    padding: 18px;
    border-radius: 22px;
  }

  .notification-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .notification-title {
    font-size: 0.94rem;
  }
}