/* Premium theme gallery — Sign in section */
.signin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}
.signin-layout .page-hero { padding-top: 0; }
.theme-gallery-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .75rem; margin-bottom: 1rem;
}
.theme-gallery-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.theme-gallery-note { margin: 0; color: var(--muted); font-size: .9rem; max-width: 48ch; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.theme-card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.019), rgba(22, 22, 24, 0.96));
  border-radius: 16px;
  padding: .9rem;
  display: grid; gap: .65rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.theme-card:hover {
  border-color: rgba(255, 138, 61, 0.55);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.theme-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35), 0 16px 36px rgba(255, 255, 255, 0.026);
}
.theme-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.theme-card .pill.premium {
  color: #0b0b0c; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 0; font-weight: 800; font-size: .68rem;
}
.theme-swatches { display: flex; gap: .35rem; }
.theme-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.theme-card h3 { margin: 0; font-size: 1rem; color: var(--gold-bright); }
.theme-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.theme-card-preview {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-soft);
  min-height: 72px;
  position: relative;
}
.theme-card-preview .mini-phone {
  margin: .55rem auto .4rem; width: 72%;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  padding: .45rem .5rem; font-size: .65rem;
  transform: scale(1); transform-origin: top center;
}
.theme-card-preview .mini-phone strong { display: block; margin-bottom: .25rem; }
.theme-card-preview .mini-bar {
  height: 6px; border-radius: 99px; margin: .25rem 0; opacity: .85;
}
.theme-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.theme-card-actions .btn { padding: .45rem .7rem; font-size: .8rem; }

.theme-live-panel {
  margin-top: 1.5rem;
  display: grid; grid-template-columns: 1fr minmax(200px, 240px);
  gap: 1.25rem; align-items: start;
  border: 1px solid rgba(255, 138, 61, 0.35);
  border-radius: 18px; padding: 1.15rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.022), rgba(20, 20, 22, 0.95));
}
.theme-live-copy h3 { margin: 0 0 .4rem; color: var(--gold-bright); }
.theme-live-copy p { margin: 0 0 .85rem; color: var(--muted); font-size: .92rem; }
.theme-live-copy .btn { margin-right: .5rem; margin-bottom: .4rem; }

@media (max-width: 960px) {
  .signin-layout { grid-template-columns: 1fr; }
  .theme-live-panel { grid-template-columns: 1fr; }
  .theme-live-panel .demo-phone { order: -1; max-width: 240px; }
}
