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

:root {
  --bg: #07111f;
  --bg-soft: #0d1b2c;
  --panel: rgba(10, 23, 40, 0.72);
  --panel-strong: rgba(15, 31, 52, 0.84);
  --panel-light: rgba(255, 255, 255, 0.08);
  --surface: #f6f9ff;
  --text: #eef4ff;
  --text-dark: #10203a;
  --muted: #b7c3d9;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #7fc8ff;
  --blue-strong: #2d8cff;
  --pink: #ff8cc6;
  --pink-strong: #e256a1;
  --gold: #f0c36c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

body[data-side='women'] {
  --accent: var(--pink);
  --accent-strong: var(--pink-strong);
  --accent-soft: rgba(255, 140, 198, 0.18);
}

body[data-side='men'] {
  --accent: var(--blue);
  --accent-strong: var(--blue-strong);
  --accent-soft: rgba(127, 200, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(45, 140, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(240, 195, 108, 0.14), transparent 24%),
    linear-gradient(180deg, #050b14 0%, #08111f 40%, #0c1728 100%);
  overflow-x: hidden;
}

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

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

.container {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: floatOrb 16s ease-in-out infinite;
}

.bg-orb-left {
  width: 320px;
  height: 320px;
  left: -90px;
  top: 70px;
  background: rgba(45, 140, 255, 0.18);
}

.bg-orb-right {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 220px;
  background: rgba(242, 124, 191, 0.14);
  animation-duration: 21s;
}

.site-header,
.page-content,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.9rem 0;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.nav-button {
  width: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.nav-button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.page-content {
  padding: 2rem 0 3rem;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 10, 18, 0.58);
  backdrop-filter: blur(14px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.global-loading-card {
  width: min(100%, 360px);
  padding: 1.25rem;
  border-radius: 28px;
  text-align: center;
  background: rgba(10, 23, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.global-loading-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Baloo 2', cursive;
  font-size: 1.45rem;
}

.global-loading-card p {
  margin: 0;
  color: var(--muted);
}

.loading-halo {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
}

.loading-halo span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(255, 255, 255, 0.16);
  animation: loadingOrbit 1.25s linear infinite;
}

.loading-halo span:nth-child(2) {
  inset: 8px;
  animation-direction: reverse;
  animation-duration: 1.8s;
}

.loading-halo span:nth-child(3) {
  inset: 18px;
  border-top-color: var(--gold);
  animation-duration: 1s;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.public-home {
  display: grid;
  gap: 2rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 74vh;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.24), rgba(2, 8, 15, 0.82)),
    linear-gradient(120deg, rgba(45, 140, 255, 0.12), transparent 42%),
    linear-gradient(240deg, rgba(226, 86, 161, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    #08111f;
  box-shadow: var(--shadow);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.56rem 0.9rem;
  border-radius: 999px;
  color: #dbe7f8;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-copy .lead {
  max-width: 64ch;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 40px var(--accent-soft);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--muted);
  padding-inline: 0.4rem;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-trust div,
.hero-card,
.duo-card,
.law-card,
.story-card,
.cta-panel,
.card,
.footer-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-trust div {
  padding: 1rem;
  border-radius: 20px;
}

.hero-trust strong {
  display: block;
  margin-bottom: 0.2rem;
}

.hero-trust span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: 28px;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -50px;
  top: -40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.18), rgba(226, 86, 161, 0.12));
  filter: blur(8px);
}

.mini-label {
  position: relative;
  z-index: 1;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.15;
}

.hero-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hero-card li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.soft-note {
  position: relative;
  z-index: 1;
  color: #d9e6fb;
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.7rem;
}

.section-heading h2,
.cta-panel h2,
.card h2,
.card h3,
.card h4,
.duo-card h3,
.story-card h3 {
  font-family: 'Baloo 2', cursive;
}

.section-heading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.section-heading p,
.duo-card p,
.story-card p,
.law-card p,
.cta-panel p,
.card p,
.muted {
  color: var(--muted);
}

.duo-grid,
.stories-grid,
.laws-grid {
  display: grid;
  gap: 1rem;
}

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

.duo-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  border-radius: 26px;
}

.duo-card::before {
  content: '';
  position: absolute;
  inset: auto -30px -55px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  opacity: 0.55;
  background: var(--card-glow, rgba(45, 140, 255, 0.16));
}

.duo-card.men {
  --card-glow: rgba(45, 140, 255, 0.2);
}

.duo-card.women {
  --card-glow: rgba(226, 86, 161, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 194, 224, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(58, 16, 43, 0.48);
  border-color: rgba(255, 140, 198, 0.28);
}

.duo-card h3,
.story-card h3,
.law-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.duo-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.duo-card.men .duo-tag {
  background: linear-gradient(135deg, #2d8cff, #7fc8ff);
}

.duo-card.women .duo-tag {
  background: linear-gradient(135deg, #e256a1, #ff8cc6);
}

.duo-points {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.duo-points li {
  margin-bottom: 0.5rem;
  color: #dde8f7;
}

.laws-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.law-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border-radius: 24px;
}

.law-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: -35px;
  bottom: -55px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.law-meta {
  position: relative;
  z-index: 1;
  color: #d7e6fb;
  font-size: 0.82rem;
  font-weight: 700;
}

.social-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.feed-toolbar,
.feed-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.feed-summary {
  display: grid;
  gap: 0.1rem;
}

.feed-summary strong {
  font-size: 1.2rem;
}

.feed-summary span,
.feed-status {
  color: var(--muted);
}

.feed-sort {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
}

.feed-sort span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.feed-sort select {
  background: rgba(255, 255, 255, 0.94);
}

.feed-search {
  display: flex;
  gap: 0.7rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

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

.member-feed-toolbar {
  align-items: end;
}

.public-filter-group,
.member-filter-group {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.filter-chip {
  width: auto;
  min-width: 0;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.filter-chip.is-active {
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.filter-chip-public[data-public-law-side='men'] {
  background: rgba(45, 140, 255, 0.12);
  color: #d8ebff;
}

.filter-chip-public[data-public-law-side='women'] {
  background: rgba(226, 86, 161, 0.14);
  color: #ffd8ef;
}

.filter-chip-public[data-public-law-side='all'] {
  background: rgba(240, 195, 108, 0.12);
  color: #f7e7b5;
}

.feed-inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.3rem;
  color: var(--muted);
}

.feed-inline-loading.is-hidden {
  display: none;
}

.feed-inline-loading span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: loadingOrbit 0.85s linear infinite;
}

.feed-sentinel {
  width: 100%;
  height: 1px;
}

.stories-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card {
  padding: 1.2rem;
  border-radius: 24px;
}

.channel-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.channel-copy h2 {
  margin: 0 0 0.8rem;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.06;
}

.channel-copy p {
  color: var(--muted);
}

.channel-showcase {
  display: grid;
  gap: 1rem;
}

.channel-photo-card,
.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.channel-photo-card {
  min-height: 470px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(4, 11, 21, 0.12), rgba(4, 11, 21, 0.82)),
    linear-gradient(135deg, rgba(45, 140, 255, 0.18), transparent 42%),
    linear-gradient(225deg, rgba(226, 86, 161, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.channel-photo-card::after {
  content: '';
  position: absolute;
  inset: auto -60px -90px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 140, 255, 0.26), rgba(226, 86, 161, 0.22));
  filter: blur(16px);
}

.channel-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f6ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.channel-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.channel-logo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: min(44%, 250px);
  padding: 0.9rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.54);
  backdrop-filter: blur(14px);
}

.channel-marquee {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.channel-marquee-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  padding: 0.8rem;
  animation: marqueeFlow 22s linear infinite;
}

.channel-marquee-track span {
  white-space: nowrap;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e6eefc;
  font-size: 0.82rem;
  font-weight: 700;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  padding: 1.15rem;
}

.showcase-card strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 30px;
}

.cta-panel h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.08;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

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

.dashboard-shell {
  display: grid;
  gap: 1.4rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, var(--accent-soft), transparent 50%),
    rgba(10, 23, 40, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.dashboard-title {
  margin: 0 0 0.65rem;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.02;
}

.dashboard-lead {
  max-width: 62ch;
  color: var(--muted);
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.dashboard-stat,
.mini-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rich-card {
  position: relative;
  overflow: hidden;
}

.chip {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-priority {
  color: #f7e7b5;
  background: rgba(240, 195, 108, 0.14);
  border: 1px solid rgba(240, 195, 108, 0.22);
}

.chip-law {
  color: #d7e9ff;
  background: rgba(45, 140, 255, 0.14);
  border: 1px solid rgba(45, 140, 255, 0.22);
}

.chip-vote {
  color: #ffd7f0;
  background: rgba(226, 86, 161, 0.14);
  border: 1px solid rgba(226, 86, 161, 0.22);
}

.benefit-card::after,
.law-rich-card::after,
.vote-rich-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -40px;
  bottom: -70px;
  border-radius: 50%;
  opacity: 0.55;
}

.benefit-card::after {
  background: rgba(240, 195, 108, 0.16);
}

.law-rich-card::after {
  background: rgba(45, 140, 255, 0.16);
}

.vote-rich-card::after {
  background: rgba(226, 86, 161, 0.16);
}

.dashboard-stat strong {
  display: block;
  font-size: 1.15rem;
}

.dashboard-stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-logout {
  width: auto;
  min-width: 120px;
}

.auth-switcher {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.auth-aside h2 {
  margin: 0 0 0.8rem;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.05;
}

.auth-main {
  display: grid;
  gap: 1rem;
}

.auth-switch {
  width: auto;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.auth-switch.is-active {
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.auth-stage {
  display: grid;
}

.auth-pane {
  display: none;
  max-width: 560px;
}

.auth-pane.is-active {
  display: block;
}

.auth-card,
.editor-card,
.list-card,
.feature-card,
.profile-card,
.membership-card-shell {
  padding: 1.2rem;
}

.feature-stack,
.list-card .grid {
  display: grid;
  gap: 0.8rem;
}

.auth-divider {
  position: relative;
  margin: 0.5rem 0 0.2rem;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(10, 23, 40, 0.9);
}

.google-login-slot {
  min-height: 44px;
}

.form-feedback {
  min-height: 1.3rem;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}

.form-feedback[data-state='error'] {
  color: #ffb4c8;
}

.form-feedback[data-state='success'] {
  color: #8df0c9;
}

.membership-card {
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid transparent;
  color: #10203a;
  box-shadow: var(--shadow);
}

.membership-card.men {
  background: linear-gradient(135deg, #d9ecff, #8ec5ff);
  border-color: #2d8cff;
}

.membership-card.women {
  background: linear-gradient(135deg, #ffe4f1, #ffb6db);
  border-color: #e256a1;
}

.membership-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.membership-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.membership-card p,
.membership-card small {
  display: block;
  margin: 0.35rem 0 0;
  color: #1d3557;
}

.member-hub-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.member-tab {
  width: auto;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.member-tab.is-active {
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.member-stage {
  display: grid;
}

.member-pane {
  display: none;
}

.member-pane.is-active {
  display: block;
}

.member-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vote-totals {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 0.6rem;
}

.vote-totals span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7f8;
  font-size: 0.82rem;
}

.admin-vote-totals {
  margin-top: 0.9rem;
}

.vote-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.vote-choice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.vote-choice.is-selected {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
}

.law-reaction-choice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.law-reaction-choice.is-selected {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
}

.law-comments {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.comment-card {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.comment-card p {
  margin: 0;
  color: var(--muted);
}

.law-comment-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.law-comment-form textarea {
  min-height: 88px;
}

#member-laws-list {
  display: grid;
  gap: 0.9rem;
}

.card {
  padding: 1rem;
  border-radius: 22px;
}

label {
  display: block;
  margin: 0.45rem 0 0.24rem;
  font-weight: 700;
}

input,
textarea,
select,
button {
  width: 100%;
  font: inherit;
  border-radius: 14px;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dark);
  padding: 0.72rem 0.8rem;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

button {
  border: none;
  cursor: pointer;
  padding: 0.76rem 0.95rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-footer {
  padding-bottom: 1rem;
}

.footer-wrap {
  padding: 1rem;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
}

.footer-wrap a {
  color: var(--text);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 20px, 0) scale(1.05);
  }
}

@keyframes marqueeFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes loadingOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .cta-panel,
  .channel-feature,
  .dashboard-hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-trust,
  .stories-grid,
  .laws-grid,
  .showcase-grid,
  .member-overview-grid {
    grid-template-columns: 1fr;
  }

  .vote-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-logo {
    width: min(56%, 250px);
  }

  .auth-pane {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar,
  .auth-switcher::-webkit-scrollbar,
  .member-hub-nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .nav a,
  .nav-button,
  .auth-switch,
  .member-tab {
    flex: 0 0 auto;
  }

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

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

  .hero-grid {
    padding: 2.4rem 1.2rem;
    gap: 1.25rem;
  }

  .hero-card h2 {
    font-size: 1.5rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .channel-photo-card {
    min-height: 360px;
  }

  .channel-logo {
    width: min(60%, 210px);
    padding: 0.75rem;
    border-radius: 20px;
  }

  .dashboard-hero {
    padding: 1.2rem;
  }

  .dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-logout {
    grid-column: 1 / -1;
    width: 100%;
  }

  .auth-switcher,
  .member-hub-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1rem), 1180px);
  }

  .page-content {
    padding: 1rem 0 2rem;
  }

  .public-home {
    gap: 1.5rem;
  }

  .feed-toolbar,
  .feed-footer {
    align-items: stretch;
  }

  .feed-sort {
    width: 100%;
    min-width: 0;
  }

  .feed-search {
    width: 100%;
  }

  .feed-search input {
    min-width: 0;
    flex: 1 1 100%;
  }

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

  .public-filter-group,
  .member-filter-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .member-filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .hero-grid {
    padding: 2rem 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hero-kicker,
  .hero-copy .lead,
  .dashboard-lead,
  .channel-copy p,
  .section-heading p,
  .duo-card p,
  .story-card p,
  .law-card p,
  .card p,
  .muted {
    font-size: 0.95rem;
  }

  .hero-trust,
  .stories-grid,
  .laws-grid,
  .showcase-grid,
  .member-overview-grid,
  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .duo-card,
  .law-card,
  .story-card,
  .cta-panel,
  .card,
  .footer-wrap {
    border-radius: 22px;
  }

  .hero-card,
  .duo-card,
  .law-card,
  .story-card,
  .cta-panel,
  .card {
    padding: 1rem;
  }

  .channel-feature {
    padding: 1rem;
    border-radius: 24px;
  }

  .channel-photo-card {
    min-height: 300px;
  }

  .dashboard-stat,
  .mini-card {
    padding: 0.9rem;
  }

  .membership-card {
    padding: 1rem;
  }

  .vote-actions {
    grid-template-columns: 1fr;
  }

  .comment-card {
    padding: 0.8rem;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 0.7rem;
  }

  .hero-grid {
    padding: 1.7rem 0.9rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 12vw, 2.4rem);
  }

  .btn {
    min-height: 48px;
    padding: 0.82rem 1rem;
  }

  .dashboard-title,
  .section-heading h2,
  .channel-copy h2,
  .cta-panel h2,
  .auth-aside h2 {
    font-size: 1.7rem;
  }
}

@media (min-width: 920px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
