﻿/* app-detail.css - App Detail Page, Trust Badges, How-to-Install, Download Button, Reviews, Security, Top Charts, Share */

/* =======================================================================
   15. APP DETAIL PAGE
   ======================================================================= */

/* â”€â”€ 15e. App Info Table â”€â”€ */
.app-detail-header {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.app-detail-icon {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
}

.app-detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-detail-info {
  flex: 1;
}

.app-detail-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.app-detail-info .developer {
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
}

/* â”€â”€ 15b. Info Cards Grid â”€â”€ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.625rem;
  margin: 1.25rem 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted) / 0.5));
  border: 1px solid hsl(var(--border) / 0.6);
  text-align: center;
  transition: all 0.25s var(--spring);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.6), hsl(var(--primary) / 0.1));
  border-radius: 0.875rem 0.875rem 0 0;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.12), 0 2px 6px rgb(0 0 0 / 0.08);
  border-color: hsl(var(--primary) / 0.3);
}

.info-card .value {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--fg));
  background: linear-gradient(135deg, hsl(var(--fg)), hsl(var(--primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-card .label-text {
  font-size: 0.625rem;
  color: hsl(var(--muted-fg));
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.app-info-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.75rem;
}

.app-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.875rem 1rem;
  background: hsl(var(--muted) / 0.4);
  border-radius: 0.875rem;
  border: 1px solid hsl(var(--border) / 0.4);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.app-info-row:hover {
  background: hsl(var(--muted) / 0.7);
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.25);
}

.app-info-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-fg));
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--fg));
  word-break: break-word;
}

/* â”€â”€ 15c. Hero Background Blur â”€â”€ */
.app-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 380px;
  overflow: hidden;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.dark .app-hero-bg {
  opacity: 0.22;
}

.app-hero-bg img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: -15%;
  filter: blur(70px) saturate(180%);
  transform: scale(1.15);
}

.app-detail-container {
  position: relative;
  z-index: 10;
}

/* â”€â”€ 15d. Screenshot Gallery â”€â”€ */
.screenshot-container {
  position: relative;
}

.screenshot-container::before,
.screenshot-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.screenshot-container::before {
  left: 0;
  background: linear-gradient(to right, hsl(var(--bg)), transparent);
}

.screenshot-container::after {
  right: 0;
  background: linear-gradient(to left, hsl(var(--bg)), transparent);
}

.ss-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.9);
  backdrop-filter: blur(8px);
  color: hsl(var(--fg));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s var(--spring);
  box-shadow: var(--shadow-md);
}

.screenshot-container:hover .ss-arrow {
  opacity: 1;
}

.ss-arrow:hover {
  background: hsl(var(--card));
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.1);
}

.ss-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.ss-left {
  left: 0.5rem;
}

.ss-right {
  right: 0.5rem;
}

.screenshot-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
}

.screenshot-gallery img {
  height: 280px;
  width: auto;
  border-radius: 0.75rem;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid hsl(var(--border));
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
  scroll-snap-align: center;
}

.screenshot-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .ss-arrow {
    display: none;
  }

  .screenshot-container::before,
  .screenshot-container::after {
    display: none;
  }

  .screenshot-gallery {
    gap: 0.5rem;
    padding: 0.25rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .screenshot-gallery img {
    height: 200px;
    border-radius: 0.625rem;
  }
}

/* â”€â”€ 15a. App Detail Header â”€â”€ */
.app-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid hsl(var(--border) / 0.4);
  margin-bottom: 1.5rem;
  position: relative;
}

.adh-icon {
  width: 7.5rem;
  height: 7.5rem;
  min-width: 7.5rem;
  border-radius: 1.75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px hsl(var(--card)),
    0 0 0 5px hsl(var(--border)),
    0 12px 40px rgb(0 0 0 / 0.18);
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}

.adh-icon:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow:
    0 0 0 3px hsl(var(--card)),
    0 0 0 5px hsl(var(--primary) / 0.4),
    0 16px 50px rgb(0 0 0 / 0.22);
}

.adh-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adh-info {
  flex: 1;
  min-width: 0;
}

.adh-info h1 {
  text-align: left;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.adh-meta {
  flex-wrap: wrap;
}

.adh-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

@media (max-width: 640px) {
  .app-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 0 1.5rem;
  }

  .adh-icon {
    width: 5.5rem;
    height: 5.5rem;
    min-width: 5.5rem;
    margin: 0 auto;
    border-radius: 1.5rem;
    box-shadow:
      0 0 0 2px hsl(var(--card)),
      0 0 0 3.5px hsl(var(--border)),
      0 8px 28px rgb(0 0 0 / 0.14);
  }

  .adh-info h1 {
    text-align: center;
    font-size: 1.25rem !important;
    line-height: 1.3;
  }

  .adh-meta {
    justify-content: center;
    gap: 0.375rem;
  }

  .adh-actions {
    align-items: center;
    width: 100%;
  }

  .adh-actions .install-btn {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 44px;
  }

  .adh-actions .share-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  /* Info cards compact on small screens */
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
  }

  .info-card {
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
  }

  .info-card .value {
    font-size: 1rem;
  }

  .info-card .label-text {
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
  }

  /* App info table single column */
  .app-info-table {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .app-info-row {
    padding: 0.625rem 0.75rem;
  }

  .app-info-label {
    font-size: 0.6875rem;
  }

  .app-info-value {
    font-size: 0.8125rem;
  }

  /* Section headers tighter */
  .section {
    margin-bottom: 1.5rem;
  }

  .section-header {
    margin-bottom: 0.625rem;
  }

  .section-header h2 {
    font-size: 0.9375rem;
  }

  /* Hero bg smaller on mobile */
  .app-hero-bg {
    height: 260px;
  }

  .app-hero-bg img {
    filter: blur(50px) saturate(160%);
  }
}

/* ---- Extra small screens (< 380px) ---- */
@media (max-width: 380px) {
  .adh-icon {
    width: 4.5rem;
    height: 4.5rem;
    min-width: 4.5rem;
    border-radius: 1.25rem;
  }

  .adh-info h1 {
    font-size: 1.125rem !important;
  }

  .info-card .value {
    font-size: 0.875rem;
  }

  .info-card .label-text {
    font-size: 0.5rem;
  }
}

/* =======================================================================
   16. TRUST BADGES
   ======================================================================= */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.625rem;
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-badge:hover {
  transform: translateY(-1px);
}

.trust-badge--safe {
  background: hsl(142 76% 36% / 0.1);
  border-color: hsl(142 76% 36% / 0.25);
  color: hsl(142 76% 30%);
}

.trust-badge--secure {
  background: hsl(221 83% 53% / 0.08);
  border-color: hsl(221 83% 53% / 0.25);
  color: hsl(221 83% 45%);
}

.trust-badge--clean {
  background: hsl(38 92% 50% / 0.08);
  border-color: hsl(38 92% 50% / 0.25);
  color: hsl(38 92% 35%);
}

/* Dark mode trust badges */
.dark .trust-badge--safe { color: hsl(142 76% 55%); }
.dark .trust-badge--secure { color: hsl(221 83% 65%); }
.dark .trust-badge--clean { color: hsl(38 92% 60%); }

/* =======================================================================
   17. HOW TO INSTALL BANNER
   ======================================================================= */
.how-install-link {
  display: block;
  text-decoration: none;
  margin: 1.25rem 0;
}

.how-install-banner {
  background: linear-gradient(135deg, hsl(152 76% 36% / 0.1), hsl(221 83% 60% / 0.08));
  border: 1px solid hsl(152 76% 36% / 0.25);
  border-radius: 1rem;
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.how-install-banner:hover {
  box-shadow: 0 4px 20px hsl(152 76% 36% / 0.2);
  border-color: hsl(152 76% 36% / 0.45);
}

.hi-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(152 76% 38%), hsl(152 76% 28%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px hsl(152 76% 36% / 0.35);
  flex-shrink: 0;
}

.hi-body {
  flex: 1;
  min-width: 0;
}

.hi-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--fg));
  margin-bottom: 0.2rem;
}

.hi-devices {
  font-size: 0.8125rem;
  color: hsl(var(--muted-fg));
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hi-devices span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hi-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-size: 0.8125rem;
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .how-install-banner {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
    border-radius: 0.875rem;
  }

  .hi-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 0.625rem;
  }

  .hi-icon svg {
    width: 18px;
    height: 18px;
  }

  .hi-title {
    font-size: 0.8125rem;
  }

  .hi-devices {
    font-size: 0.6875rem;
    gap: 0.5rem;
  }

  .hi-arrow {
    font-size: 0.6875rem;
  }

  .hi-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* =======================================================================
   18. DOWNLOAD BUTTON SYSTEM
   ======================================================================= */

/* â”€â”€ 18a. Base Button & Hover â”€â”€ */
.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, hsl(152 76% 40%), hsl(152 76% 30%));
  background-size: 200% 200%;
  background-position: left center;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.5625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 130px;
  min-height: 40px;
  box-shadow:
    0 4px 15px hsl(152 76% 36% / 0.35),
    0 1px 3px hsl(152 76% 36% / 0.15);
  transition:
    background 0.4s ease,
    color 0.3s ease,
    transform 0.35s var(--spring),
    box-shadow 0.35s ease,
    min-width 0.4s var(--spring);
}

/* Shine sweep on hover */
.install-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.install-btn:hover:not(:disabled):not(.is-active)::after {
  left: 150%;
}

.install-btn:hover:not(:disabled):not(.is-active) {
  box-shadow:
    0 6px 24px hsl(152 76% 36% / 0.45),
    0 2px 8px hsl(152 76% 36% / 0.2);
  transform: translateY(-2px) scale(1.02);
  background-position: right center;
}
.install-btn:active:not(:disabled):not(.is-active) {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px hsl(152 76% 36% / 0.3);
}
.install-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

/* â”€â”€ 18b. Progress Bar â”€â”€ */
.install-btn .progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: hsl(var(--primary) / 0.15);
  transition: width 300ms ease-out;
  border-radius: inherit;
  pointer-events: none;
}

/* â”€â”€ 18b. Label â”€â”€ */
.install-btn .btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.25s, transform 0.25s var(--spring);
  z-index: 1;
}

/* â”€â”€ 18b. Percentage Text â”€â”€ */
.install-btn .dl-pct {
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: hsl(var(--primary));
  min-width: 2.25rem;
  text-align: center;
}

/* â”€â”€ 18c. Spinner â”€â”€ */
.install-btn .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  opacity: 0.9;
}

/* ============================================
   DOWNLOAD BUTTON STATES â€” Smooth Transitions
   ============================================ */

/* STATE: Preparing */
.install-btn.state-pending {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.12);
  transform: scale(0.96);
  animation: pendingPulse 1.5s ease-in-out infinite;
}
.install-btn.state-pending .spinner {
  border-color: hsl(var(--primary) / 0.25);
  border-top-color: hsl(var(--primary));
}

/* STATE: Downloading (ring + %) */
.install-btn.state-downloading {
  background: hsl(var(--card));
  color: hsl(var(--primary));
  box-shadow:
    0 0 0 2px hsl(var(--primary) / 0.2),
    0 4px 20px hsl(var(--primary) / 0.12),
    inset 0 0 0 1px hsl(var(--primary) / 0.06);
  min-width: 150px;
  animation: downloadingGlow 2s ease-in-out infinite;
}
.install-btn.state-downloading .progress-bar {
  background: linear-gradient(90deg, hsl(var(--primary) / 0.18), hsl(var(--primary) / 0.32), hsl(var(--primary) / 0.18));
  background-size: 200% 100%;
  animation: progressShine 1.5s ease-in-out infinite;
  height: 100%;
  border-radius: inherit;
}

/* STATE: Saving (installing) */
.install-btn.state-installing {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.15);
  animation: savingPulse 1s ease-in-out infinite;
}
.install-btn.state-installing .spinner {
  border-color: hsl(var(--primary) / 0.2);
  border-top-color: hsl(var(--primary));
}

/* STATE: Done âœ“ */
.install-btn.state-done {
  background: linear-gradient(135deg, hsl(152 76% 42%), hsl(152 76% 34%));
  color: #fff;
  box-shadow:
    0 4px 20px hsl(152 76% 36% / 0.45),
    0 1px 4px hsl(152 76% 36% / 0.2);
  transform: scale(1);
  animation: donePopIn 0.5s var(--spring);
}

/* STATE: Failed / Cancelled */
.install-btn.state-failed {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  box-shadow: 0 2px 8px hsl(var(--destructive) / 0.1);
}

/* ============================================
   CIRCULAR PROGRESS RING â€” Inside Button
   ============================================ */
.install-progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-progress-ring svg {
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 4px hsl(var(--primary) / 0.35));
}
.install-progress-ring .ring-bg {
  stroke: hsl(var(--primary) / 0.15);
}
.install-progress-ring .ring-fg {
  stroke: hsl(var(--primary));
  stroke-linecap: round;
  transition: stroke-dashoffset 400ms cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 2px hsl(var(--primary) / 0.5));
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Gentle pulse while preparing */
@keyframes pendingPulse {
  0%, 100% { box-shadow: 0 2px 8px hsl(var(--primary) / 0.1); }
  50% { box-shadow: 0 2px 16px hsl(var(--primary) / 0.25); }
}

/* Subtle outer glow while downloading */
@keyframes downloadingGlow {
  0%, 100% {
    box-shadow:
      0 0 0 2px hsl(var(--primary) / 0.15),
      0 4px 16px hsl(var(--primary) / 0.08);
  }
  50% {
    box-shadow:
      0 0 0 2px hsl(var(--primary) / 0.25),
      0 4px 24px hsl(var(--primary) / 0.18),
      0 0 40px hsl(var(--primary) / 0.06);
  }
}

/* Animated gradient shine on progress bar */
@keyframes progressShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Subtle pulse while saving */
@keyframes savingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Pop-in when download completes */
@keyframes donePopIn {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Checkmark draw animation */
@keyframes checkDraw {
  0% { stroke-dashoffset: 24; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.install-btn.state-done .check-icon {
  animation: checkDraw 0.5s ease-out 0.1s forwards;
}

/* Download progress wrapper */
.install-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =======================================================================
   19. REVIEWS
   ======================================================================= */
.review-card {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.review-card:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .star {
  color: hsl(var(--muted-fg) / 0.3);
  font-size: 1rem;
}

.review-stars .star.filled {
  color: #facc15;
}

.review-body {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-fg));
}

/* =======================================================================
   20. SECURITY INFO
   ======================================================================= */
.security-card {
  background: hsl(142 76% 36% / 0.05);
  border: 1px solid hsl(142 76% 36% / 0.15);
  border-radius: var(--radius);
  padding: 1rem;
}

.security-card.warning {
  background: hsl(0 84% 60% / 0.05);
  border-color: hsl(0 84% 60% / 0.15);
}

/* =======================================================================
   21. TOP CHARTS
   ======================================================================= */
.top-chart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  transition: background 0.15s;
  cursor: pointer;
  border-radius: var(--radius);
}

.top-chart-item:hover {
  background: hsl(var(--accent));
}

.top-chart-rank {
  width: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(var(--muted-fg));
}

/* =======================================================================
   22. SHARE BUTTONS
   ======================================================================= */
.share-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--fg));
  transition: all 0.15s;
  cursor: pointer;
}

.share-btn:hover {
  background: hsl(var(--accent));
}

