/**
 * Car Details Page - Glass Morphism Redesign
 * Modern animated backgrounds with floating orbs
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
.page-car-v2 {
  --cd-cyan: var(--teal-2, #00c8e6);
  --cd-teal: var(--teal, #18e1ff);
  --cd-purple: #a855f7;
  --cd-amber: #f59e0b;
  --cd-good: #41d79e;
  --cd-danger: #ef4444;
  --cd-muted: #9db2bf;
  --cd-glass-bg: rgba(15, 20, 30, 0.75);
  --cd-glass-border: rgba(255, 255, 255, 0.08);
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1420 50%, #0a1218 100%);
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.cd-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.cd-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: cdOrbFloat 25s ease-in-out infinite;
}

.cd-bg-orb--cyan {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--cd-cyan) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.cd-bg-orb--purple {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--cd-purple) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -8s;
}

.cd-bg-orb--amber {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cd-amber) 0%, transparent 70%);
  top: 60%;
  left: 40%;
  animation-delay: -16s;
}

@keyframes cdOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -40px) scale(1.08); }
  50% { transform: translate(-30px, 30px) scale(0.92); }
  75% { transform: translate(30px, 40px) scale(1.04); }
}

/* ============================================
   GRID OVERLAY
   ============================================ */
.cd-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  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;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* ============================================
   BACK BUTTON
   ============================================ */
.cd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cd-glass-border);
  border-radius: 999px;
  color: var(--cd-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.cd-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(-4px);
}

/* ============================================
   DEMO BANNER
   ============================================ */
.cd-demo-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--cd-glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 210, 211, 0.3);
  border-radius: 20px;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cd-demo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 211, 0.4), transparent);
}

.cd-demo-banner__indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cd-demo-banner__dot {
  position: relative;
  width: 12px;
  height: 12px;
}

.cd-demo-banner__dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cd-cyan);
  border-radius: 50%;
  animation: cdDemoPulse 2s ease-in-out infinite;
}

.cd-demo-banner__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cd-cyan);
  border-radius: 50%;
}

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

.cd-demo-banner__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.cd-demo-banner__title span {
  color: var(--cd-cyan);
}

.cd-demo-banner__desc {
  font-size: 0.875rem;
  color: var(--cd-muted);
  max-width: 400px;
}

.cd-demo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--cd-cyan);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cd-demo-banner__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 210, 211, 0.4);
}

/* ============================================
   HERO IMAGE SECTION
   ============================================ */
.cd-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cd-glass-bg);
  border: 1px solid var(--cd-glass-border);
  margin-bottom: 2rem;
}

.cd-hero__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cd-hero:hover .cd-hero__img {
  transform: scale(1.03);
}

.cd-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  pointer-events: none;
}

.cd-hero__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 10;
}

.cd-hero__qr {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 80px;
  height: 80px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.cd-hero__qr:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.cd-hero__qr canvas {
  width: 100%;
  height: 100%;
}

/* ============================================
   TITLE SECTION
   ============================================ */
.cd-title-section {
  padding: 1.5rem 0;
}

.cd-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.cd-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--cd-muted);
  font-weight: 500;
}

.cd-subtitle__divider {
  width: 4px;
  height: 4px;
  background: var(--cd-muted);
  border-radius: 50%;
}

/* ============================================
   ACTION BAR
   ============================================ */
.cd-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--cd-glass-border);
  border-bottom: 1px solid var(--cd-glass-border);
  margin-bottom: 2rem;
}

.cd-owner-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--cd-glass-border);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cd-owner-link:hover {
  opacity: 0.8;
}

.cd-owner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-purple), var(--cd-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}

.cd-owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-owner-name {
  color: var(--cd-muted);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-stats-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
  border-right: 1px solid var(--cd-glass-border);
}

.cd-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--cd-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.cd-stat svg {
  opacity: 0.7;
}

.cd-action-spacer {
  flex: 1;
}

/* Action Buttons */
.cd-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cd-action-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--cd-glass-border);
  color: var(--cd-muted);
}

.cd-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cd-action-btn--primary {
  background: var(--cd-amber);
  color: #000;
}

.cd-action-btn--primary:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.cd-action-btn--gradient {
  background: linear-gradient(135deg, var(--cd-purple), #6366f1);
  color: #fff;
}

.cd-action-btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.cd-action-btn--accent {
  background: var(--cd-cyan);
  color: #000;
}

.cd-action-btn--accent:hover {
  background: var(--cd-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 210, 211, 0.4);
}

.cd-action-btn--liked {
  color: var(--cd-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.cd-action-btn--liked svg {
  fill: var(--cd-danger);
}

/* ============================================
   GLASS PANELS
   ============================================ */
.cd-panel {
  background: var(--cd-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cd-glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cd-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.cd-panel__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--cd-muted);
}

.cd-panel__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   STATS GRID
   ============================================ */
.cd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cd-stats-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.cd-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cd-glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cd-stat-card:hover {
  border-color: var(--cd-cyan);
  background: rgba(0, 210, 211, 0.05);
}

.cd-stat-card__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cd-stat-card__label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-muted);
}

/* ============================================
   BUILD STORY
   ============================================ */
.cd-story {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
}

/* ============================================
   MODS LIST
   ============================================ */
.cd-mods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cd-mod-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.cd-mod-tag:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   OWNER SECTION
   ============================================ */
.cd-owner-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cd-owner-section__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cd-cyan), var(--cd-purple));
  border: 2px solid var(--cd-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 25px rgba(0, 210, 211, 0.3);
}

.cd-owner-section__info a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cd-owner-section__info a:hover {
  color: var(--cd-cyan);
}

.cd-owner-section__location {
  font-size: 0.8125rem;
  color: var(--cd-muted);
  margin-top: 0.25rem;
}

/* ============================================
   GALLERY
   ============================================ */
.cd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.cd-gallery-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cd-gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   COMMENTS
   ============================================ */
.cd-comment-form {
  margin-bottom: 2rem;
}

.cd-comment-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cd-glass-border);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  resize: none;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.cd-comment-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cd-comment-textarea:focus {
  outline: none;
  border-color: var(--cd-cyan);
  background: rgba(0, 210, 211, 0.03);
}

.cd-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--cd-cyan);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cd-comment-submit:hover {
  background: var(--cd-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 211, 0.3);
}

.cd-comment-guest {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--cd-glass-border);
  border-radius: 16px;
}

.cd-comment-guest p {
  color: var(--cd-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.cd-comment-guest a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cd-glass-border);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cd-comment-guest a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cd-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   SHARE MODAL
   ============================================ */
.cd-share-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cd-share-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cd-share-modal__content {
  width: 100%;
  max-width: 420px;
  background: var(--cd-glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--cd-glass-border);
  border-radius: 24px;
  padding: 2rem;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cd-share-modal.active .cd-share-modal__content {
  transform: scale(1);
}

.cd-share-modal__title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cd-share-modal__desc {
  font-size: 0.875rem;
  color: var(--cd-muted);
  margin-bottom: 2rem;
}

.cd-share-modal__qr {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.cd-share-modal__buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cd-share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cd-share-btn__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cd-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-muted);
  transition: all 0.2s ease;
}

.cd-share-btn:hover .cd-share-btn__icon {
  background: var(--cd-cyan);
  border-color: var(--cd-cyan);
  color: #000;
}

.cd-share-btn__label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-muted);
  transition: color 0.2s ease;
}

.cd-share-btn:hover .cd-share-btn__label {
  color: #fff;
}

.cd-share-modal__close {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cd-glass-border);
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cd-share-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   VERIFICATION SECTION
   ============================================ */
.cd-verification {
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.cd-verification--verified {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.cd-verification--pending {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.cd-verification--request {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cd-verification__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cd-verification__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-verification--verified .cd-verification__icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.cd-verification--pending .cd-verification__icon {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.cd-verification--request .cd-verification__icon {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.cd-verification__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.cd-verification__status {
  font-size: 0.875rem;
}

.cd-verification--verified .cd-verification__status { color: #22c55e; }
.cd-verification--pending .cd-verification__status { color: #eab308; }

.cd-verification__desc {
  font-size: 0.875rem;
  color: var(--cd-muted);
}

/* ============================================
   PERFORMANCE EVOLUTION
   ============================================ */
.cd-perf-section {
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.9), rgba(0, 0, 0, 0.7));
  border: 1px solid var(--cd-glass-border);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.cd-perf-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 210, 211, 0.1), transparent 70%);
  pointer-events: none;
}

.cd-perf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cd-perf-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-muted);
}

.cd-perf-title svg {
  color: var(--cd-cyan);
}

.cd-perf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 210, 211, 0.1);
  border: 1px solid rgba(0, 210, 211, 0.3);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-cyan);
}

.cd-perf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cd-perf-stat__label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-muted);
  margin-bottom: 0.25rem;
}

.cd-perf-stat__value {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.cd-perf-stat__value--highlight {
  color: var(--cd-cyan);
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.cd-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.cd-award {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cd-glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cd-award:hover {
  border-color: var(--cd-amber);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-4px);
}

.cd-award__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cd-award__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.cd-award__event {
  font-size: 0.6875rem;
  color: var(--cd-muted);
  margin-top: 0.25rem;
}

/* ============================================
   SIMILAR CARS
   ============================================ */
.cd-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.cd-similar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cd-glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cd-similar-card:hover {
  border-color: var(--cd-cyan);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cd-similar-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cd-similar-card__info {
  padding: 0.75rem;
}

.cd-similar-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-similar-card__owner {
  font-size: 0.6875rem;
  color: var(--cd-muted);
  margin-top: 0.25rem;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.cd-loading,
.cd-error {
  text-align: center;
  padding: 5rem 1rem;
}

.cd-loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--cd-glass-border);
  border-top-color: var(--cd-cyan);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: cdSpin 1s linear infinite;
}

@keyframes cdSpin {
  to { transform: rotate(360deg); }
}

.cd-loading__text,
.cd-error__text {
  color: var(--cd-muted);
  font-size: 0.9375rem;
}

.cd-error__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--cd-muted);
  opacity: 0.5;
}

.cd-error__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cd-error__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--cd-cyan);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cd-error__btn:hover {
  background: var(--cd-teal);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .cd-stats-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-perf-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cd-action-bar {
    justify-content: center;
  }

  .cd-owner-link,
  .cd-stats-group {
    border-right: none;
    padding-right: 0;
  }

  .cd-share-modal__buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cd-panel {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .cd-hero {
    border-radius: 16px;
  }

  .cd-perf-stat__value {
    font-size: 1.5rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden { display: none !important; }
.u-hidden { display: none !important; }
