/* ===========================================================
   COMMUNITY.CSS — v3 Awe Redesign
   Inspired by Higgsfield / Meshy / Runway — cinematic showcase
   with search, sort, masonry, creator spotlights, and more.
   =========================================================== */

/* ===== CSS Custom Properties ===== */
:root {
  --ccg-bg: #050507;
  --ccg-surface: #0c0c10;
  --ccg-surface-2: #111116;
  --ccg-border: rgba(255, 255, 255, 0.06);
  --ccg-border-hover: rgba(255, 255, 255, 0.14);
  --ccg-text: #fff;
  --ccg-text-2: rgba(255, 255, 255, 0.55);
  --ccg-text-3: rgba(255, 255, 255, 0.3);
  --ccg-accent: #8b5cf6;
  --ccg-accent-2: #a78bfa;
  --ccg-accent-glow: rgba(139, 92, 246, 0.15);
  --ccg-gold: #fbbf24;
  --ccg-radius: 14px;
  --ccg-radius-sm: 10px;
  --ccg-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ccg-pad: clamp(24px, 5vw, 64px);
}

/* ===== Community Container ===== */
.community-expanded-view {
  display: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--ccg-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.community-view .community-expanded-view {
  display: block;
  animation: ccgFadeUp .5s var(--ccg-ease);
}

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

/* Shell */
.community-expanded-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--ccg-bg);
  padding: 0;
  position: relative;
}

/* ===========================================================
   HERO — Immersive animated gradient mesh
   =========================================================== */
.community-hero {
  position: relative;
  min-height: clamp(420px, 55vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 60px;
  margin-bottom: 0;
  animation: ccgFadeUp .7s var(--ccg-ease) .05s forwards;
  opacity: 0;
}

/* Animated gradient mesh background */
.community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 20% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 75% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 60%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
  animation: ccgHeroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ccgHeroGlow {
  0%   { opacity: 1; filter: hue-rotate(0deg); }
  50%  { opacity: 0.8; filter: hue-rotate(15deg); }
  100% { opacity: 1; filter: hue-rotate(-10deg); }
}

/* Noise overlay */
.community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Grid lines overlay */
.community-hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 80%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 80%, black 20%, transparent 70%);
}

/* Floating thumbnails container */
.community-hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.community-hero-floater {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.12;
  filter: blur(1px) saturate(0.7);
  animation: ccgFloat 20s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.community-hero-floater:nth-child(1) { width: 120px; height: 150px; top: 15%; right: 8%; animation-delay: 0s; animation-duration: 18s; }
.community-hero-floater:nth-child(2) { width: 100px; height: 120px; top: 40%; right: 20%; animation-delay: -4s; animation-duration: 22s; }
.community-hero-floater:nth-child(3) { width: 90px; height: 110px; top: 60%; right: 5%; animation-delay: -8s; animation-duration: 25s; }
.community-hero-floater:nth-child(4) { width: 80px; height: 100px; top: 25%; right: 32%; animation-delay: -12s; animation-duration: 20s; }

@keyframes ccgFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-15px) rotate(1deg); }
  50%      { transform: translateY(5px) rotate(-0.5deg); }
  75%      { transform: translateY(-8px) rotate(0.5deg); }
}

.community-hero-floater img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero text */
.community-hero-text {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 280px;
  max-width: 680px;
  padding: clamp(48px, 7vh, 80px) var(--ccg-pad);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Eyebrow */
.community-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ccg-accent-2);
  margin-bottom: 0;
}

.community-pill::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--ccg-accent), transparent);
  border-radius: 1px;
}

/* Live badge */
.community-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #34d399;
}

.community-pill-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: ccgPulse 2s ease-in-out infinite;
}

@keyframes ccgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* Hero title */
.community-hero h1,
.community-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.community-title-accent {
  background: linear-gradient(135deg, var(--ccg-accent-2), #60a5fa, var(--ccg-accent-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ccgGradientShift 4s ease infinite;
}

@keyframes ccgGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.community-hero-sub {
  margin: 0;
  max-width: 520px;
  font-size: clamp(14px, 1rem, 16px);
  line-height: 1.7;
  color: var(--ccg-text-2);
}

.community-hero p {
  margin: 0;
  max-width: 520px;
  font-size: clamp(14px, 1rem, 16px);
  line-height: 1.7;
  color: var(--ccg-text-2);
}

/* Hero Actions */
.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Buttons */
.community-primary-btn,
.community-secondary-btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ccg-ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.community-primary-btn {
  background: var(--ccg-accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--ccg-accent-glow), 0 0 0 1px rgba(139, 92, 246, 0.3) inset;
}
.community-primary-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.4) inset;
}

.community-secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ccg-border);
  color: var(--ccg-text-2);
}
.community-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--ccg-border-hover);
  color: #fff;
}

/* Hero Stats — animated counters */
.community-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.community-hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ccg-border);
  border-radius: var(--ccg-radius-sm);
  min-width: 88px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s var(--ccg-ease);
}
.community-hero-stats li:hover {
  border-color: var(--ccg-border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.community-hero-stats li span {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.community-hero-stats li small {
  font-size: 9px;
  font-weight: 600;
  color: var(--ccg-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  max-width: 100px;
  line-height: 1.3;
}

/* Watermark */
.community-watermark {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
  z-index: 1;
  opacity: 0;
  animation: ccgWatermark 2s ease forwards 0.5s;
}

@keyframes ccgWatermark {
  to { opacity: 1; }
}

/* Exit Button */
.community-exit-btn {
  position: fixed;
  top: 20px;
  right: clamp(24px, 4vw, 60px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.community-exit-btn:hover {
  background: rgba(20, 20, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.03);
}

/* ===========================================================
   ACTIVITY TICKER — live scrolling feed
   =========================================================== */
.ccg-ticker {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--ccg-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.ccg-ticker__track {
  display: flex;
  gap: 32px;
  animation: ccgTickerScroll 30s linear infinite;
  width: max-content;
}

@keyframes ccgTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ccg-ticker__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ccg-text-3);
}

.ccg-ticker__item strong {
  color: var(--ccg-text-2);
  font-weight: 600;
}

.ccg-ticker__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ccg-accent);
  opacity: 0.5;
}

/* ===========================================================
   FEATURED — Editorial hero layout (1 big + 4 small)
   =========================================================== */
.ccg-featured {
  padding: clamp(32px, 5vh, 56px) var(--ccg-pad);
  overflow: hidden;
}

.ccg-featured__header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.ccg-featured__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ccg-featured__title::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--ccg-accent);
}

.ccg-featured__sub {
  margin: 0;
  font-size: 13px;
  color: var(--ccg-text-3);
  flex: 1;
}

.ccg-featured__nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ccg-featured__arrow {
  width: 34px;
  height: 34px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ccg-ease);
  padding: 0;
}
.ccg-featured__arrow:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ccg-border-hover);
  color: #fff;
}
.ccg-featured__arrow:disabled { opacity: 0.2; cursor: default; }

/* Track — horizontal scroll with snap */
.ccg-featured__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.ccg-featured__track::-webkit-scrollbar { display: none; }

/* Featured card — larger, more dramatic */
.ccg-featured__card {
  flex: 0 0 auto;
  width: clamp(300px, 30vw, 400px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  scroll-snap-align: start;
  cursor: pointer;
  transition: all 0.4s var(--ccg-ease);
  will-change: transform;
}
.ccg-featured__card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(139, 92, 246, 0.1) inset,
    0 0 40px rgba(139, 92, 246, 0.04);
}

.ccg-featured__card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ccg-ease);
  opacity: 0;
}

.ccg-featured__card-model {
  width: 100%;
  height: 100%;
  display: block;
  --poster-color: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ccg-featured__card-model.ccg-model-loaded {
  opacity: 1;
}
.ccg-featured__card-model.ccg-model-loaded::part(default-poster) { opacity: 0; }

.ccg-featured__card-media.ccg-loaded,
video.ccg-featured__card-media,
model-viewer.ccg-featured__card-media {
  opacity: 1;
}

.ccg-featured__card:hover .ccg-featured__card-media {
  transform: scale(1.06);
}

.ccg-featured__card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.6) 65%, rgba(0, 0, 0, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ccg-featured__card:hover .ccg-featured__card-overlay {
  opacity: 1;
}

.ccg-featured__card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

/* Featured badge — top right sparkle */
.ccg-featured__card::after {
  content: "★";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--ccg-gold);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ccg-featured__card:hover::after {
  opacity: 1;
}

.ccg-featured__card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccg-featured__card-author {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ccg-featured__card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid var(--ccg-border);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Featured skeleton */
.ccg-featured__skeleton {
  flex: 0 0 auto;
  width: clamp(300px, 30vw, 400px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
  background-size: 200% 100%;
  animation: ccgShimmer 1.4s infinite;
}

/* ===========================================================
   SEARCH + SORT + FILTER TOOLBAR
   =========================================================== */
.ccg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 0 0 28px;
}

/* Search input */
.ccg-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 420px;
}

.ccg-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ccg-text-3);
  pointer-events: none;
  transition: color 0.2s ease;
}

.ccg-search__input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s var(--ccg-ease);
  box-sizing: border-box;
}
.ccg-search__input::placeholder { color: var(--ccg-text-3); }
.ccg-search__input:focus {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}
.ccg-search__input:focus + .ccg-search__icon { color: var(--ccg-accent-2); }

/* Sort dropdown */
.ccg-sort {
  position: relative;
}

.ccg-sort__select {
  appearance: none;
  padding: 10px 36px 10px 14px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.025) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ccg-text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--ccg-ease);
  min-width: 140px;
}
.ccg-sort__select:hover {
  border-color: var(--ccg-border-hover);
  background-color: rgba(255, 255, 255, 0.04);
}
.ccg-sort__select:focus {
  border-color: rgba(139, 92, 246, 0.4);
}
.ccg-sort__select option {
  background: #1a1a1f;
  color: #fff;
}

/* Filter tabs — pill style */
.ccg-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.ccg-filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ccg-border);
  background: transparent;
  color: var(--ccg-text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ccg-ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ccg-filter-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border-color: var(--ccg-border-hover);
}
.ccg-filter-tab--active {
  background: var(--ccg-accent);
  color: #fff;
  border-color: var(--ccg-accent);
  box-shadow: 0 2px 12px var(--ccg-accent-glow);
}
.ccg-filter-tab--active:hover {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

/* ===========================================================
   CREATOR SPOTLIGHT — Cinematic scrolling creator strip
   =========================================================== */
.ccg-spotlight {
  padding: clamp(28px, 4vh, 48px) var(--ccg-pad);
  border-bottom: 1px solid var(--ccg-border);
  overflow: hidden;
}

.ccg-spotlight__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ccg-spotlight__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ccg-spotlight__badge {
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--ccg-accent-glow);
  border: 1px solid rgba(139, 92, 246, 0.18);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ccg-accent-2);
}

.ccg-spotlight__track {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 0;
  min-height: 96px;
  position: relative;
}

/* Inner belt that slides continuously */
.ccg-spotlight__belt {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: spotlightMarquee var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
.ccg-spotlight__belt:hover { animation-play-state: paused; }

@keyframes spotlightMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Card base ── */
.ccg-spotlight__card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  color: #fff;
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  transition: border-color 0.25s var(--ccg-ease), background 0.25s var(--ccg-ease);
}
.ccg-spotlight__card:hover {
  border-color: var(--ccg-border-hover);
  background: var(--ccg-surface-2);
}

/* Subtle drift — very gentle vertical float, no bouncing */
.ccg-spotlight__card { animation: spotDrift 6s ease-in-out infinite; }
@keyframes spotDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── Size: sm — compact avatar chip ── */
.ccg-spotlight__card--sm {
  padding: 8px 14px 8px 8px;
  border-radius: 40px;
  gap: 8px;
}
.ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 32px; height: 32px; font-size: 11px; }
.ccg-spotlight__card--sm .ccg-spotlight__name  { font-size: 11px; }
.ccg-spotlight__card--sm .ccg-spotlight__count { display: none; }

/* ── Size: md — standard card with name + count ── */
.ccg-spotlight__card--md {
  padding: 10px 18px 10px 10px;
  border-radius: var(--ccg-radius);
  gap: 10px;
}
.ccg-spotlight__card--md .ccg-spotlight__avatar { width: 38px; height: 38px; font-size: 13px; }
.ccg-spotlight__card--md .ccg-spotlight__name  { font-size: 12px; }
.ccg-spotlight__card--md .ccg-spotlight__count { font-size: 10px; }

/* ── Size: lg — prominent card ── */
.ccg-spotlight__card--lg {
  padding: 12px 22px 12px 12px;
  border-radius: var(--ccg-radius);
  gap: 12px;
  border-width: 1px;
}
.ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 44px; height: 44px; font-size: 15px; }
.ccg-spotlight__card--lg .ccg-spotlight__name  { font-size: 13px; font-weight: 700; }
.ccg-spotlight__card--lg .ccg-spotlight__count { font-size: 10px; color: var(--ccg-text-2); }

/* ── Avatar (shared) ── */
.ccg-spotlight__avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.ccg-spotlight__avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--ccg-accent);
  opacity: 0.2;
}

/* ── Text block ── */
.ccg-spotlight__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ccg-spotlight__name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  line-height: 1.2;
}

.ccg-spotlight__count {
  font-size: 10px;
  color: var(--ccg-text-3);
  line-height: 1.2;
}

/* Gradient fade edges */
.ccg-spotlight__track::before,
.ccg-spotlight__track::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}
.ccg-spotlight__track::before {
  left: 0;
  background: linear-gradient(to right, var(--ccg-bg, #050507), transparent);
}
.ccg-spotlight__track::after {
  right: 0;
  background: linear-gradient(to left, var(--ccg-bg, #050507), transparent);
}

/* ===========================================================
   SECTIONS & CONTENT
   =========================================================== */
.community-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) var(--ccg-pad);
  animation: ccgFadeUp .8s var(--ccg-ease) forwards;
  opacity: 0;
}
.community-section:nth-of-type(1) { animation-delay: .15s; }
.community-section:nth-of-type(2) { animation-delay: .25s; }
.community-section:nth-of-type(3) { animation-delay: .35s; }
.community-section:nth-of-type(4) { animation-delay: .45s; }
.community-section:nth-of-type(5) { animation-delay: .55s; }

/* Gallery section — wider */
.community-creations-section {
  max-width: 100%;
  padding-left: var(--ccg-pad);
  padding-right: var(--ccg-pad);
}

.community-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.community-section-content {
  flex: 1;
  min-width: 280px;
}

.community-section h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.community-section > p,
.community-section-content > p {
  margin: 0;
  color: var(--ccg-text-2);
  line-height: 1.6;
  max-width: 560px;
  font-size: 14px;
}

/* Section Highlight Badge */
.community-highlight {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ccg-accent-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Cards & Grids ===== */
.community-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.community-card {
  padding: 28px;
  border-radius: var(--ccg-radius);
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  transition: all 0.3s var(--ccg-ease);
  position: relative;
  overflow: hidden;
}
.community-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.community-card:hover {
  border-color: var(--ccg-border-hover);
  background: var(--ccg-surface-2);
  transform: translateY(-1px);
}
.community-card:hover::before { opacity: 1; }

.community-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.community-card__body {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ccg-text-2);
}

/* Get Involved Grid */
.community-involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.community-involve-card {
  display: flex;
  flex-direction: column;
}
.community-involve-card .community-secondary-btn {
  margin-top: auto;
  width: fit-content;
}

.community-involve-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  margin-bottom: 16px;
  color: var(--ccg-accent-2);
  transition: all 0.3s var(--ccg-ease);
}
.community-involve-card:hover .community-involve-icon {
  transform: scale(1.08);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

/* Updates List */
.community-updates-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.community-updates-list li {
  position: relative;
  padding: 14px 18px 14px 20px;
  border-radius: var(--ccg-radius-sm);
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ccg-text-2);
  transition: all 0.2s ease;
}
.community-updates-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px 0 0 2px;
  background: rgba(139, 92, 246, 0.2);
  transition: background 0.2s ease;
}
.community-updates-list li:hover {
  border-color: var(--ccg-border-hover);
  background: var(--ccg-surface-2);
}
.community-updates-list li:hover::before {
  background: var(--ccg-accent);
}

/* CTA Block */
.community-cta {
  text-align: center;
  padding: clamp(48px, 7vh, 80px) clamp(24px, 4vw, 60px);
  margin-top: 40px;
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.community-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.community-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}
.community-cta p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ccg-text-2);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.community-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
}

/* ===========================================================
   COMMUNITY CREATIONS GALLERY (CCG) — v3 Masonry
   =========================================================== */

/* ── Grid — Masonry-like with CSS columns ── */
.ccg-grid {
  column-count: 4;
  column-gap: 14px;
  position: relative;
  min-height: 360px;
  isolation: isolate;
}

/* ── Loading state ── */
.ccg-loading-state {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(125, 211, 252, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.34) 0%, rgba(5, 7, 10, 0.74) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ccg-loading-state[hidden] { display: none; }
.ccg-loading-state__panel {
  width: min(100%, 360px);
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 14, 18, 0.92) 0%, rgba(7, 9, 12, 0.96) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.ccg-loading-state__orbital {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}
.ccg-loading-state__ring,
.ccg-loading-state__ring::before,
.ccg-loading-state__ring::after {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}
.ccg-loading-state__ring {
  border: 1px solid rgba(125, 211, 252, 0.18);
  animation: ccgLoadingPulse 2.4s ease-in-out infinite;
}
.ccg-loading-state__ring::before,
.ccg-loading-state__ring::after {
  content: "";
  inset: 12px;
  border: 1px solid rgba(244, 114, 182, 0.18);
  animation: ccgLoadingPulse 2.4s ease-in-out infinite 0.4s;
}
.ccg-loading-state__ring::after {
  inset: 24px;
  border-color: rgba(250, 204, 21, 0.22);
  animation-delay: 0.8s;
}
.ccg-loading-state__core {
  position: absolute;
  inset: 32px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.88), rgba(125, 211, 252, 0.72) 45%, rgba(59, 130, 246, 0.28) 100%);
  box-shadow: 0 0 26px rgba(125, 211, 252, 0.32);
}
.ccg-loading-state__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 16px currentColor;
}
.ccg-loading-state__dot--a {
  color: #7dd3fc;
  animation: ccgLoadingOrbitA 2.8s linear infinite;
}
.ccg-loading-state__dot--b {
  color: #f472b6;
  animation: ccgLoadingOrbitB 2.1s linear infinite;
}
.ccg-loading-state__dot--c {
  color: #facc15;
  animation: ccgLoadingOrbitC 3.2s linear infinite;
}
.ccg-loading-state__copy {
  display: grid;
  gap: 8px;
}
.ccg-loading-state__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.01em;
}
.ccg-loading-state__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.72);
}
.ccg-loading-state__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ccg-loading-state__chips span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.62);
}
@keyframes ccgLoadingPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.45; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes ccgLoadingOrbitA {
  from { transform: rotate(0deg) translateX(42px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(42px) rotate(-360deg); }
}
@keyframes ccgLoadingOrbitB {
  from { transform: rotate(110deg) translateX(28px) rotate(-110deg); }
  to { transform: rotate(470deg) translateX(28px) rotate(-470deg); }
}
@keyframes ccgLoadingOrbitC {
  from { transform: rotate(220deg) translateX(36px) rotate(-220deg); }
  to { transform: rotate(580deg) translateX(36px) rotate(-580deg); }
}

/* ── Card — v3 Masonry Premium ── */
.ccg-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.35s var(--ccg-ease);
  will-change: transform, opacity;
  opacity: 0;
  animation: ccgCardIn 0.5s var(--ccg-ease) forwards;
}

@keyframes ccgCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stagger */
.ccg-card:nth-child(1)  { animation-delay: 0s; }
.ccg-card:nth-child(2)  { animation-delay: .04s; }
.ccg-card:nth-child(3)  { animation-delay: .08s; }
.ccg-card:nth-child(4)  { animation-delay: .12s; }
.ccg-card:nth-child(5)  { animation-delay: .16s; }
.ccg-card:nth-child(6)  { animation-delay: .20s; }
.ccg-card:nth-child(7)  { animation-delay: .24s; }
.ccg-card:nth-child(8)  { animation-delay: .28s; }
.ccg-card:nth-child(n+9){ animation-delay: .30s; }

.ccg-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(139, 92, 246, 0.03);
  z-index: 2;
}

/* Top glow line on hover */
.ccg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--ccg-accent-glow) 50%, transparent 90%);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ccg-card:hover::before { opacity: 1; }

/* ── Card media ── */
.ccg-card__media {
  position: relative;
  overflow: hidden;
  background: var(--ccg-surface);
}

.ccg-card__image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: transform 0.5s var(--ccg-ease), opacity 0.4s ease;
  will-change: transform, opacity;
}

.ccg-card__image.ccg-loaded,
video.ccg-card__image {
  opacity: 1;
}

.ccg-card:hover .ccg-card__image {
  transform: scale(1.04);
}

.ccg-card__image--placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #0e0e14 0%, #161622 100%);
  opacity: 1;
}

/* ── Overlay ── */
.ccg-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.5) 65%,
    rgba(0, 0, 0, 0.9) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.ccg-card:hover .ccg-card__overlay { opacity: 1; }

/* Expand icon hint */
.ccg-card__overlay::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") no-repeat center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.ccg-card:hover .ccg-card__overlay::before { opacity: 1; }

/* Bookmark button on hover */
.ccg-card__bookmark {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: all 0.2s ease;
  padding: 0;
}
.ccg-card:hover .ccg-card__bookmark { opacity: 1; }
.ccg-card__bookmark:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #fff;
  transform: scale(1.1);
}
.ccg-card__bookmark--saved {
  color: var(--ccg-accent-2);
}

.ccg-card__hover-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(8px);
  transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}
.ccg-card:hover .ccg-card__hover-meta {
  transform: translateY(0);
  background: rgba(18, 18, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
}

.ccg-card__hover-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

/* ── Gen-type badge ── */
.ccg-card__type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 3;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ccg-card__type-badge.model    { color: var(--ccg-gold); }
.ccg-card__type-badge.image    { color: #c084fc; }
.ccg-card__type-badge.video    { color: #f87171; }
.ccg-card__type-badge.animated { color: #34d399; }

/* ── Model-viewer inside cards ── */
.ccg-card__model-viewer {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
  --poster-color: transparent;
  background: var(--ccg-surface);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ccg-card__model-viewer.ccg-model-loaded {
  opacity: 1;
}
.ccg-card__model-viewer::part(default-progress-bar) { display: none; }
.ccg-card__model-viewer::part(default-ar-button) { display: none; }
/* Hide the poster once model is loaded so it doesn't flash underneath */
.ccg-card__model-viewer.ccg-model-loaded::part(default-poster) { opacity: 0; }

/* ── Card footer — glass panel ── */
.ccg-card__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 13px;
  background: rgba(12, 12, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ccg-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ccg-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccg-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ccg-card__status,
.ccg-card__metric {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.ccg-card__author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.ccg-card__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ccg-card__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.ccg-card__name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccg-card__time {
  font-size: 10px;
  color: var(--ccg-text-3);
  line-height: 1.2;
}

/* ── Tip button ── */
.ccg-card__tip-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}
.ccg-card__tip-btn:hover {
  background: rgba(251, 191, 36, 0.12);
  color: var(--ccg-gold);
  transform: scale(1.1);
}

/* ── Reactions row ── */
.ccg-card__reactions {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: center;
}

.ccg-reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.ccg-reaction:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.08);
}
.ccg-reaction--active {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.ccg-reaction__count {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  min-width: 8px;
}
.ccg-reaction--active .ccg-reaction__count {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Empty state ── */
.ccg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--ccg-text-3);
  text-align: center;
}
.ccg-empty p { margin: 0; font-size: 15px; color: var(--ccg-text-2); }
.ccg-empty small { font-size: 13px; color: var(--ccg-text-3); }

/* ── Load more / Infinite scroll sentinel ── */
.ccg-load-more-wrap {
  text-align: center;
  padding: 40px 0 16px;
}
.ccg-load-more-btn {
  padding: 12px 40px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: transparent;
  color: var(--ccg-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ccg-ease);
  position: relative;
  overflow: hidden;
}
.ccg-load-more-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.ccg-load-more-btn:hover::before { transform: translateX(100%); }
.ccg-load-more-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: var(--ccg-border-hover);
}
.ccg-load-more-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Share to community in card submenu ── */
.card-submenu__item--community { color: var(--ccg-accent-2); }
.card-submenu__item--community:hover { background: rgba(139, 92, 246, 0.1); color: #c4b5fd; }

/* ===========================================================
   DETAIL VIEW — Cinematic creation lightbox
   =========================================================== */
.ccg-detail {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ccg-detail[aria-hidden="false"],
.ccg-detail.ccg-detail--open {
  opacity: 1;
  pointer-events: auto;
}

.ccg-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.ccg-detail__panel {
  position: relative;
  display: flex;
  background: var(--ccg-surface);
  border: 1px solid var(--ccg-border);
  border-radius: 20px;
  max-width: 1060px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: ccgDetailIn 0.3s var(--ccg-ease);
}

@keyframes ccgDetailIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Close button */
.ccg-detail__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.ccg-detail__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.08);
}

/* ── Media side ── */
.ccg-detail__media {
  flex: 0 0 58%;
  max-width: 58%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #070709 0%, #050506 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 420px;
  position: relative;
  padding: 24px;
}
.ccg-detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.ccg-detail__media-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.05), transparent 45%),
    #050507;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.ccg-detail__media img,
.ccg-detail__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ccg-detail__media model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Info side ── */
.ccg-detail__info {
  flex: 1;
  padding: 30px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.035), transparent 32%),
    linear-gradient(180deg, rgba(12, 12, 16, 0.96), rgba(8, 8, 11, 0.98));
}

.ccg-detail__hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 2px;
}

/* Creator row */
.ccg-detail__creator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 0;
}

.ccg-detail__summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 40px rgba(0, 0, 0, 0.2);
}

.ccg-detail__meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ccg-detail__eyebrow {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ccg-text-3);
}

.ccg-detail__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ccg-detail__asset-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.76);
}

.ccg-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ccg-detail__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ccg-detail__stat strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.ccg-detail__stat span {
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ccg-text-3);
}

.ccg-detail__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ccg-detail__creator-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ccg-detail__creator-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccg-detail__creator-time {
  font-size: 11px;
  color: var(--ccg-text-3);
}

/* Type badge in detail */
.ccg-detail__type {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ccg-text-2);
  margin-bottom: 0;
}
.ccg-detail__type.model    { color: var(--ccg-gold); }
.ccg-detail__type.image    { color: #c084fc; }
.ccg-detail__type.video    { color: #f87171; }
.ccg-detail__type.animated { color: #34d399; }

.ccg-detail__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.016));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ccg-detail__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Prompt section */
.ccg-detail__prompt-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.ccg-detail__prompt-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ccg-text-3);
}

.ccg-detail__prompt-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ccg-text-2);
  background: rgba(255, 255, 255, 0.028);
  border-radius: 18px;
  padding: 14px 16px 14px 18px;
  margin: 0;
  position: relative;
}
.ccg-detail__prompt-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--ccg-accent);
  opacity: 0.4;
}

/* Reactions row — detail view */
.ccg-detail__reactions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.ccg-detail__reactions .ccg-reaction {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
}
.ccg-detail__reactions .ccg-reaction:hover {
  background: rgba(255, 255, 255, 0.085);
}
.ccg-detail__reactions .ccg-reaction__count { font-size: 11px; }

/* Action row */
.ccg-detail__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ccg-detail__action-btn {
  min-height: 46px;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ccg-ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ccg-detail__action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}
.ccg-detail__action-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

/* Remix button */
.ccg-detail__action-btn--remix {
  border-color: rgba(139, 92, 246, 0.2);
  color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.04);
}
.ccg-detail__action-btn--remix:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--ccg-accent-2);
}

.ccg-detail__no-prompt {
  font-size: 12px;
  color: var(--ccg-text-3);
  font-style: italic;
  margin: 0;
}

/* ===========================================================
   TIP MODAL
   =========================================================== */
.ccg-tip-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ccg-tip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ccg-tip-modal__box {
  position: relative;
  background: var(--ccg-surface-2);
  border: 1px solid var(--ccg-border);
  border-radius: 18px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: ccgModalIn 0.25s var(--ccg-ease);
}
@keyframes ccgModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.ccg-tip-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.ccg-tip-modal__header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}
.ccg-tip-modal__close {
  background: none;
  border: none;
  color: var(--ccg-text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.ccg-tip-modal__close:hover { color: #fff; }

.ccg-tip-modal__body {
  padding: 16px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ccg-tip-modal__subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--ccg-text-2);
  line-height: 1.4;
}

.ccg-tip-modal__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ccg-tip-amount {
  padding: 12px 6px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ccg-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.ccg-tip-amount:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--ccg-gold);
}
.ccg-tip-amount--active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--ccg-gold);
}

.ccg-tip-modal__footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px 18px;
  justify-content: flex-end;
}
.ccg-tip-modal__cancel {
  padding: 9px 20px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: transparent;
  color: var(--ccg-text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.ccg-tip-modal__cancel:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }

.ccg-tip-modal__submit {
  padding: 9px 22px;
  border-radius: var(--ccg-radius-sm);
  border: none;
  background: var(--ccg-gold);
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ccg-tip-modal__submit:hover { background: #f59e0b; }
.ccg-tip-modal__submit:disabled { opacity: 0.35; cursor: not-allowed; }

.ccg-tip-modal__status {
  text-align: center;
  font-size: 13px;
  padding: 0 20px 12px;
  min-height: 18px;
  margin: 0;
}
.ccg-tip-modal__status--ok    { color: #34d399; }
.ccg-tip-modal__status--error { color: #f87171; }

/* ===========================================================
   COMMUNITY SHARE MODAL
   =========================================================== */
.ccg-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ccg-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ccg-share-modal__box {
  position: relative;
  background: var(--ccg-surface-2);
  border: 1px solid var(--ccg-border);
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  animation: ccgModalIn 0.25s var(--ccg-ease);
}

.ccg-share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.ccg-share-modal__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.ccg-share-modal__close {
  background: none;
  border: none;
  color: var(--ccg-text-3);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.ccg-share-modal__close:hover { color: #fff; }

.ccg-share-modal__thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  margin-top: 14px;
}

.ccg-share-modal__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ccg-share-modal__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ccg-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: -4px;
}
.ccg-share-modal__input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.ccg-share-modal__input:focus { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08); }

.ccg-share-modal__check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ccg-text-2);
  cursor: pointer;
}
.ccg-share-modal__check-row input[type="checkbox"] {
  accent-color: var(--ccg-accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ccg-share-modal__prompt-preview {
  font-size: 12px;
  color: var(--ccg-text-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccg-share-modal__footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  justify-content: flex-end;
}
.ccg-share-modal__cancel {
  padding: 10px 22px;
  border-radius: var(--ccg-radius-sm);
  border: 1px solid var(--ccg-border);
  background: transparent;
  color: var(--ccg-text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.ccg-share-modal__cancel:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }

.ccg-share-modal__submit {
  padding: 10px 26px;
  border-radius: var(--ccg-radius-sm);
  border: none;
  background: var(--ccg-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.ccg-share-modal__submit:hover { background: #7c3aed; }
.ccg-share-modal__submit:disabled { opacity: 0.4; cursor: not-allowed; }

.ccg-share-modal__status {
  text-align: center;
  font-size: 13px;
  padding: 0 20px 14px;
  min-height: 20px;
  margin: 0;
}
.ccg-share-modal__status--ok    { color: #34d399; }
.ccg-share-modal__status--error { color: #f87171; }

/* ===========================================================
   FLOATING ACTION BUTTON — Quick Share
   =========================================================== */
.ccg-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: var(--ccg-accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(139, 92, 246, 0.15) inset;
  transition: all 0.3s var(--ccg-ease);
  padding: 0;
}
.ccg-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 12px 40px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.2) inset;
  background: #7c3aed;
}

.ccg-fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--ccg-border);
  color: var(--ccg-text-2);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ccg-fab:hover .ccg-fab__tooltip { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* COMMUNITY COMMENTS                                                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

.ccg-comments {
  margin-top: 6px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.ccg-comments__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ccg-comments__title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ccg-comments__count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 0;
  border-radius: 999px;
  font-size: 10px;
  color: #8a8a8a;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  background: transparent;
}

.ccg-comments__count-avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
}

.ccg-comments__count-avatar {
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(12, 12, 16, 0.96);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ccg-comments__count-avatar:first-child {
  margin-left: 0;
}

.ccg-comments__count-avatar--empty {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}

.ccg-comments__count-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.ccg-comments__count-copy strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ccg-comments__count-copy span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Composer */
.ccg-comments__composer {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.ccg-comments__input {
  flex: 1;
  background: rgba(255,255,255,0.025);
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 13px;
  outline: none;
  transition: background 0.15s;
}
.ccg-comments__input:focus {
  background: rgba(255,255,255,0.05);
}
.ccg-comments__input::placeholder {
  color: #555;
}
.ccg-comments__submit {
  min-width: 72px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 14px;
  color: #f5f7fb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ccg-comments__submit:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
}
.ccg-comments__submit:disabled {
  opacity: 0.3;
  cursor: default;
}
.ccg-comments__char-count {
  font-size: 10px;
  color: #555;
  text-align: right;
  min-height: 14px;
  margin-bottom: 6px;
}

/* Comments list */
.ccg-comments__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  padding-top: 8px;
}
.ccg-comments__loading,
.ccg-comments__empty {
  text-align: center;
  color: #555;
  font-size: 12px;
  padding: 20px 0;
}

/* Single comment */
.ccg-comment {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.ccg-comment:hover {
  background: rgba(255,255,255,0.045);
}
.ccg-comment__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}
.ccg-comment__content {
  flex: 1;
  min-width: 0;
}
.ccg-comment__header {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.ccg-comment__name {
  font-size: 12px;
  font-weight: 600;
  color: #ccc;
}
.ccg-comment__badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ccg-comment__badge--creator {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.25);
}
.ccg-comment__badge--you {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.ccg-comment__time {
  font-size: 10px;
  color: #555;
}
.ccg-comment__body {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.45;
  word-break: break-word;
  margin: 0;
}
.ccg-comment__actions {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}
.ccg-comment:hover .ccg-comment__actions {
  opacity: 1;
}
.ccg-comment__action {
  background: none;
  border: none;
  color: #666;
  font-size: 10px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
  transition: color 0.15s;
}
.ccg-comment__action:hover {
  color: #aaa;
}
.ccg-comment__action--delete:hover {
  color: #f87171;
}

/* Edit inline */
.ccg-comment__edit-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}
.ccg-comment__edit-input {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 12px;
}

/* Card comment count badge */
.ccg-card__comment-count {
  font-size: 11px;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: default;
}
