.city-bookshelf-hub-page [hidden]{
  display:none!important;
}

.bookshelf-hub-main{
  width:min(1220px,calc(100% - 32px));
  margin:0 auto;
}

.bookshelf-hub-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:28px;
  align-items:end;
  margin:28px 0 18px;
  padding:clamp(28px,5vw,56px);
  overflow:hidden;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(212,107,255,.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 5% 95%,
      rgba(41,231,255,.13),
      transparent 36%
    ),
    rgba(5,10,24,.9);
}

.bookshelf-hub-hero h1{
  max-width:900px;
  margin:10px 0 16px;
  font-size:clamp(42px,7vw,78px);
  line-height:.96;
  letter-spacing:-.055em;
}

.bookshelf-hub-hero p{
  max-width:830px;
  margin:0;
  color:#d9f6ff;
  font-size:clamp(17px,2vw,21px);
  line-height:1.55;
}

.bookshelf-hub-hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.bookshelf-hub-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}

.bookshelf-hub-stat{
  min-height:124px;
  padding:20px;
  border-color:rgba(41,231,255,.24);
  background:
    radial-gradient(
      circle at 85% 12%,
      rgba(212,107,255,.12),
      transparent 38%
    ),
    rgba(5,10,24,.82);
}

.bookshelf-hub-stat span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.bookshelf-hub-stat strong{
  display:block;
  margin-top:9px;
  color:#ffffff;
  font-size:clamp(30px,5vw,48px);
  line-height:1;
}

.featured-bookshelves,
.active-bookshelves,
.hub-community{
  margin:18px 0;
  padding:clamp(22px,4vw,36px);
  overflow:visible;
}

.featured-bookshelves{
  border-color:rgba(212,107,255,.34);
  background:
    radial-gradient(
      circle at 92% 7%,
      rgba(212,107,255,.16),
      transparent 33%
    ),
    rgba(5,10,24,.9);
}

.hub-section-heading{
  display:flex;
  gap:20px;
  align-items:flex-end;
  justify-content:space-between;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
}

.hub-section-heading h2{
  margin:8px 0 10px;
  font-size:clamp(30px,4vw,48px);
  line-height:1;
  letter-spacing:-.045em;
}

.hub-section-heading p{
  max-width:820px;
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.featured-bookshelf-grid,
.active-bookshelf-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
  padding-top:22px;
}

.bookshelf-discovery-card{
  position:relative;
  display:flex;
  min-width:0;
  min-height:330px;
  flex-direction:column;
  align-items:flex-start;
  overflow:hidden;
  padding:21px;
  border:1px solid rgba(41,231,255,.25);
  border-radius:20px;
  background:
    linear-gradient(
      90deg,
      rgba(41,231,255,.84),
      rgba(212,107,255,.9)
    ) top left / 100% 3px no-repeat,
    radial-gradient(
      circle at 92% 7%,
      rgba(212,107,255,.17),
      transparent 34%
    ),
    linear-gradient(
      150deg,
      rgba(13,27,58,.98),
      rgba(4,9,22,.99)
    );
  box-shadow:
    0 16px 34px rgba(0,0,0,.27),
    inset 0 0 24px rgba(41,231,255,.025);
}

.bookshelf-card-topline{
  display:flex;
  width:100%;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.bookshelf-state-pixel{
  display:grid;
  min-width:52px;
  height:52px;
  place-items:center;
  border:1px solid rgba(41,231,255,.43);
  border-radius:15px;
  color:#ffffff;
  background:rgba(41,231,255,.075);
  font-family:"Press Start 2P",monospace;
  font-size:12px;
  text-shadow:0 0 13px rgba(41,231,255,.62);
}

.bookshelf-status{
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:5px 9px;
  border:1px solid rgba(212,107,255,.4);
  border-radius:999px;
  color:#e8bcff;
  background:rgba(212,107,255,.08);
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.bookshelf-status-sponsored{
  border-color:rgba(41,231,255,.43);
  color:#bdf8ff;
  background:rgba(41,231,255,.08);
}

.bookshelf-discovery-card h3{
  margin:20px 0 8px;
  font-size:clamp(27px,3vw,37px);
  line-height:1.02;
  letter-spacing:-.04em;
}

.bookshelf-discovery-card h3 a{
  color:#ffffff;
  text-decoration:none;
}

.bookshelf-discovery-card h3 a:hover,
.bookshelf-discovery-card h3 a:focus-visible{
  color:var(--cyan);
  text-decoration:underline;
}

.bookshelf-sponsor-line{
  min-height:22px;
  margin:0;
  color:#d46bff;
  font-size:13px;
  font-weight:900;
}

.bookshelf-activity-date{
  margin:9px 0 0;
  color:var(--muted);
  font-size:12px;
}

.bookshelf-card-metrics{
  display:grid;
  width:100%;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:19px 0;
}

.bookshelf-card-metric{
  padding:11px 8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(255,255,255,.025);
  text-align:center;
}

.bookshelf-card-metric strong{
  display:block;
  color:#ffffff;
  font-size:20px;
}

.bookshelf-card-metric span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}

.bookshelf-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:auto;
}

.bookshelf-card-actions .btn{
  min-height:40px;
  padding:9px 12px;
  font-size:11px;
}

.bookshelf-hub-controls{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 190px 190px auto;
  gap:11px;
  align-items:end;
  margin-top:22px;
}

.bookshelf-hub-controls label{
  display:grid;
  gap:7px;
  color:#d8edf5;
  font-size:12px;
  font-weight:900;
}

.bookshelf-hub-controls input,
.bookshelf-hub-controls select{
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  color:var(--ink);
  background:rgba(5,10,24,.76);
  font:inherit;
}

.bookshelf-hub-controls input:focus,
.bookshelf-hub-controls select:focus{
  border-color:var(--cyan);
  outline:3px solid rgba(41,231,255,.14);
}

.bookshelf-filter-summary{
  margin:17px 0 0;
  color:var(--cyan);
  font-size:13px;
  font-weight:900;
}

.bookshelf-hub-loading,
.bookshelf-hub-empty,
.bookshelf-hub-error{
  display:flex;
  min-height:150px;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:20px;
  padding:24px;
  border:1px dashed var(--line);
  border-radius:18px;
  color:var(--muted);
  background:rgba(5,10,24,.34);
  text-align:center;
}

.bookshelf-hub-empty{
  flex-direction:column;
}

.bookshelf-hub-empty strong{
  color:#ffffff;
  font-size:20px;
}

.bookshelf-hub-error{
  border-color:rgba(255,100,124,.6);
  color:#ffdbe1;
  background:rgba(255,100,124,.09);
}

.bookshelf-hub-spinner{
  width:22px;
  height:22px;
  border:3px solid rgba(41,231,255,.2);
  border-top-color:var(--cyan);
  border-radius:50%;
  animation:bookshelf-hub-spin .75s linear infinite;
}

@keyframes bookshelf-hub-spin{
  to{transform:rotate(360deg)}
}

.hub-community{
  border-color:rgba(41,231,255,.29);
  background:
    radial-gradient(
      circle at 5% 8%,
      rgba(41,231,255,.11),
      transparent 33%
    ),
    rgba(5,10,24,.9);
}

.hub-community-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  padding-top:23px;
}

.hub-community-columns h3{
  margin:0 0 13px;
  color:#ffffff;
  font-size:25px;
}

.hub-mini-grid{
  display:grid;
  gap:11px;
}

.hub-mini-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:13px;
  align-items:center;
  min-height:92px;
  padding:13px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(8,18,40,.7);
}

.hub-mini-mark{
  display:grid;
  width:54px;
  height:54px;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(212,107,255,.38);
  border-radius:14px;
  color:#ffffff;
  background:rgba(212,107,255,.08);
  font-family:"Press Start 2P",monospace;
  font-size:11px;
}

.hub-mini-mark img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hub-mini-copy{
  min-width:0;
}

.hub-mini-copy strong{
  display:block;
  color:#ffffff;
  font-size:16px;
}

.hub-mini-copy a{
  color:inherit;
  text-decoration:none;
}

.hub-mini-copy a:hover,
.hub-mini-copy a:focus-visible{
  color:var(--cyan);
  text-decoration:underline;
}

.hub-mini-copy span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}

@media(max-width:1050px){
  .featured-bookshelf-grid,
  .active-bookshelf-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .bookshelf-hub-controls{
    grid-template-columns:minmax(240px,1fr) 1fr 1fr;
  }

  .bookshelf-hub-controls .btn{
    grid-column:1/-1;
    width:max-content;
  }
}

@media(max-width:850px){
  .bookshelf-hub-hero{
    grid-template-columns:1fr;
    align-items:start;
  }

  .bookshelf-hub-hero-actions{
    justify-content:flex-start;
  }

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

  .hub-section-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .hub-community-columns{
    grid-template-columns:1fr;
  }
}

@media(max-width:680px){
  .featured-bookshelf-grid,
  .active-bookshelf-grid,
  .bookshelf-hub-controls{
    grid-template-columns:1fr;
  }

  .bookshelf-hub-controls .btn{
    grid-column:auto;
  }
}

@media(max-width:500px){
  .bookshelf-hub-main{
    width:min(100% - 20px,1220px);
  }

  .bookshelf-hub-stats{
    grid-template-columns:1fr 1fr;
  }

  .bookshelf-discovery-card{
    min-height:0;
  }
}


/* === Step 146B: First-Year Founder Price public labeling === */
.bookshelf-hub-hero p strong{
  color:#ffffff;
  text-shadow:0 0 13px rgba(212,107,255,.42);
}

.bookshelf-sponsor-line{
  line-height:1.45;
}
