/* ==========================================================================
   components.css — Reusable Component Styles for Gold Buyers
   Extends styles.css (base variables & reset)
   ========================================================================== */


/* ==========================================================================
   1. PAGE HERO (Inner Pages)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.18) 0%, rgba(10, 14, 23, 0.92) 60%),
    linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  font-size: 0.875rem;
  color: var(--gray-500);
  position: relative;
}

.page-hero .breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero .breadcrumb li + li::before {
  content: '/';
  color: var(--gray-500);
}

.page-hero .breadcrumb a {
  color: var(--gray-400);
  transition: var(--transition);
}

.page-hero .breadcrumb a:hover {
  color: var(--gold);
}

.page-hero .breadcrumb .current {
  color: var(--gold);
}

/* Breadcrumb separator (nav-style breadcrumbs) */
.breadcrumb .separator {
  color: var(--gray-500);
  margin: 0 6px;
  font-size: 0.75rem;
  opacity: 0.6;
  user-select: none;
}

/* Page description (subtitle under page hero h1) */
.page-description {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.7;
  position: relative;
}

/* WhatsApp CTA button */
.btn-whatsapp {
  background: #25d366 !important;
  color: var(--white) !important;
  border: none;
}

.btn-whatsapp:hover {
  background: #1fb855 !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 20px 48px;
    min-height: 240px;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .page-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 110px 16px 40px;
    min-height: 200px;
  }
}


/* ==========================================================================
   2. MEGA DROPDOWN MENU
   ========================================================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-trigger i,
.nav-dropdown-trigger svg {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger i,
.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: 12px 0;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-dropdown-content a:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  padding-left: 24px;
}

/* Mega menu — multi-column layout */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 800px;
  max-width: 95vw;
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow), 0 0 60px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 1000;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-column h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.mega-menu-column a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: var(--transition);
}

.mega-menu-column a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.mega-menu-column a i {
  width: 18px;
  text-align: center;
  color: var(--gold-dark);
}

@media (max-width: 768px) {
  .mega-menu {
    grid-template-columns: 1fr;
    width: 100%;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 12px 16px;
  }

  .nav-dropdown:hover .mega-menu {
    transform: none;
  }
}


/* ==========================================================================
   3. TRUST BAR
   ========================================================================== */

.trust-bar {
  background: var(--dark-2);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  padding: 18px 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.trust-item i,
.trust-item svg {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-item span {
  font-weight: 500;
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .trust-bar-inner {
    gap: 20px;
  }

  .trust-item {
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   4. PRICE TICKER BAR
   ========================================================================== */

.price-ticker-bar {
  background: linear-gradient(90deg, var(--dark-2) 0%, rgba(26, 35, 50, 0.98) 50%, var(--dark-2) 100%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  padding: 7px 0;
  font-size: 0.8rem;
  position: relative;
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
}

.ticker-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-container::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--gray-400);
}

.ticker-label {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
}

.ticker-price {
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.ticker-unit {
  color: var(--gray-500);
  font-size: 0.7rem;
}

.ticker-change {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.ticker-change.up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.ticker-change.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.ticker-divider {
  color: var(--dark-4);
  font-size: 0.7rem;
  opacity: 0.5;
  user-select: none;
}

.ticker-update {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 4px;
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: tickerPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
  .ticker-container {
    justify-content: flex-start;
    gap: 20px;
    padding: 0 8px;
  }

  .ticker-label {
    font-size: 0.7rem;
  }

  .ticker-update {
    display: none;
  }
}


/* ==========================================================================
   5. INFO CARDS
   ========================================================================== */

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  opacity: 0;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--gold);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
}


/* ==========================================================================
   6. SPEC TABLE
   ========================================================================== */

.spec-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.spec-table thead {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
}

.spec-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.spec-table td {
  padding: 13px 20px;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-table tbody tr {
  transition: var(--transition);
}

.spec-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.spec-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.04);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .spec-table th,
  .spec-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}


/* ==========================================================================
   7. BLOG CARDS
   ========================================================================== */

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: var(--shadow-gold);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 4px;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: var(--transition);
}

.blog-card:hover .blog-card-body h3 {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   8. FAQ ACCORDION
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(201, 168, 76, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition);
}

.faq-item.active .faq-question-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}


/* ==========================================================================
   9. REVIEW CARDS
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: rgba(201, 168, 76, 0.18);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-stars i,
.review-stars svg {
  color: var(--gold);
  font-size: 0.9rem;
}

.review-stars .empty {
  color: var(--dark-4);
}

.review-text {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}

.review-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}

.review-author-info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Rating overview */
.rating-overview {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.rating-overview-score {
  text-align: center;
  flex-shrink: 0;
}

.rating-overview-score .big-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.rating-overview-score .review-stars {
  justify-content: center;
  margin: 10px 0 6px;
}

.rating-overview-score .total-reviews {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.rating-overview-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.rating-bar-row .label {
  width: 50px;
  color: var(--gray-400);
  text-align: right;
  flex-shrink: 0;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--dark-4);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.rating-bar-row .count {
  width: 36px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .rating-overview {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}


/* ==========================================================================
   10. CALCULATOR WIDGET
   ========================================================================== */

.calc-widget {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.calc-widget h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.calc-field {
  margin-bottom: 18px;
}

.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.calc-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.calc-result {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.calc-result-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.calc-result-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.calc-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 16px;
}

.calc-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}


/* ==========================================================================
   11. CHART CONTAINER
   ========================================================================== */

.chart-container {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--white);
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeframe-btns {
  display: flex;
  background: var(--dark-2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.timeframe-btns button {
  padding: 6px 14px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.timeframe-btns button:hover {
  color: var(--white);
}

.timeframe-btns button.active {
  background: var(--gold);
  color: var(--dark);
}

.currency-selector {
  padding: 6px 12px;
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-sm);
  color: var(--gray-300);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%239ca3af' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.currency-selector:focus {
  border-color: var(--gold);
}

.chart-area {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  min-height: 250px;
}

.chart-area canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 600px) {
  .chart-container {
    padding: 16px;
  }

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-area {
    aspect-ratio: 1.4 / 1;
    min-height: 200px;
  }
}


/* ==========================================================================
   12. NEWSLETTER POPUP
   ========================================================================== */

.newsletter-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.newsletter-popup.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-content {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.newsletter-popup.active .newsletter-content {
  transform: translateY(0) scale(1);
}

.newsletter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--dark-4);
  color: var(--gray-400);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.newsletter-close:hover {
  background: var(--gold);
  color: var(--dark);
}

.newsletter-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-content p {
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--gold-light);
}

@media (max-width: 500px) {
  .newsletter-content {
    padding: 36px 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}


/* ==========================================================================
   13. COOKIE CONSENT
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-3);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 18px 24px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-400);
  min-width: 200px;
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--dark);
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--gray-400);
  border: 1px solid var(--dark-4);
}

.cookie-btn-settings:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   14. CATEGORY CARDS
   ========================================================================== */

.category-cards-grid,
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: var(--shadow-gold);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.85) 100%);
  pointer-events: none;
}

.category-card-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
  width: 100%;
}

.category-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 6px;
}

.category-card-body p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.category-card-count {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
}


/* ==========================================================================
   15. TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 32px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 32px);
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--dark);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

.timeline-content {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-content .year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }
}


/* ==========================================================================
   16. SIDEBAR (Blog)
   ========================================================================== */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--dark-3);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.sidebar-widget ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.sidebar-widget ul li a .count {
  font-size: 0.8rem;
  color: var(--gray-500);
  background: var(--dark-4);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sidebar search */
.sidebar-search {
  display: flex;
  gap: 8px;
}

.sidebar-search input {
  flex: 1;
  padding: 10px 14px;
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.sidebar-search input:focus {
  border-color: var(--gold);
}

.sidebar-search button {
  padding: 10px 14px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-search button:hover {
  background: var(--gold-light);
}

/* Sidebar tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tags a {
  font-size: 0.8rem;
  color: var(--gray-400);
  background: var(--dark-2);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--dark-4);
  transition: var(--transition);
}

.sidebar-tags a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 968px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}


/* ==========================================================================
   17. SHARE BUTTONS
   ========================================================================== */

.share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-btns-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-right: 4px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--dark-4);
  background: var(--dark-3);
  color: var(--gray-400);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.share-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  border-color: #1877f2;
  color: #1877f2;
}

.share-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.12);
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.linkedin:hover {
  background: rgba(10, 102, 194, 0.12);
  border-color: #0a66c2;
  color: #0a66c2;
}

.share-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  color: #25d366;
}

.share-btn.email:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}


/* ==========================================================================
   18. PRICING TABLE
   ========================================================================== */

.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.pricing-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-table td {
  padding: 14px 20px;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-table tbody tr {
  background: var(--dark-3);
  transition: var(--transition);
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--dark-2);
}

.pricing-table tbody tr:hover {
  background: rgba(201, 168, 76, 0.06);
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--white);
}

.pricing-table .price-cell {
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.pricing-table .action-cell {
  text-align: right;
}

.pricing-table .action-cell a {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.pricing-table .action-cell a:hover {
  background: var(--gold);
  color: var(--dark);
}

@media (max-width: 600px) {
  .pricing-table th,
  .pricing-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}


/* ==========================================================================
   UTILITY: Section Spacing
   ========================================================================== */

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--white);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  margin: 16px auto 0;
  border-radius: 2px;
}
