@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&family=Montserrat:wght@400;700&display=swap');

/* Main Banner */
.banner {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner h1 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.banner p {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.btn-banner {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #ff9900;
}

/* Main Banner */
@media (max-width: 1024px) {
    .banner {
        height: 50vh; /* Reduce height on tablets */
    }

    .banner h1 {
        font-size: 36px; /* Adjust text size */
    }

    .banner p {
        font-size: 20px;
    }

    .btn-banner {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 50vh; /* Reduce height on mobile */
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .btn-banner {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
  
/***************************************************
 * MARKET EVALUATION SECTION STYLES
 ***************************************************/

/* Main Container */
.market-analysis {
  background: #ffffff;
  padding: 4.5rem 0 5rem;
  position: relative;
}

/* Constrain width and add horizontal padding */
.market-analysis .container {
  width: min(92%, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .market-analysis .container { padding: 0 16px; }
}

/* gold divider line same as About page */
.market-analysis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

/* Bottom divider under the action buttons */
.market-analysis::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

/* Reusable gold divider element */
.gold-divider {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
  border-radius: 2px;
  margin: 18px 0 22px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #000;
  margin-bottom: 0.6rem;
}
.section-title .accent { color: #ffcc00; }

.section-subtext { color: rgba(0,0,0,0.65); font-size: 1.05rem; }

.highlight { color: #000; font-weight: 600; }

/* Grid Layout */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 1200px) {
  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1201px) {
  .analysis-grid {
    gap: 2.5rem;
  }
}

/* Common Card Styles */
.analysis-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 2rem 1.5rem 2rem; /* reduced bottom padding */
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.analysis-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  border-color: rgba(255,204,0,0.25);
}

/* Keep card steady when hovering buttons inside it to prevent perceived background movement */
.analysis-card:has(.insight-btn:hover),
.analysis-card:has(.insight-actions:hover) {
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(0,0,0,0.06) !important;
}

/* Price Trajectory – visual refinements */
.trend-card { 
  background: #ffffff;
  position: relative;
}

.trend-card .card-header {
  margin-bottom: 0.85rem; /* a bit tighter like the mock */
  position: relative;
  padding-bottom: 0.75rem;
}

/* Subtle separator under the header */
.trend-card .card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}

/* Make chips feel like soft pills, active with subtle gold fill */
.trend-card .time-filter { gap: 0.6rem; }
.trend-card .time-filter button {
  padding: 0.42rem 1rem;
  height: 36px;
  min-width: 48px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 204, 0, 0.35);
  background: #ffffff;
  color: #666;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.trend-card .time-filter button:hover {
  border-color: rgba(255, 204, 0, 0.6);
  background: rgba(255, 204, 0, 0.08);
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.trend-card .time-filter button.active {
  background: linear-gradient(135deg, #ffcc00 0%, #ffdb4d 100%);
  border-color: #ffcc00;
  color: #000;
  font-weight: 700;
  box-shadow: 
    0 3px 10px rgba(255, 204, 0, 0.3),
    inset 0 1px 2px rgba(255,255,255,0.4);
  transform: translateY(0);
}
.trend-card .time-filter button.active:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(255, 204, 0, 0.4),
    inset 0 1px 2px rgba(255,255,255,0.4);
}

/* Chart backplate: subtle warm backdrop with gentle inset */
.trend-card .chart-container {
  height: 280px; /* larger graph area */
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px 12px 12px 12px;
  box-shadow: 
    inset 0 1px 3px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

/* Subtle accent line at top of chart */
.trend-card .chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.3), transparent);
}

@media (min-width: 769px) and (max-width: 1200px) {
  .trend-card .chart-container { height: 240px; }
}

@media (max-width: 768px) {
  .trend-card .chart-container { height: 220px; }
}

/* Annotations: cleaner colors and soft pill */
.trend-card .chart-annotation {
  margin-top: 0.75rem; /* reduced from 1.1rem */
  margin-bottom: 0; /* remove bottom margin */
  display: flex;
  flex-direction: column; /* stack into two rows */
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem; /* tighter gap */
}

.peak-marker { 
  color: #ffcc00; 
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(255, 204, 0, 0.2);
}
.growth-badge {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  color: #000;
  border: 1.5px solid rgba(0,0,0,0.12);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  letter-spacing: 0.01em;
}

/* Market Activity Indicator */
.market-activity {
  position: absolute;
  bottom: 36px; /* moved up to center in the empty space */
  left: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98); /* more opaque for better readability */
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.label-text {
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.activity-value {
  color: #ffcc00;
  font-weight: 700;
  font-size: 0.75rem;
}

.activity-bar-wrapper {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.activity-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffcc00 0%, #ffd700 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
  position: relative;
}

.activity-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 999px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Time Filter Buttons */
.time-filter {
  display: flex;
  gap: 0.5rem;
}

.time-filter button {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,204,0,0.35);
  background: #fff;
  color: #7a6b00;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 45px; /* consistent sizing */
}

.time-filter button.active {
  background: rgba(255, 204, 0, 0.15);
  border-color: #ffcc00;
  color: #614f00;
  box-shadow: inset 0 0 0 1.5px rgba(255,204,0,0.3);
}

/* Chart Containers */
.chart-container {
  position: relative;
  height: 300px;
}

/* Trend Annotations */
.chart-annotation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.peak-marker { color: #ffcc00; }

.growth-badge {
  background: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  font-size: 0.85rem;
}

/* Coin Spotlight */
.coin-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coin-display {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  perspective: 1000px;
}

.coin-display::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  filter: blur(6px);
  z-index: 0;
}

.auto-spin-coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: constantSpin 10s infinite linear;
}

/* Pause rotation and slightly scale on hover */
.auto-spin-coin:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

/* Also pause when hovering anywhere over the coin container (including the img) */
.coin-display:hover .auto-spin-coin,
.coin-display:focus-within .auto-spin-coin {
  animation-play-state: paused;
  transform: scale(1.05);
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden; /* clip to perfect circle to avoid any outside halo */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.coin-face.reverse {
  transform: rotateY(180deg);
}

.coin-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: transparent; /* no white fill behind the coin */
  /* Zoom the image slightly so any white margins in the source are cropped out */
  transform: scale(1.08);
  transition: transform 0.25s ease;
  /* Helps reduce visible white halos on non-white backgrounds */
  mix-blend-mode: multiply;
}
.coin-face img:hover {
  transform: scale(1.1);
}

@keyframes constantSpin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Coin Metadata */
.specimen-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-around;
  font-size: 0.9rem;
  color: #666;
  width: 100%;
  gap: 5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meta-item span:first-child {
  margin-bottom: 0.25rem;
}

/* Market Stats */
.market-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-top: 5rem;
  width: 100%;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  padding: 1rem 2.5rem; /* Increased from 0.75rem 2rem */
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease;
  min-width: 100px;
  font-size: 0.95rem; /* Slightly larger text */
}

.stat-pill.highlight {
  background: #fff3cd;
}

.stat-pill:hover {
  background: #fffcf2;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-caption {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Distribution Card */
.distribution-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.chart-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-chart-container {
  position: relative;
  width: 240px; /* was 220px */
  height: 240px; /* was 220px */
  margin: 0 auto;
}

.chart-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffcc00;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.color-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.auction .color-swatch { background: #ffcc00; }
.private .color-swatch { background: rgba(0,0,0,0.2); }

/* Volume Indicator */
.volume-indicator {
  margin-top: 1.25rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.4rem;
  position: relative;
}

.volume-bar {
  height: 8px;
  background: #ffcc00;
  border-radius: 999px;
  width: 65%;
  position: relative;
}

/* Action Buttons */
.insight-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  /* Push actions to the bottom of the card regardless of content height */
  margin-top: auto;
  padding-top: 1rem; /* consistent breathing room from content above */
}

.insight-btn {
  display: inline-block;
  padding: 12px 22px;
  background: #ffcc00;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent; /* reserve space to avoid layout shift on hover */
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.insight-btn:hover {
  background: white;
  color: #ffcc00;
  border: 1px solid #ffcc00;
}

.insight-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Overlay and Tooltip */
.contextual-tooltip {
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.chart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22), inset 0 0 0 1.5px #000;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.chart-overlay.active {
  display: flex;
}

.overlay-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  width: 90%;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .analysis-grid {
    gap: 1.5rem;
  }

  .coin-display {
    width: 200px;
    height: 200px;
  }

  .insight-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .insight-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/***************************************************
 * Authenticity Check SECTION STYLES
 ***************************************************/

.intro-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.service-description {
  color: #495057;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: center;
}

/* Authentication Features */
.authentication-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0;
  list-style: none;
}

.feature-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #ffcc00;
  transition: width 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
  width: 100%;
}

.icon-wrapper {
  background: rgba(255, 204, 0, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card .fas {
  font-size: 1.5rem;
  color: #ffcc00;
}

.feature-content {
  flex-grow: 1;
}

.feature-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.feature-description {
  color: #6c757d;
  font-size: 0.95rem;
  display: block;
  line-height: 1.5;
}

/* Certificate Display */
.certificate-showcase {
  padding: 2rem 0;
}

.certificate-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.certificate-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.certificate-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.certificate-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 18px;
  pointer-events: none;
  z-index: 2;
}

.certificate-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 20px 30px 60px rgba(0, 0, 0, 0.18);
}

.certificate-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
  transition: all 0.5s ease;
  filter: brightness(1.02);
}

.certificate-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.certificate-card:hover .certificate-hover {
  opacity: 1;
}

.magnify-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.magnify-btn .fas {
  font-size: 1.2rem;
  color: #333;
}

.magnify-btn .hover-text {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.magnify-btn:hover {
  background: white;
  transform: scale(1.1);
}

.magnify-btn:hover .hover-text {
  opacity: 1;
  transform: translateY(0);
}

.certificate-caption {
  text-align: center;
  color: #495057;
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
}

.certificate-caption::before,
.certificate-caption::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: rgba(0,0,0,0.1);
}

.certificate-caption::before {
  left: 30%;
}

.certificate-caption::after {
  right: 30%;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  position: relative;
}

.action-buttons::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

.btn:hover {
  background-color: #ffcc00;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

/* Lightbox Styling Enhancements */
.certificate-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
}

.certificate-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transition: opacity 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.2);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Media Queries for Responsive Design */

/* Small Phones (up to 480px) */
@media screen and (max-width: 480px) {
  .intro-content {
    margin: 0 auto 2rem;
    padding: 0 15px;
  }
  
  .service-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }
  
  .authentication-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
  }
  
  .feature-card {
    padding: 1.5rem 1.2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .certificate-container {
    max-width: 90%;
  }
  
  .certificate-card:hover {
    transform: translateY(-5px);
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn, .btn-secondary {
    width: 100%;
    max-width: 250px;
  }
  
  .lightbox-content {
    max-width: 95%;
  }
  
  .lightbox-close {
    top: -40px;
    right: 0;
    font-size: 28px;
  }
}

/* Medium Phones to Small Tablets (481px - 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
  .intro-content {
    margin: 0 auto 2.5rem;
    padding: 0 20px;
  }
  
  .service-description {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .authentication-features {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 0 20px;
  }
  
  .feature-card {
    padding: 1.8rem 1.5rem;
  }
  
  .certificate-container {
    max-width: 85%;
  }
  
  .action-buttons {
    gap: 1.2rem;
  }
  
  .btn, .btn-secondary {
    min-width: 180px;
  }
}

/* Tablets (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .authentication-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 30px;
  }
  
  .feature-card {
    padding: 1.8rem 1.2rem;
  }
  
  .feature-title {
    font-size: 1.2rem;
  }
  
  .certificate-container {
    max-width: 80%;
  }
  
  .certificate-card:hover {
    transform: translateY(-10px) rotateY(3deg);
  }
}

/* Small Desktops (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .authentication-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 40px;
  }
  
  .feature-card {
    padding: 2rem 1.2rem;
  }
}

/* Landscape Orientation Specific Adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .certificate-container {
    max-width: 50%;
  }
  
  .lightbox-image {
    max-height: 70vh;
  }
  
  .icon-wrapper {
    width: 45px;
    height: 45px;
  }
}

/* High-DPI Screens */
@media screen and (min-resolution: 192dpi), 
       screen and (min-resolution: 2dppx) {
  .certificate-img {
    filter: brightness(1.05) contrast(1.02);
  }
  
  .feature-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .feature-card {
    background: #222;
    border-color: rgba(255,255,255,0.08);
  }
  
  .feature-title {
    color: #f0f0f0;
  }
  
  .feature-description {
    color: #aaa;
  }
  
  .certificate-caption {
    color: #bbb;
  }
  
  .icon-wrapper {
    background: rgba(255, 204, 0, 0.2);
  }
  
  .btn, .btn-secondary {
    background-color: #ffcc00;
    color: #111;
  }
}

/* Print Styling */
@media print {
  .feature-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .certificate-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .action-buttons, 
  .magnify-btn {
    display: none;
  }
}

/* Footer parity with main page */
:root {
  --cta: white;
  --cta-strong: white;
  --cta-ink: #0f0f10;
}

.site-footer {
  background: linear-gradient(180deg, #0b0b0b 0%, #090909 40%, #070707 100%);
  border-top: none;
  color: #cfd2d6;
  padding: 60px 0 34px;
}
.site-footer .container { width: min(92%, 1200px); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; column-gap: 48px; row-gap: 28px; align-items: start; }
.footer-col .footer-title { font-family: 'Montserrat', Arial, sans-serif; color: var(--cta); font-size: 20px; margin-bottom: 12px; }
.brand .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brand .brand-logo { width: 36px; height: 36px; }
.brand .brand-name { font-size: 20px; font-weight: 700; color: #fff; }
.brand .brand-text { color: #b9bdc3; margin-bottom: 14px; text-align: left; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: grey; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #ffcc00; outline: none; }
.newsletter-text { color: #b9bdc3; margin-bottom: 10px; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.newsletter-input { width: 100%; padding: 12px 14px; border-radius: 999px; border: 1px solid #ffcc00; background: rgba(255,255,255,0.04); color: #e9ecef; }
.newsletter-input::placeholder { color: #9aa0a6; }
.newsletter-btn { padding: 12px 22px; border-radius: 999px; border: 1.5px solid #ffcc00; background: transparent; color: #ffcc00; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.newsletter-btn:hover, .newsletter-btn:focus-visible { background:#ffcc00; color: black; outline: none; transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.footer-social { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }
.social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: grey; transition: all 0.3s ease; }
.social-link img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0.95); }
.social-link:hover { background: #ffcc00; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.social-link:hover img { filter: brightness(0.2); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; color: #9aa0a6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive */
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 40px; } .brand .brand-text { font-size: 14px; line-height: 1.5; } .footer-col .footer-title { font-size: 18px; } .newsletter-input { padding: 10px 14px; } }
@media (max-width: 767px) {
  .site-footer { padding: 40px 0 25px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 0 15px; }
  .brand .brand-row { justify-content: center; margin-bottom: 15px; }
  .brand .brand-text { text-align: center; font-size: 14px; line-height: 1.5; margin: 0 auto 10px; max-width: 290px; color: #b9bdc3; }
  .footer-col { margin-bottom: 0; padding-bottom: 5px; }
  .footer-col .footer-title { font-size: 17px; margin-bottom: 12px; color: white !important; }
  .footer-links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 0 auto 10px; }
  .footer-links li { display: inline-block; }
  .footer-links a { font-size: 14px; padding: 5px 10px; color: #aaa !important; display: inline-block; }
  .footer-links a:hover, .footer-links a:focus-visible { color: white !important; }
  .newsletter-text { font-size: 14px; max-width: 250px; margin: 0 auto 12px; }
  .newsletter-form { max-width: 280px; margin: 0 auto; grid-template-columns: 1fr; gap: 10px; }
  .newsletter-input { width: 100%; padding: 12px 15px; text-align: center; font-size: 14px; }
  .newsletter-btn { width: 100%; padding: 12px; font-size: 14px; margin-bottom: 15px; }
  .footer-social { margin: 5px auto 0; display: flex; justify-content: center; gap: 16px; }
  .social-link { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); }
  .social-link img { width: 20px; height: 20px; }
  .footer-bottom { margin-top: 25px; padding-top: 15px; }
  .copyright { font-size: 13px; color: #777; }
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .newsletter-form { grid-template-columns: 1fr; } }
@media (max-width: 380px) {
  .site-footer .container { width: 100%; padding: 0 10px; }
  .brand .brand-text { font-size: 13px; max-width: 260px; }
  .footer-links { gap: 8px; }
  .footer-links a { font-size: 13px; padding: 4px 8px; }
  .newsletter-form { max-width: 250px; }
  .newsletter-input { padding: 10px 15px; }
  .newsletter-btn { padding: 10px; }
  .social-link { width: 36px; height: 36px; }
  .social-link img { width: 18px; height: 18px; }
}

/* Match main page mobile footer layout exactly */
@media (max-width: 767px) {
  /* Safety: prevent overlays */
  .site-footer { overflow: visible; }
  .site-footer .container { width: min(94%, 640px); margin: 0 auto; }

  /* Two-column Explore/Policies; Brand+Newsletter full width */
  .footer-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 22px !important; padding: 0 16px !important; grid-auto-flow: row; align-items: start; }

  /* Reset any transforms/positioning */
  .footer-col, .footer-col * { position: static !important; transform: none !important; z-index: auto !important; }

  .footer-col.brand,
  .footer-col.newsletter { grid-column: 1 / -1 !important; }

  .footer-col[aria-label="Explore"],
  .footer-col[aria-label="Policies"] { text-align: center; }

  .footer-col[aria-label="Explore"] .footer-links,
  .footer-col[aria-label="Policies"] .footer-links { display: grid !important; gap: 10px !important; justify-items: center !important; margin: 0 auto !important; width: 100% !important; }

  .footer-col[aria-label="Explore"] .footer-links a,
  .footer-col[aria-label="Policies"] .footer-links a { display: inline-block !important; padding: 6px 0 !important; white-space: nowrap; }

  /* Newsletter: match main page sizing */
  .newsletter-text { font-size: 14px !important; max-width: 250px !important; margin: 0 auto 12px !important; }
  .newsletter-form { grid-template-columns: 1fr !important; max-width: 280px !important; margin: 0 auto !important; gap: 10px !important; }
  .newsletter-input, .newsletter-btn { width: 100% !important; }
  .newsletter-input { padding: 12px 15px !important; }
  .newsletter-btn { padding: 12px !important; font-size: 14px !important; margin-bottom: 15px !important; }
}

/* Very small devices: allow wrapping */
@media (max-width: 380px) {
  .footer-col[aria-label="Explore"] .footer-links a,
  .footer-col[aria-label="Policies"] .footer-links a { white-space: normal; }
}

/* 3D Coin Visualization Section */
#coin-3d-visualization {
  padding: 64px 0;
  color: #333;
  background-color: #ffffff; /* match Market Insights section */
}

#coin-3d-visualization .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

#coin-3d-visualization h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Intro Text */
.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.highlight-text {
  font-size: 24px;
  font-weight: 600;
  color: #8b0000;
  margin-bottom: 15px;
}

.intro-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Model Preview Container */
.model-preview {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(255, 204, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.model-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffcc00 0%, #ff9900 50%, #ffcc00 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 3D Preview Area - Enhanced */
.coin-model-container {
  width: 100%;
  height: 500px;
  position: relative;
  margin-bottom: 30px;
  background: radial-gradient(circle at center, #f9f9f9 0%, #ececec 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.coin-model-placeholder {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 35% 35%, #f4e8c1 0%, #d4c19c 50%, #b39c70 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25),
    inset 0 -5px 15px rgba(0, 0, 0, 0.15),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.coin-model-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 -5px 15px rgba(0, 0, 0, 0.15),
    inset 0 5px 15px rgba(255, 255, 255, 0.3);
}

.coin-rotate-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><circle cx="150" cy="150" r="125" fill="none" stroke="%23a38d5d" stroke-width="6" stroke-dasharray="25 12" opacity="0.6"/><circle cx="150" cy="150" r="105" fill="none" stroke="%23d4c19c" stroke-width="4" stroke-dasharray="20 10" opacity="0.4"/></svg>');
  background-size: cover;
  animation: rotate 20s linear infinite;
  opacity: 0.7;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.model-label {
  position: absolute;
  bottom: 20px;
  background-color: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  z-index: 10;
}

/* Canvas (hidden initially) */
.hidden {
  display: none !important;
}

#coin3DCanvas {
  border-radius: 15px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Upload Controls */
.upload-controls {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 204, 0, 0.15);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.upload-row {
  display: flex;
  gap: 40px;
  margin-bottom: 15px;
  justify-content: center;
}

.upload-box {
  flex: 0 0 auto;
  width: 180px;
  position: relative;
}

.upload-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: #5a3921;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: center;
}

.remove-image-btn {
  position: absolute;
  top: 25px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e57373;
  color: white;
  border: 2px solid white;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding: 0;
  font-weight: normal;
}

.remove-image-btn.hidden {
  display: none;
}

.file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.upload-preview {
  width: 180px;
  height: 180px;
  border: 3px dashed #d4c19c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: contain; /* ensure full image fits without cropping */
  background-repeat: no-repeat;
  background-position: center;
  background-position: center;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.upload-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.upload-preview:hover::before {
  opacity: 1;
  width: 120px;
  height: 120px;
}

.upload-preview:hover {
  border-color: #ffcc00;
  background-color: rgba(255, 204, 0, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.15);
}

.upload-icon {
  font-size: 36px;
  color: #d4c19c;
  font-weight: 300;
  transition: all 0.3s ease;
  z-index: 1;
}

.upload-preview:hover .upload-icon {
  color: #ffcc00;
  transform: scale(1.1);
}

.generate-btn {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  border-radius: 25px;
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
  position: relative;
}

.generate-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.generate-btn:hover:not(:disabled) {
  background-color: #ffcc00;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ffcc00;
  border-right: 6px solid #ff9900;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.processing-text {
  margin-top: 20px;
  font-weight: 700;
  color: #5a3921;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* 3D Model Controls */
.model-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 35px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 5;
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.control-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
  border-color: #ffcc00;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 204, 0, 0.4);
}

.control-btn.active {
  background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
  border-color: #ffcc00;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.control-btn:hover svg {
  transform: scale(1.1);
}

.control-btn.active svg {
  color: #000;
}

/* Error State */
.error-message {
  color: #d32f2f;
  font-weight: 700;
  margin-bottom: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-radius: 10px;
  border-left: 4px solid #d32f2f;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
}

.retry-btn {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: all 0.3s ease;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Section Header Enhancements */
#coin-3d-visualization {
  position: relative;
  padding: 80px 0;
}

#coin-3d-visualization h2 {
  font-size: 42px;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.intro-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.intro-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #coin-3d-visualization {
    padding: 40px 0;
  }
  
  #coin-3d-visualization h2 {
    font-size: 28px;
  }
  
  .highlight-text {
    font-size: 20px;
  }
  
  .model-preview {
    padding: 20px;
  }
  
  .coin-model-container {
    height: 350px; /* Adjusted for medium screens, increased from 250px */
  }
  
  .coin-model-placeholder {
    width: 220px; /* Adjusted for medium screens */
    height: 220px; /* Adjusted for medium screens */
  }
  
  /* Keep upload boxes side-by-side on mobile */
  .upload-controls .upload-row {
    flex-direction: row !important;
    gap: 16px !important;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .upload-controls .upload-box { width: 150px; }
  .upload-controls .upload-preview { width: 150px; height: 150px; background-size: contain !important; }
  .upload-controls label { font-size: 12px; margin-bottom: 8px; }
  .upload-controls .remove-image-btn { right: -8px; top: 20px; transform: scale(0.9); }
  
  .upload-preview {
    height: 100px;
  }
  
  .model-controls {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .control-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .model-preview {
    padding: 15px;
  }
  
  .upload-controls { padding: 15px; }
  /* Very small screens: still keep two boxes in one row by shrinking them more */
  .upload-controls .upload-row { gap: 12px !important; }
  .upload-controls .upload-box { width: 140px; }
  .upload-controls .upload-preview { width: 140px; height: 140px; }
  
  .coin-model-container {
    height: 280px; /* Adjusted for small screens, increased from 220px */
  }
  
  .coin-model-placeholder {
    width: 180px; /* Adjusted for small screens */
    height: 180px; /* Adjusted for small screens */
  }
  
  .model-controls {
    bottom: 15px;
  }
  
  .control-btn {
    width: 34px;
    height: 34px;
  }
}

/* Services Section */
.services {
  padding: 50px 20px;
  background-color: var(--background);
  color: white;
  text-align: center;
}


/* Match "Our Story" heading styling */
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffcc00;
}

.services p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-description {
    margin-bottom: 40px;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивна сітка */
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 12px; /* tighter spacing between elements */
    height: 100%;
    padding: 20px;
  background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: left;
  min-height: 280px; /* reduce card height to shrink empty space */
}

.service-item h3 {
  font-size: 24px;
  text-align: center;
  width: 100%;
  margin: 0; /* let gap control spacing */
}

.service-item p {
    font-size: 16px;
    color: #bbb;
  margin: 0; /* tighter spacing with gap */
}

/* Service Detail Buttons */
.btn-service {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
  /* Pin the button to the bottom so all cards align their CTAs */
  margin-top: auto;
  /* Lift it slightly from the very bottom for better breathing room */
  margin-bottom: 12px;
  align-self: center; /* center button horizontally */
}

.btn-service:hover {
    background-color: #ff9900;
}

/* Service Detail Sections */
.service-detail {
    padding: 60px 20px;
    background-color: #f4f4f4;
    color: #333;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  position: relative; /* allow top divider */
}

/* Gold divider between consecutive service sections */
.service-detail + .service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.service-detail h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.service-detail p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Us Buttons */
.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    text-align: center;
}

.btn-contact:hover {
    background-color: #ff9900;
}
