:root{
  --bg0:#050810;
  --bg1:#0A0E1C;
  --card:#0E1630cc;
  --stroke:#ffffff18;
  --strokeLight:#ffffff2a;
  --text:#F6F7FB;
  --muted:#A8ADBF;
  --accentA:#00D2FF;
  --accentB:#7C4DFF;
  --accentC:#FFD600;
  --accentD:#00FFB3;
  --danger:#FF4D6D;
  --ok:#2EE59D;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 20px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{height:100%;-webkit-text-size-adjust:100%}
body{
  min-height:100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background: var(--bg0);
  overflow-x:hidden;
}

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

/* ══════════════════════════════════
   Keyframes
   ══════════════════════════════════ */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes scaleIn{
  from{opacity:0;transform:scale(.92)}
  to{opacity:1;transform:scale(1)}
}
@keyframes slideDown{
  from{opacity:0;transform:translateY(-12px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes shimmer{
  0%{background-position:-200% 0}
  100%{background-position:200% 0}
}
@keyframes glowPulse{
  0%,100%{opacity:.30}
  50%{opacity:.50}
}
@keyframes bgReveal{
  from{opacity:0;transform:scale(1.25)}
  to{opacity:.30;transform:scale(1.1)}
}

/* ── Global blurred trophy background ── */
.bgWrap{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.bgWrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.30;
  filter: blur(18px) saturate(1.4) brightness(0.9);
  transform: scale(1.1);
  animation:bgReveal .9s ease-out both;
}
.bgWrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 900px 600px at 25% 15%, rgba(0,210,255,.18), transparent 55%),
    radial-gradient(ellipse 800px 600px at 80% 10%, rgba(124,77,255,.14), transparent 50%),
    radial-gradient(ellipse 700px 500px at 60% 85%, rgba(255,214,0,.08), transparent 50%),
    linear-gradient(180deg, rgba(5,8,16,.45), rgba(10,14,28,.80));
  animation:fadeIn .6s ease-out both;
}

/* ── Layout ── */
.page{
  position:relative;
  z-index:1;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
.container{
  max-width:1020px;
  width:100%;
  margin:0 auto;
  padding:24px 20px 40px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.mainContent{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* ── Top bar ── */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
  animation:slideDown .5s ease-out both;
}
.brand{display:flex;align-items:center;gap:10px}
.brandLogo{height:30px;width:auto;flex-shrink:0}
.brandText{display:flex;flex-direction:column;gap:2px}
.brand .kicker{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:600;
}
.brand .title{
  font-size:17px;
  font-weight:750;
  background:linear-gradient(90deg,var(--accentA),var(--accentB));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.langToggle{
  display:inline-flex;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:3px;
  gap:3px;
  flex-shrink:0;
}
.langToggle button{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:7px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.langToggle button[aria-pressed="true"]{
  background:rgba(255,255,255,.14);
  color:var(--text);
}

/* ── Hero (landing page) ── */
.hero{
  text-align:center;
  padding:48px 16px 20px;
}
.hero .badge{
  display:inline-block;
  padding:6px 16px;
  border-radius:999px;
  border:1px solid var(--strokeLight);
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accentC);
  margin-bottom:18px;
  animation:fadeUp .55s .1s ease-out both;
}
.hero h1{
  font-size:36px;
  font-weight:820;
  letter-spacing:-.03em;
  line-height:1.15;
  margin-bottom:12px;
  animation:fadeUp .6s .2s ease-out both;
  color:var(--text);
}
.hero .subtitle{
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
  max-width:46ch;
  margin:0 auto;
  animation:fadeUp .6s .32s ease-out both;
}
@media(min-width:760px){
  .hero{padding-top:72px;padding-bottom:28px}
  .hero h1{font-size:48px}
  .hero .subtitle{font-size:17px}
}

/* ── Cards grid (landing) ── */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:28px;
}
@media(min-width:680px){
  .grid{grid-template-columns:1fr 1fr;gap:20px}
}

.cardLink{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-decoration:none;
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  min-height:220px;
  border:1px solid var(--strokeLight);
  background:linear-gradient(170deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.02) 100%);
  box-shadow:var(--shadow);
  transition:transform .28s cubic-bezier(.22,1,.36,1),box-shadow .28s,border-color .28s;
  animation:fadeUp .6s ease-out both;
}
.cardLink:nth-child(1){animation-delay:.38s}
.cardLink:nth-child(2){animation-delay:.48s}

.cardLink:hover{
  transform:translateY(-6px);
  box-shadow:0 36px 80px rgba(0,0,0,.6);
  border-color:rgba(255,255,255,.24);
}
.cardLink:active{
  transform:translateY(-2px) scale(.985);
  transition-duration:.1s;
}
.cardLink:focus-visible{outline:3px solid rgba(0,210,255,.4);outline-offset:3px}

.cardLink .accentBar{
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background-size:200% 100%;
}
.cardLink:nth-child(1) .accentBar{
  background:linear-gradient(90deg,var(--accentA),var(--accentB),var(--accentA));
  background-size:200% 100%;
  animation:shimmer 3s linear infinite;
}
.cardLink:nth-child(2) .accentBar{
  background:linear-gradient(90deg,var(--accentC),var(--accentD),var(--accentC));
  background-size:200% 100%;
  animation:shimmer 3s linear infinite;
}

.cardHead{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}
.cardLink .cardIcon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  flex-shrink:0;
  transition:transform .25s,box-shadow .25s;
}
.cardLink:hover .cardIcon{
  transform:scale(1.08);
}
.cardLink:nth-child(1) .cardIcon{
  background:linear-gradient(135deg,rgba(0,210,255,.18),rgba(124,77,255,.15));
  border:1px solid rgba(0,210,255,.25);
}
.cardLink:nth-child(2) .cardIcon{
  background:linear-gradient(135deg,rgba(255,214,0,.15),rgba(0,255,179,.12));
  border:1px solid rgba(255,214,0,.25);
}
.cardLink:hover:nth-child(1) .cardIcon{
  box-shadow:0 0 20px rgba(0,210,255,.25);
}
.cardLink:hover:nth-child(2) .cardIcon{
  box-shadow:0 0 20px rgba(255,214,0,.25);
}

.cardInner{
  padding:28px 22px 22px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.cardLink h2{
  font-size:18px;
  font-weight:750;
  letter-spacing:-.01em;
}
.cardLink p{
  color:var(--muted);
  line-height:1.5;
  font-size:14px;
  margin-bottom:auto;
  padding-bottom:18px;
}

.cardCta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 18px;
  border-radius:12px;
  font-weight:720;
  font-size:14px;
  width:fit-content;
  transition:background .2s,padding-left .2s;
}
.cardLink:nth-child(1) .cardCta{
  background:linear-gradient(90deg,rgba(0,210,255,.16),rgba(124,77,255,.12));
  border:1px solid rgba(0,210,255,.22);
}
.cardLink:nth-child(2) .cardCta{
  background:linear-gradient(90deg,rgba(255,214,0,.14),rgba(0,255,179,.10));
  border:1px solid rgba(255,214,0,.22);
}
.cardLink:hover .cardCta{
  background:rgba(255,255,255,.10);
  padding-left:22px;
}

.cardCta .arrow{
  display:inline-block;
  transition:transform .25s cubic-bezier(.22,1,.36,1);
}
.cardLink:hover .cardCta .arrow{transform:translateX(5px)}

/* ── Glow dots (decorative) ── */
.glowDot{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(50px);
  animation:glowPulse 3s ease-in-out infinite;
}
.cardLink:nth-child(1) .glowDot{
  width:120px;height:120px;
  right:-30px;bottom:-30px;
  background:var(--accentA);
}
.cardLink:nth-child(2) .glowDot{
  width:110px;height:110px;
  right:-25px;bottom:-25px;
  background:var(--accentC);
  animation-delay:1.5s;
}

/* ── Panel (form pages) ── */
.panel{
  background:linear-gradient(170deg,rgba(255,255,255,.07),rgba(255,255,255,.02));
  border:1px solid var(--strokeLight);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 22px 26px;
  animation:fadeUp .55s .15s ease-out both;
  transition:opacity .35s,transform .35s;
}
.panel[hidden]{
  display:block !important;
  opacity:0;
  transform:scale(.95);
  pointer-events:none;
  position:absolute;
  visibility:hidden;
}
.panel[data-success]{
  animation:none;
}
.panel[data-success]:not([hidden]){
  animation:scaleIn .45s .05s cubic-bezier(.22,1,.36,1) both;
}
.panel h1{
  font-size:24px;
  font-weight:780;
  margin-bottom:8px;
  letter-spacing:-.02em;
}
.panel p.lead{
  color:var(--muted);
  line-height:1.5;
  margin-bottom:20px;
  font-size:15px;
}

/* ── Forms ── */
form{display:flex;flex-direction:column;gap:16px}
.row{display:grid;gap:14px;grid-template-columns:1fr}
@media(min-width:680px){.row.two{grid-template-columns:1fr 1fr}}

label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:680;
  font-size:14px;
}
label .hint{
  font-weight:500;
  color:var(--muted);
  font-size:12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.28);
  color:var(--text);
  font-family:inherit;
  font-size:16px;
  line-height:1.4;
  transition:border-color .2s,box-shadow .2s,background .2s;
  -webkit-appearance:none;
  appearance:none;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:rgba(0,210,255,.45);
  box-shadow:0 0 0 3px rgba(0,210,255,.12);
  background:rgba(0,0,0,.35);
}

select{
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A8ADBF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px;
  padding-right:38px;
  cursor:pointer;
}

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

/* ── Slider ratings (1-5) ── */
.slider-group{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 18px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  transition:border-color .2s,background .2s;
}
.slider-group:has(input[type="range"]:active){
  border-color:rgba(255,255,255,.16);
  background:rgba(0,0,0,.24);
}
.slider-header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.slider-label{
  font-weight:700;
  font-size:14px;
}
.slider-value{
  font-size:22px;
  font-weight:800;
  min-width:28px;
  text-align:center;
  color:var(--accentA);
  transition:color .25s,transform .15s;
}
.slider-value.pop{
  transform:scale(1.25);
}
.slider-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:0 14px;
}

input[type="range"]{
  --fill:var(--accentA);
  --track-bg:linear-gradient(90deg,rgba(0,210,255,.25) 50%,rgba(255,255,255,.08) 50%);
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:8px;
  border-radius:99px;
  background:var(--track-bg);
  border:none;
  padding:0;
  cursor:pointer;
  outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--fill);
  border:none;
  box-shadow:0 0 14px color-mix(in srgb, var(--fill) 50%, transparent), 0 2px 8px rgba(0,0,0,.5);
  cursor:grab;
  transition:box-shadow .2s,transform .12s,background .25s;
}
input[type="range"]::-webkit-slider-thumb:hover{
  box-shadow:0 0 22px color-mix(in srgb, var(--fill) 65%, transparent), 0 2px 8px rgba(0,0,0,.5);
  transform:scale(1.15);
}
input[type="range"]::-webkit-slider-thumb:active{
  cursor:grabbing;
  transform:scale(.92);
  box-shadow:0 0 28px color-mix(in srgb, var(--fill) 70%, transparent), 0 2px 8px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--fill);
  border:none;
  box-shadow:0 0 14px color-mix(in srgb, var(--fill) 50%, transparent), 0 2px 8px rgba(0,0,0,.5);
  cursor:grab;
}
input[type="range"]::-moz-range-track{
  height:8px;
  border-radius:99px;
  background:transparent;
  border:none;
}
input[type="range"]:focus-visible::-webkit-slider-thumb{
  outline:3px solid color-mix(in srgb, var(--fill) 40%, transparent);
  outline-offset:3px;
}

.slider-ticks{
  display:flex;
  justify-content:space-between;
  padding:0 2px;
}
.slider-ticks span{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  width:20px;
  text-align:center;
  transition:color .2s;
}

.ratingHint{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
  margin-top:-2px;
}

/* ── Consent ── */
.consent{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.22);
  transition:border-color .2s;
}
.consent:has(input:checked){
  border-color:rgba(46,229,157,.30);
}
.consent input[type="checkbox"]{
  width:20px;
  height:20px;
  margin-top:2px;
  flex-shrink:0;
  accent-color:var(--accentA);
  cursor:pointer;
  transition:transform .15s;
}
.consent input[type="checkbox"]:active{
  transform:scale(.85);
}
.consent .copy{
  color:var(--muted);
  font-weight:500;
  line-height:1.45;
  font-size:13px;
}
.consent .copy b{color:var(--text);font-weight:720}

/* ── Actions ── */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:6px;
}
.btn{
  appearance:none;
  border:1px solid var(--strokeLight);
  background:rgba(255,255,255,.08);
  color:var(--text);
  padding:13px 22px;
  border-radius:12px;
  font-weight:750;
  font-size:15px;
  cursor:pointer;
  transition:background .2s,transform .12s,box-shadow .2s;
}
.btn:hover{
  background:rgba(255,255,255,.12);
}
.btn:active{transform:scale(.96)}
.btn.primary{
  border-color:rgba(0,210,255,.30);
  background:linear-gradient(90deg,rgba(0,210,255,.28),rgba(124,77,255,.22));
  position:relative;
  overflow:hidden;
}
.btn.primary::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
  background-size:200% 100%;
  animation:shimmer 2.5s linear infinite;
  pointer-events:none;
}
.btn.primary:hover{
  background:linear-gradient(90deg,rgba(0,210,255,.38),rgba(124,77,255,.30));
  box-shadow:0 0 24px rgba(0,210,255,.2);
}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn:disabled::after{display:none}
.btn.link{background:transparent;border-color:transparent}
.btn.link::after{display:none}
.btn.link:hover{background:rgba(255,255,255,.06)}

.status{font-weight:650;color:var(--muted);font-size:14px;transition:color .2s}
.status.ok{color:var(--ok)}
.status.err{color:var(--danger);animation:fadeIn .25s ease-out}

/* ── Footer ── */
.footer{
  text-align:center;
  margin-top:36px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  opacity:.7;
  animation:fadeIn .6s .6s ease-out both;
}
.footer p{margin-bottom:12px}
.poweredBy{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.03em;
  color:var(--muted);
}
.poweredLogo{
  height:28px;
  width:auto;
  filter:brightness(1.6);
  transition:filter .2s;
}
.poweredBy:hover .poweredLogo{filter:brightness(2)}

/* ── Reduced motion ── */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-delay:0ms !important;
    transition-duration:.01ms !important;
  }
}

/* ── Civic feedback engine ── */
.civicBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px 0 16px;
}
.civicIdentity{display:flex;align-items:center;gap:10px}
.civicWho{font-weight:700;color:var(--muted);font-size:13px}
.civicTabs{display:flex;gap:6px;flex-wrap:wrap}
.btn.tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.005em;
  border-radius:10px;
  position:relative;
}
.btn.tab .tabIcon{
  display:inline-grid;
  place-items:center;
  color:var(--muted);
  transition:color .15s;
  flex:none;
}
.btn.tab.active{
  border-color:rgba(0,210,255,.35);
  background:rgba(0,210,255,.12);
  color:var(--text);
}
.btn.tab.active .tabIcon{color:var(--accentA)}
.btn.tab:hover:not(.active){border-color:rgba(255,255,255,.2)}

.tabBadge{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  margin-left:2px;
  border-radius:999px;
  background:var(--accentA);
  color:#052233;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:0;
  line-height:1;
  box-shadow:0 0 0 2px rgba(0,210,255,.18);
  animation:badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse{
  0%,100%{box-shadow:0 0 0 2px rgba(0,210,255,.18)}
  50%{box-shadow:0 0 0 4px rgba(0,210,255,.28)}
}
.civicGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
@media(min-width:920px){
  .civicGrid{grid-template-columns:380px 1fr;align-items:start}
}
.cardBlock{
  border:1px solid var(--strokeLight);
  background:linear-gradient(170deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border-radius:16px;
  padding:18px 18px 16px;
}
.cardBlock h2{font-size:16px;font-weight:800;margin-bottom:6px}
.cardBlock p.muted{color:var(--muted);font-size:13px;line-height:1.5;margin-bottom:14px}
.filterBar{margin-bottom:14px}

.exploreHead{margin-bottom:12px}
.exploreHead h2{margin-bottom:4px}
.exploreHead p.muted{margin-bottom:0}

.hostStrip{
  margin:0 0 14px;
  padding:12px 12px 10px;
  border:1px solid rgba(255,200,90,.18);
  background:linear-gradient(180deg, rgba(255,200,90,.06) 0%, rgba(255,200,90,.02) 100%);
  border-radius:14px;
}
.hostStripLead{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.hostStripTitle{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.02em;
  color:#ffd482;
  text-transform:uppercase;
}
.hostStripSub{font-size:12px;line-height:1.45}
.hostStripRow{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:6px;
}
.hostTile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:10px 6px;
  border-radius:10px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  color:var(--text);
  cursor:pointer;
  transition:all .15s;
  min-height:62px;
  text-align:center;
}
.hostTile:hover{border-color:rgba(255,200,90,.35)}
.hostTile.active{
  border-color:rgba(255,200,90,.55);
  background:linear-gradient(180deg, rgba(255,200,90,.18), rgba(255,200,90,.06));
  box-shadow:inset 0 0 0 1px rgba(255,200,90,.2);
}
.hostTile .hostStar{
  color:#ffc864;
  font-size:11px;
  line-height:1;
}
.hostTile .hostName{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:-.005em;
  line-height:1.15;
}
.hostTile .hostCount{
  font-size:10.5px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  font-weight:600;
}
.hostTile.active .hostCount{color:#ffd482}

.hostBadge{
  display:inline-flex;
  align-items:center;
  gap:3px;
  margin-left:6px;
  padding:1px 6px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  border-radius:999px;
  background:rgba(255,200,90,.14);
  color:#ffc864;
  border:1px solid rgba(255,200,90,.3);
  vertical-align:middle;
  white-space:nowrap;
}
.ideaCard.host{
  border-left:3px solid rgba(255,200,90,.55);
}

@media (max-width:640px){
  .hostStrip{padding:10px 10px 8px;border-radius:12px}
  .hostTile{padding:9px 4px;min-height:58px}
  .hostTile .hostName{font-size:11.5px}
  .hostStripTitle{font-size:11.5px}
  .hostStripSub{font-size:11.5px}
}

.filterToolbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:8px 0 12px;
  border-bottom:1px solid var(--stroke);
  margin-bottom:12px;
}
.filterToggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 11px;
  font-size:13px;
  font-weight:650;
  border-radius:10px;
  flex:none;
}
.filterToggle .chev{
  margin-left:2px;
  color:var(--muted);
  transition:transform .2s ease;
}
.filterToggle[aria-expanded="true"] .chev{transform:rotate(180deg)}
.filterToggle[aria-expanded="true"]{
  border-color:rgba(0,210,255,.35);
  background:rgba(0,210,255,.10);
}
.filterCount{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:var(--accentA);
  color:#052233;
  font-size:10.5px;
  font-weight:800;
  line-height:1;
}
.filterChips{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1 1 auto;
  flex-wrap:wrap;
  min-width:0;
  overflow:hidden;
}
.filterChip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:5px 8px 5px 10px;
  font-size:11.5px;
  font-weight:600;
  border-radius:999px;
  background:rgba(0,210,255,.10);
  color:var(--text);
  border:1px solid rgba(0,210,255,.25);
  max-width:180px;
}
.filterChip .chipLabel{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.filterChip button.chipX{
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:0;
  color:var(--text);
  cursor:pointer;
  font-size:11px;
  line-height:1;
  padding:0;
}
.filterChip button.chipX:hover{background:rgba(255,255,255,.18)}
.filterClear{
  padding:6px 10px;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  color:var(--muted);
  flex:none;
}
.filterClear:hover{color:var(--text)}

.filterBar.collapsed{
  display:none;
}
.filterBar:not(.collapsed){
  animation:filterSlide .18s ease-out;
}
@keyframes filterSlide{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

@media (max-width:640px){
  .filterToolbar{padding:4px 0 10px;gap:6px}
  .filterToggle{padding:8px 10px;font-size:12.5px}
  .filterChip{font-size:11px;max-width:140px}
}
.civicView{display:none}
.civicView.active{display:block}
.civicList{display:flex;flex-direction:column;gap:12px}

.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--stroke);
}
.pager .pagerBtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  font-size:13px;
  font-weight:650;
  border-radius:10px;
}
.pager .pagerBtn:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.pagerInfo{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:0;
  text-align:center;
}
.pagerInfo .pagerPage{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  letter-spacing:-.005em;
}
.pagerInfo .pagerRange{
  font-size:11.5px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
@media (max-width:640px){
  .pager{gap:6px}
  .pager .pagerBtn{padding:8px 9px;font-size:12px}
  .pagerInfo .pagerPage{font-size:12.5px}
  .pagerInfo .pagerRange{font-size:11px}
}
.ideaCard{
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(0,0,0,.18);
  padding:14px 14px 12px;
}
.ideaTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.ideaMeta{color:var(--muted);font-size:12px;line-height:1.35}
.ideaTitle{font-weight:820;letter-spacing:-.01em;margin:6px 0 8px;line-height:1.25}
.pillRow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  font-weight:650;
}
.voteBox{display:flex;align-items:center;gap:8px;flex-shrink:0}
.btn.vote{padding:9px 12px;font-size:13px}
.btn.vote.support{border-color:rgba(46,229,157,.25);background:rgba(46,229,157,.08)}
.btn.vote.reject{border-color:rgba(255,77,109,.22);background:rgba(255,77,109,.06)}
.voteCounts{color:var(--muted);font-size:12px;font-weight:700}
.ideaDetails{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 10px}
.commentBlock{margin-top:10px;border-top:1px solid var(--stroke);padding-top:10px}
.comment{padding:8px 10px;border:1px solid var(--stroke);border-radius:12px;background:rgba(255,255,255,.04);margin-top:8px}
.commentMeta{color:var(--muted);font-size:11px;font-weight:650;margin-bottom:4px}
.commentBody{font-size:13px;line-height:1.45}

/* Polls */
.pollOptions{display:flex;flex-direction:column;gap:10px}
.pollOpt{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  font-weight:650;
  color:var(--text);
}
.pollOpt input{accent-color:var(--accentA)}

/* ── Civic single-column grid (no more side auth col) ── */
.civicGrid.single{grid-template-columns:1fr !important}
.civicCol.full{width:100%}
.civicAvatar{width:28px;height:28px;border-radius:50%;background:#233 center/cover no-repeat;border:1px solid var(--strokeLight);flex:none}
.btn.tiny{padding:6px 10px;font-size:12px;border-radius:999px}
.btn.tiny.ghost{background:transparent;color:var(--muted)}
.btn.big{padding:14px 18px;font-size:15px;border-radius:14px;font-weight:800}

/* ── Bottom-sheet sign-in ──────────────────────────────────────────────── */
.sheet{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  -webkit-tap-highlight-color:transparent;
}
.sheet.open{display:block}
.sheet.open .sheetBackdrop{animation:fadeIn .22s ease-out both}
.sheet.open .sheetPanel{animation:sheetUp .32s cubic-bezier(.22,.84,.28,1) both}
.sheetBackdrop{
  position:absolute;inset:0;
  background: rgba(4,6,13,.72);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.sheetPanel{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:6px 22px calc(22px + env(safe-area-inset-bottom)) 22px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0,210,255,.06), transparent 60%),
    linear-gradient(180deg, #0F1528 0%, #080C1A 100%);
  border-top:1px solid rgba(255,255,255,.08);
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  box-shadow:
    0 -1px 0 rgba(255,255,255,.04) inset,
    0 -24px 64px rgba(0,0,0,.6);
  max-width:480px;
  margin:0 auto;
  max-height:94vh;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.sheetHandle{
  width:36px;height:4px;border-radius:999px;
  background:rgba(255,255,255,.14);
  margin:6px auto 14px;
}
.sheetClose{
  position:absolute;
  top:10px;right:12px;
  width:32px;height:32px;
  display:grid;place-items:center;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  border-radius:10px;
  transition:background .15s, color .15s, border-color .15s;
}
.sheetClose:hover{background:rgba(255,255,255,.05);color:var(--text);border-color:rgba(255,255,255,.1)}
.sheetBack{
  display:inline-flex;align-items:center;gap:6px;
  border:none;background:transparent;color:var(--muted);
  font-size:13px;font-weight:600;cursor:pointer;padding:4px 0 8px;
  letter-spacing:-.005em;
}
.sheetBack:hover{color:var(--text)}
.sheetStep{display:none;animation:fadeUp .26s ease-out both}
.sheetStep.active{display:block}

.sheetHead{display:flex;align-items:center;gap:12px;margin:2px 0 4px}
.sheetLogo{width:36px;height:36px;object-fit:contain;flex:none;opacity:.92}
.sheetEyebrow{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
  margin-bottom:2px;
}
.sheetStep h2{
  font-size:22px;
  letter-spacing:-.015em;
  font-weight:750;
  line-height:1.2;
}
.sheetLead{
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  margin:6px 0 22px;
  max-width:40ch;
}
.sheetFine{
  font-size:11.5px;
  color:#6C7389;
  line-height:1.5;
  margin-top:18px;
  text-align:center;
  max-width:38ch;
  margin-left:auto;margin-right:auto;
}

@keyframes sheetUp{
  from{transform:translateY(32px);opacity:0}
  to{transform:translateY(0);opacity:1}
}

/* Auth option cards — uniform dark, provider accent on icon only */
.authOptions{display:flex;flex-direction:column;gap:10px;margin:4px 0 8px}
.authBtn{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  color:var(--text);
  text-decoration:none;
  text-align:left;
  cursor:pointer;
  font-family:inherit;
  transition:border-color .18s, background .18s, transform .08s;
}
.authBtn:hover{
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.authBtn:active{transform:scale(.995)}
.authBtn:focus-visible{
  outline:none;
  border-color:rgba(0,210,255,.55);
  box-shadow:0 0 0 3px rgba(0,210,255,.16);
}

.authBtn .iconTile{
  width:40px;height:40px;
  flex:none;
  border-radius:10px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  transition:background .18s, border-color .18s;
}
.authBtn[data-provider="google"] .iconTile{background:#fff;border-color:transparent}
.authBtn[data-provider="sms"] .iconTile{background:rgba(0,210,255,.08);border-color:rgba(0,210,255,.22)}
.authBtn[data-provider="whatsapp"] .iconTile{background:rgba(37,211,102,.08);border-color:rgba(37,211,102,.22)}

.authBtn .labelCol{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.authBtn .labelMain{
  font-weight:650;
  font-size:14.5px;
  letter-spacing:-.005em;
  color:var(--text);
  line-height:1.25;
}
.authBtn .labelSub{
  font-weight:500;
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.authBtn .chev{
  color:rgba(255,255,255,.25);
  display:grid;place-items:center;
  flex:none;
  transition:color .18s, transform .18s;
}
.authBtn:hover .chev{color:var(--muted);transform:translateX(2px)}

.sheetSkip{
  display:block;
  width:100%;
  margin-top:18px;
  padding:12px;
  text-align:center;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  background:transparent;
  border:none;
  border-radius:10px;
  cursor:pointer;
  transition:color .15s, background .15s;
}
.sheetSkip:hover{color:var(--text);background:rgba(255,255,255,.03)}

/* Big inputs for fat-fingers */
.bigInput{display:block;margin-bottom:12px}
.bigInput > span{
  display:block;font-size:12px;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.02em;
  margin-bottom:6px;
  text-transform:uppercase;
}
.bigInput input{
  width:100%;
  height:52px;
  font-size:16px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:550;
  transition:border-color .15s, background .15s, box-shadow .15s;
}
.bigInput input::placeholder{color:#525a72}
.bigInput input:focus{
  outline:none;
  border-color:rgba(0,210,255,.55);
  background:rgba(255,255,255,.05);
  box-shadow:0 0 0 3px rgba(0,210,255,.14);
}
.bigInput .hint{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
  font-weight:500;
}
.otpInput input{
  text-align:center;
  font-size:26px;
  letter-spacing:.4em;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  height:60px;
}
.actions.column{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.actions.column .btn.big{
  width:100%;
  height:50px;
  padding:0 18px;
  font-size:14.5px;
  font-weight:650;
  letter-spacing:-.005em;
  border-radius:12px;
}

/* Role chooser */
.roleOptions{display:flex;flex-direction:column;gap:8px;margin-bottom:4px}
.roleOpt{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:border-color .18s, background .18s;
}
.roleOpt:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.16)}
.roleOpt input{
  accent-color:var(--accentA);
  width:18px;height:18px;
  flex:none;
}
.roleOpt:has(input:checked){
  border-color:rgba(0,210,255,.5);
  background:linear-gradient(180deg, rgba(0,210,255,.08), rgba(0,210,255,.02));
}

/* Mobile tweaks for submit/explore forms */
@media(max-width:640px){
  .container{padding:14px 10px 24px}
  .panel{padding:18px 16px}
  .row.two{grid-template-columns:1fr}
  .cardBlock{padding:16px 14px}
  .civicBar{flex-direction:column;align-items:stretch;gap:10px}
  .civicTabs{display:grid;grid-template-columns:repeat(3, 1fr);gap:6px}
  .btn.tab{padding:11px 8px;font-size:13px;justify-content:center}
  .btn.tab .tabIcon{display:none}
  label > input, label > select, label > textarea{font-size:16px;min-height:48px}
  textarea{min-height:88px}
  .ideaTop{flex-direction:column}
  .voteBox{align-self:flex-start}
  .sheetPanel{border-top-left-radius:20px;border-top-right-radius:20px}
}

