/* socialcards (10 Nov 2026): AI Studio hub cards. A picture on every card, black card, purple frame, gold on hover.
   Hub cards only (.rc-main .hsec). Tool pages, header, bottom bar and forms keep their rules. */
.rc-main .hsec { margin: 34px 0 6px; }
.rc-main .hsec-g {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}
.rc-main .hsec .hcard {
  position: relative;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 16px !important;
  overflow: hidden;
  border-radius: 20px !important;
  background: linear-gradient(180deg, #131318 0%, #0b0b0e 100%) !important;
  border: 1px solid rgba(155, 134, 196, .45) !important;
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.rc-main .hsec .hcard:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, .85) !important;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .35), 0 26px 50px -26px rgba(0, 0, 0, .95);
}
.rc-main .hsec .hcard.on { border-color: #c4b0e0 !important; box-shadow: 0 0 0 1px #c4b0e0, 0 22px 44px -28px rgba(0, 0, 0, .95) !important; }
.rc-main .hsec .hcard:focus-visible { outline: 2px solid #c4b0e0 !important; outline-offset: 3px; }

/* Picture area. */
.rc-main .hsec .hcard .hbg {
  display: block !important;
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #0d0d10;
  overflow: hidden;
}
.rc-main .hsec .hcard:hover .hbg,
.rc-main .hsec .hcard.on .hbg,
.rc-main .hsec .hcard:active .hbg,
.rc-main .hsec .hcard:focus-visible .hbg { border: 0 !important; box-shadow: none !important; }
.rc-main .hsec .hbg.hpic > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .6s ease;
}
.rc-main .hsec .hcard:hover .hbg.hpic > img { transform: scale(1.05); }
.rc-main .hsec .hbg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 14, 0) 42%, rgba(11, 11, 14, .55) 78%, #111115 100%);
}
/* Cards without a picture: a designed panel, gold glow and the yellow icon in the middle. */
.rc-main .hsec .hbg.hvec,
.rc-main .hsec .hbg.hph:not(.hpic) {
  display: grid !important;
  place-items: center;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(155, 134, 196, .30), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(212, 175, 55, .22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    #121216 !important;
}
.rc-main .hsec .hbg.hvec .hico { position: relative !important; inset: auto !important; width: 72px !important; height: 72px !important; border-radius: 20px; }
.rc-main .hsec .hbg.hvec .hico svg { width: 42px !important; height: 42px !important; }

/* Yellow icon badge on the picture. */
.rc-main .hsec .hbg.hpic .hico {
  position: absolute !important;
  z-index: 3;
  bottom: 10px !important;
  top: auto !important;
  inset-inline-start: 12px !important;
  inset-inline-end: auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(10, 10, 14, .72) !important;
  border: 1px solid rgba(212, 175, 55, .55) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.rc-main .hsec .hbg.hpic .hico svg { width: 26px !important; height: 26px !important; }

/* Model family name over its picture. */
.rc-main .hsec .hbg.hph.hpic .hphi {
  position: absolute !important;
  inset: auto 0 10px 0 !important;
  z-index: 3;
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  padding-inline: 14px;
  font-size: 15px;
  letter-spacing: .14em;
  color: #d4af37 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

/* Labels: glass on the picture. */
.rc-main .hsec .hlab { z-index: 4; top: 12px; inset-inline-end: 12px; inset-inline-start: auto; border-radius: 999px; padding: 5px 10px; font-size: 11px; }
.rc-main .hsec .hlab.soon {
  background: rgba(10, 10, 14, .66) !important;
  color: #d4af37 !important;
  border: 1px solid rgba(212, 175, 55, .6) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.rc-main .hsec .hlab.new { background: #d4af37 !important; color: #141414 !important; }
.rc-main .hsec .htry { z-index: 4; inset-inline-end: 12px; bottom: 12px; border-radius: 999px; padding: 7px 14px; background: #d4af37 !important; color: #141414 !important; }

/* Title and line. */
.rc-main .hsec .hcard b { padding: 12px 16px 0 !important; font-size: 17px !important; font-weight: 800; line-height: 1.45; color: #fff; }
.rc-main .hsec .hcard .hd { padding: 4px 16px 0 !important; font-size: 13.5px !important; line-height: 1.6 !important; color: #b9b4c6 !important; }

/* A section with one card: a wide card, picture on one side. */
@media (min-width: 760px) {
  .rc-main .hsec-g > .hcard:only-child {
    grid-column: span 2;
    display: grid !important;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr auto 1fr;
    padding: 0 !important;
  }
  .rc-main .hsec-g > .hcard:only-child .hbg { grid-row: 1 / 4; aspect-ratio: auto; min-height: 200px; height: 100%; }
  .rc-main .hsec-g > .hcard:only-child .hbg::after { background: linear-gradient(270deg, rgba(11, 11, 14, 0) 55%, #111115 100%); }
  html[dir="rtl"] .rc-main .hsec-g > .hcard:only-child .hbg::after { background: linear-gradient(90deg, rgba(11, 11, 14, 0) 55%, #111115 100%); }
  .rc-main .hsec-g > .hcard:only-child b { grid-column: 2; grid-row: 1; align-self: end; padding: 0 22px !important; font-size: 20px !important; }
  .rc-main .hsec-g > .hcard:only-child .hd { grid-column: 2; grid-row: 2; padding: 6px 22px 0 !important; font-size: 14.5px !important; }
}

/* Phone: one row that slides, the next card peeks. A single card fills the row. */
@media (max-width: 759px) {
  .rc-main .hsec { margin: 26px 0 4px; }
  .rc-main .hsec-g {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: -16px !important;
    padding-inline: 16px !important;
    padding-bottom: 6px !important;
  }
  .rc-main .hsec-g::-webkit-scrollbar { display: none; }
  .rc-main .hsec-g > .hcard { flex: 0 0 74% !important; scroll-snap-align: start; }
  .rc-main .hsec-g > .hcard:only-child { flex: 1 1 100% !important; }
  .rc-main .hsec .hcard b { font-size: 16px !important; }
  .rc-main .hsec .hcard .hd { font-size: 13px !important; }
}
@media (hover: none) { .rc-main .hsec .htry { opacity: 0 !important; } }
@media (prefers-reduced-motion: reduce) {
  .rc-main .hsec .hcard, .rc-main .hsec .hbg.hpic > img { transition: none !important; }
  .rc-main .hsec .hcard:hover { transform: none; }
  .rc-main .hsec .hcard:hover .hbg.hpic > img { transform: none; }
}
/* The family name is already the card title; the picture carries no second copy. */
.rc-main .hsec .hbg.hph.hpic .hphi > span { display: none; }
