/* My Glow Card tab */
.tab-card .gc-head h1 { margin-bottom: 4px; }
.tab-card .gc-head p { margin: 0; }
.tab-card .gc-layout { display: grid; gap: 14px; align-items: start; }
@media (min-width: 860px) { .tab-card .gc-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* card */
.tab-card .gc-card { padding: 14px; display: grid; gap: 14px; overflow: hidden; }
.tab-card .gc-cardtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tab-card .gc-brand { font-weight: 800; letter-spacing: -.02em; }
.tab-card .gc-brand b { color: var(--accent-ink); }

.tab-card .gc-stage { position: relative; padding-top: 92px; }
.tab-card .gc-stage.dropping .gc-photo { outline: 3px dashed var(--accent); outline-offset: 4px; }
.tab-card .gc-plumbob { position: absolute; top: 0; left: 50%; width: 96px; height: 112px; transform: translateX(-50%); z-index: 3; pointer-events: none; }
.tab-card .gc-plumbob::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -2px; height: 8px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-ink) 35%, transparent), transparent); }
.tab-card .gc-plumbob canvas { width: 100%; height: 100%; display: block; }
.tab-card .gc-plumbob-svg { display: block; width: 74px; height: 74px; margin: 18px auto 0; animation: gc-bobspin 4.2s ease-in-out infinite; }
@keyframes gc-bobspin {
  0%, 100% { transform: translateY(0) perspective(300px) rotateY(0); }
  50% { transform: translateY(-8px) perspective(300px) rotateY(180deg); }
}

.tab-card .gc-scene { position: relative; aspect-ratio: 1 / 1; max-height: 560px; margin: 0 auto; width: 100%; }
.tab-card .gc-photo {
  position: absolute; inset: 0 18%; border-radius: 26px; overflow: hidden;
  background: var(--soft); border: 6px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow);
}
.tab-card .gc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.tab-card .gc-drop {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 12px; text-align: center; border: 2px dashed var(--line); border-radius: 20px;
}
.tab-card .gc-drop-ico { font-size: 1.8rem; }
.tab-card .gc-droplabel {
  position: relative; display: inline-flex; padding: 8px 14px; border-radius: 999px;
  background: var(--cta, var(--accent-bg)); box-shadow: var(--cta-glow, none); color: #fff; font-weight: 800; font-size: .88rem; cursor: pointer;
}
.tab-card .gc-droplabel input, .tab-card .gc-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tab-card .gc-droplabel:focus-within, .tab-card .gc-upload:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.tab-card .gc-linkbtn { background: none; border: 0; padding: 4px; color: var(--accent-ink); font-weight: 700; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.tab-card .gc-drophint { display: none; }
@media (pointer: fine) { .tab-card .gc-drophint { display: block; } }

/* bubbles */
.tab-card .gc-bubbles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tab-card .gc-bubble { position: absolute; max-width: 34%; pointer-events: auto; touch-action: none; cursor: grab; animation: gc-pop .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.tab-card .gc-bubble.dragging { cursor: grabbing; z-index: 3; }
.tab-card .gc-bubble.ghost { left: 0; top: 40%; }
.tab-card .gc-bubble-in {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 750; line-height: 1.25;
  color: var(--ink); background: linear-gradient(135deg, rgba(238, 31, 134, .16), rgba(155, 123, 255, .20)), var(--card);
  backdrop-filter: var(--glass, none); -webkit-backdrop-filter: var(--glass, none);
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: gc-float 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s);
}
.tab-card .gc-bubble-in { max-width: 100%; white-space: nowrap; overflow-wrap: normal; }
.tab-card .gc-bl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tab-card .gc-bubble-in::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 2px; height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, .75); pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tab-card .gc-bubble-in { border-color: rgba(255, 255, 255, .16); }
  :root:not([data-theme="light"]) .tab-card .gc-photo { border-color: rgba(255, 255, 255, .14); }
  :root:not([data-theme="light"]) .tab-card .gc-bubble-in::before { opacity: .18; }
}
:root[data-theme="dark"] .tab-card .gc-bubble-in { border-color: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .tab-card .gc-photo { border-color: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .tab-card .gc-bubble-in::before { opacity: .18; }
.tab-card .gc-bubble.mood .gc-bubble-in { background: linear-gradient(135deg, var(--acc2-bg, rgba(155, 123, 255, .14)), rgba(155, 123, 255, .28)), var(--card); color: var(--lav-ink); }
@keyframes gc-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes gc-float { 50% { transform: translateY(-5px); } }
@media (max-width: 420px) {
  .tab-card .gc-bubble { max-width: 38%; }
  .tab-card .gc-bubble-in { font-size: .72rem; padding: 5px 9px; gap: 2px; }
  .tab-card .gc-stage { padding-top: 84px; }
}

/* item slots + connectors */
.tab-card .gc-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.tab-card .gc-links path { fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .75; }
.tab-card .gc-links circle { fill: var(--accent); }
.tab-card .gc-slots { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 2; }
.tab-card .gc-slots li { animation: gc-pop .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 110ms + 400ms); }
.tab-card .gc-slot {
  height: 100%; display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center;
  padding: 8px 6px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  backdrop-filter: var(--glass, none); -webkit-backdrop-filter: var(--glass, none);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s var(--spring), border-color .2s;
}
.tab-card .gc-slot:hover { transform: translateY(-3px); border-color: var(--accent); }
.tab-card .gc-slot-ico svg { width: 44px; height: 44px; display: block; }
.tab-card .gc-slot-brand { font-size: .68rem; font-weight: 800; color: var(--accent-ink); }
.tab-card .gc-slot-name { font-size: .78rem; font-weight: 750; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tab-card .gc-slot-score { font-size: .7rem; color: var(--mute); font-variant-numeric: tabular-nums; }
@media (max-width: 360px) {
  .tab-card .gc-slot { padding: 6px 4px 8px; }
  .tab-card .gc-slot-name { font-size: .7rem; }
  .tab-card .gc-slot-score .demo-tag { display: block; width: max-content; margin: 2px auto 0; }
}

/* caption */
.tab-card .gc-capwrap { text-align: center; }
.tab-card .gc-caption { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.tab-card .gc-caption.loading { color: var(--mute); font-weight: 600; animation: gc-pulse 1.2s ease-in-out infinite; }
.tab-card .gc-capsrc { margin: 4px 0 0; }
@keyframes gc-pulse { 50% { opacity: .45; } }

/* radar + stat rows */
.tab-card .gc-vibe { display: grid; gap: 10px; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; }
@media (min-width: 440px) { .tab-card .gc-vibe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tab-card .gc-radar svg { display: block; width: 100%; max-width: 230px; margin: 0 auto; overflow: visible; }
.tab-card .gc-grid polygon, .tab-card .gc-grid line { fill: none; stroke: var(--line); stroke-width: 1; }
.tab-card .gc-shape { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; transform-box: view-box; transform-origin: 0 0; animation: gc-radar .8s var(--spring) both .3s; }
.tab-card .gc-dot { fill: var(--accent-ink); }
.tab-card .gc-axis text { font-size: 11px; font-weight: 700; fill: var(--mute); }
@keyframes gc-radar { from { transform: scale(0); opacity: 0; } }
.tab-card .gc-statrows { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; margin: 0; align-items: center; }
.tab-card .gc-statrows dt { font-size: .8rem; font-weight: 750; }
.tab-card .gc-statrows dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.tab-card .gc-statrows b { font-size: .8rem; min-width: 2.2em; text-align: right; font-variant-numeric: tabular-nums; }
.tab-card .gc-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.tab-card .gc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc2, #9b7bff), var(--accent)); transform: scaleX(var(--v, 0)); transform-origin: left; animation: gc-fill .9s cubic-bezier(.22, 1, .36, 1) both .35s; }
@keyframes gc-fill { from { transform: scaleX(0); } }

.tab-card .gc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* editor */
.tab-card .gc-editor h2 { margin: 0; }
.tab-card .gc-field { gap: 8px; }
.tab-card .gc-label { margin: 0; font-size: .85rem; font-weight: 750; }
.tab-card .gc-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-card .gc-upload { position: relative; overflow: hidden; cursor: pointer; }
.tab-card .gc-privacy { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--mint); color: var(--ink); font-weight: 650; border-left: 3px solid var(--mint-ink); }

.tab-card .gc-card.gc-enter .gc-photo { animation: gc-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes gc-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }


/* 44px touch targets on phones */
.tab-card .gc-editor .chip, .tab-card .gc-droplabel, .tab-card .gc-linkbtn { min-height: 44px; }
.tab-card .gc-droplabel { align-items: center; }
.tab-card .gc-drop { gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .tab-card *, .tab-card *::before, .tab-card *::after { animation: none !important; transition: none !important; }
}
