/* Elegant World-Class Silver Price Website */

:root {
  --silver-primary: #C0C0C0;
  --silver-secondary: #b8860b;
  --silver-light: #f4e4bc;
  --silver-dark: #8b6914;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b7280;
  --background: #ffffff;
  --surface: #fafafa;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
}

/* Visibility Utilities */
.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: inline !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 54px;
  }
}

html {
  background: #b88818;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 25% 25%, rgba(192, 192, 192, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(192, 192, 192, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 24px;
}

/* Header */
.header {
  text-align: center;
  padding: 8px 20px 5px;
  background: linear-gradient(135deg,
      rgba(192, 192, 192, 0.9) 0%,
      rgba(192, 192, 192, 0.8) 25%,
      rgba(192, 192, 192, 0.9) 50%,
      rgba(192, 192, 192, 0.8) 75%,
      rgba(192, 192, 192, 0.9) 100%);
  background-size: 200% 200%;
  background-position: 30% 50%;
  background-position: 30% 50%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Floating Header (Transparent at top) */
.header.header-floating {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

/* Scrolled State (Solid Background) */
.header.header-floating.header-scrolled {
  background: linear-gradient(135deg,
      rgba(192, 192, 192, 0.9) 0%,
      rgba(192, 192, 192, 0.8) 25%,
      rgba(192, 192, 192, 0.9) 50%,
      rgba(192, 192, 192, 0.8) 75%,
      rgba(192, 192, 192, 0.9) 100%);
  background-size: 200% 200%;
  background-position: 30% 50%;
  box-shadow: var(--shadow-sm);
  /* position: sticky; */
}

/* Home Header - Transparent Overlay */
.header.header-home {
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header.header-home::before {
  display: none;
}

/* Hide Navigation and Burger Menu on Home Page */
.header.header-home .header-nav,
.header.header-home .burger-menu {
  display: none !important;
}

.header-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 15px;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  z-index: 1;
}

.logo-container {
  flex-shrink: 0;
  margin: 0 10px
}

.logo-image {
  max-width: 160px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Makes the logo white to contrast with the silver background */
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
}

.header-calc-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.header-calc-link svg {
  width: 16px;
  height: 16px;
  color: #FFD700;
  opacity: 0.9;
}

.header-calc-link:hover {
  transform: translateY(-1px);
}

.header-calc-link:hover svg {
  opacity: 1;
}

.header-calc-link.active {
  font-weight: 600;
}

.header-calc-link.active svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* Burger Menu */
.header-back-btn {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s ease;
  font-family: inherit;
}

.header-back-btn.hide-important {
  display: none !important;
}

.header-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.back-text {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.header-back-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 1000;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.98) 0%, rgba(192, 192, 192, 0.98) 100%);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-calc-link {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  /* Show mobile language switcher only on mobile */
  .mobile-lang-switcher {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Show back button and set orders */
  .header-back-btn {
    display: flex !important;
    align-items: center;
    gap: 2px;
    order: -1;
    margin-inline-end: 4px;
    padding: 4px 8px 4px 4px;
  }
  
  html[dir="rtl"] .header-back-btn {
    padding: 4px 4px 4px 8px;
  }

  /* Keep logo next to burger menu */
  .logo-link {
    order: 1;
    flex-grow: 0;
    margin-inline-end: auto;
  }

  .burger-menu {
    order: 0;
    margin: 0 8px 0 0;
  }

  .country-selector {
    order: 2;
    margin: 0 !important;
  }

  .language-switcher {
    order: 3;
    margin-inline-start: 8px !important;
  }

  .language-switcher:not(.language-switcher-home) {
    display: none !important;
  }

}

/* Hide mobile language switcher on desktop */
@media (min-width: 769px) {
  .mobile-lang-switcher {
    display: none;
  }
}

.header-text {
  flex: 1;
  text-align: right;
}

.header-text p {
  color: white;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}



/* Last Updated */
.last-updated {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0px;
  margin-bottom: 0px;
  font-family: 'Tajawal', sans-serif;
}

.last-updated-label {
  display: inline;
}

/* Mobile Last Updated */
@media (max-width: 768px) {
  .last-updated {
    font-size: 0.64rem;
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 400;
  }

  .last-updated-label {
    display: inline;
  }
}

/* Country Navigation */
.country-nav {
  margin-top: 20px;
}

.country-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.country-nav li {
  display: inline-block;
}

.country-nav a {
  display: inline-block;
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-primary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  line-height: 1.2;
  font-family: 'Tajawal', sans-serif;
}

.country-flag {
  font-size: 1.2rem;
}

.country-name {
  font-size: 0.9rem;
}

.dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 4px;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  margin-top: 4px;
}

.country-dropdown.open {
  display: block;
}

.country-dropdown li {
  list-style: none;
}

.country-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Tajawal', sans-serif;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.country-dropdown a:last-child {
  border-bottom: none;
}

.country-dropdown a:hover,
.country-dropdown a.current {
  background: var(--silver-light);
  color: var(--silver-primary);
}

.country-dropdown a.current {
  font-weight: 600;
  pointer-events: none;
  opacity: 0.6;
  cursor: default;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin: 0;
  margin-inline-start: auto;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.lang-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1rem;
}

.lang-name {
  font-weight: 600;
}

/* LTR (English) specific styles */
html[dir="ltr"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[dir="ltr"] .header-text {
  text-align: left;
}

html[dir="ltr"] .header-back-btn,
html[dir="ltr"] .country-dropdown a,
html[dir="ltr"] .country-selector-btn {
  font-family: 'Inter', sans-serif;
}

html[dir="ltr"] .breadcrumbs ol {
  flex-direction: row;
}

html[dir="ltr"] .breadcrumbs li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  font-weight: 400;
  font-size: 1.1rem;
}

html[dir="ltr"] .breadcrumbs li:not(:last-child)::before {
  content: none;
}

.country-selector {
  position: relative;
  margin: 0 20px;
}

.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Tajawal', sans-serif;
  transition: var(--transition);
}

.country-selector-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Tablet Country Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
  .country-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
  }

  .country-nav li {
    margin-bottom: 0;
  }

  .country-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 16px;
    font-size: 1.1rem;
    text-align: left;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .country-nav a::after {
    content: '›';
    font-size: 1.4rem;
    opacity: 0.7;
  }

  .country-nav a:hover::after {
    opacity: 1;
  }

  .country-flag {
    font-size: 1.5rem;
    margin-right: 8px;
  }

  .country-header h1 {
    font-size: 2rem;
  }
}

/* Desktop Country Navigation */
@media (min-width: 1025px) {
  .country-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
  }

  .country-nav li {
    width: 100%;
  }

  .country-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-primary) 100%);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    line-height: 1.2;
    font-family: 'Tajawal', sans-serif;
  }

  .country-nav a::after {
    content: '›';
    font-size: 1.2rem;
    opacity: 0.7;
  }

  .country-nav a:hover {
    background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--silver-dark);
  }

  .country-nav a:hover::after {
    opacity: 1;
  }

  .country-flag {
    font-size: 1.3rem;
    margin-right: 6px;
  }

  /* Disabled state for undeployed countries */
  .country-nav a.is-disabled {
    cursor: default;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-primary) 100%);
    /* Same as active */
    opacity: 0.8;
    /* Slight opacity difference to hint inactive */
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }

  .country-nav a.is-disabled:hover {
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-primary) 100%);
    color: var(--text-primary);
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .country-nav a.is-disabled::after {
    display: none;
  }

  .coming-soon-badge {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-inline-start: auto;
    font-weight: normal;
    color: var(--text-muted);
  }
}

/* Navigation */
.nav-section {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
}

.nav-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.nav-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
  font-family: 'Tajawal', sans-serif;
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-family: 'Tajawal', sans-serif;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--silver-dark);
}

.nav-links a:hover::before {
  left: 100%;
}

/* Price Section */
.price-section {
  padding: 12px 0;
  margin-bottom: 20px;
}

.price-category {
  padding: 20px 0 0 0;
  margin-bottom: 60px;
}

.price-category h2.category-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-button {
  padding: 5px 18px;
  border: 2px solid var(--silver-primary);
  background: white;
  color: var(--silver-primary);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
}

.tab-button:hover {
  background: var(--silver-primary);
  color: white;
  transform: translateY(-2px);
}

.tab-button.active {
  background: var(--silver-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.category-content {
  display: grid;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .category-tabs {
    gap: 8px;
    margin-bottom: 18px;
  }

  .tab-button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--silver-primary);
  border-radius: 2px;
}

/* Mobile Page Title */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .page-title::after {
    width: 60px;
    bottom: -8px;
  }

  .price-section {
    padding: 24px 0;
    margin-bottom: 32px;
  }
}

.price-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.price-section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--silver-primary);
  border-radius: 2px;
}

/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* Historical Prices Table with Scrollable Body */
.historical-prices-section .price-table {
  display: block;
  max-height: 600px;
  overflow: hidden;
}

.historical-prices-section .price-table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.historical-prices-section .price-table tbody {
  display: block;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

.historical-prices-section .price-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/* Custom scrollbar styling for historical prices table */
.historical-prices-section .price-table tbody::-webkit-scrollbar {
  width: 8px;
}

.historical-prices-section .price-table tbody::-webkit-scrollbar-track {
  background: var(--border-light);
  border-radius: 4px;
}

.historical-prices-section .price-table tbody::-webkit-scrollbar-thumb {
  background: var(--silver-primary);
  border-radius: 4px;
}

.historical-prices-section .price-table tbody::-webkit-scrollbar-thumb:hover {
  background: var(--silver-secondary);
}

.price-table th {
  background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
  color: white;
  padding: 18px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.price-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.price-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0.025em;
}

.price-table tr:nth-child(even) {
  background-color: var(--silver-light);
  transform: scale(1.01);
  transition: var(--transition);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.purity-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  position: relative;
}

.purity-link:hover {
  color: var(--silver-primary);
  background-color: var(--silver-light);
  border-color: var(--silver-primary);
  transform: translateY(-1px);
}

.price-up {
  color: #059669;
  font-weight: 700;
  position: relative;
}

.price-up::before {
  content: '↗';
  margin-right: 4px;
  font-size: 0.9em;
}

.price-down {
  color: #dc2626;
  font-weight: 700;
  position: relative;
}

.price-down::before {
  content: '↘';
  margin-right: 4px;
  font-size: 0.9em;
}

.price-neutral {
  color: var(--text-muted);
  font-weight: 500;
}

/* Change indicators for historical table */
.change-up {
  color: #10b981;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

.change-down {
  color: #ef4444;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

.change-neutral {
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}

/* Change column - use monospaced numbers for alignment */
.price-table td:nth-child(3) {
  direction: ltr;
  text-align: center;
}

/* Info Section */
.info-section {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.info-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--silver-primary);
  border-radius: 2px;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-section li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  padding-right: 24px;
  border-bottom: 1px solid var(--border-light);
  font-family: 'Tajawal', sans-serif;
  text-align: right;
}

.info-section li:last-child {
  border-bottom: none;
}

.info-section li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--silver-primary);
  border-radius: 50%;
}

/* Purity Info Section */
.purity-info-section {
  margin-bottom: 10px;
  margin-top: 10px;
}

.purity-info-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
}

.purity-info-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--silver-primary);
  border-radius: 2px;
}

.purity-info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.purity-info-section li {
  padding: 8px 0;
  padding-left: 0;
  padding-right: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  border: none;
  font-family: 'Tajawal', sans-serif;
  text-align: justify;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
}

.info-section {
  flex: 1;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.description-section {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
  flex: 2;
}

.description-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.description-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
}

.description-section h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--silver-primary);
  border-radius: 2px;
}

.description-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  font-family: 'Tajawal', sans-serif;
}

.description-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  font-family: 'Tajawal', sans-serif;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--silver-light);
}

.description-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem 0;
  font-family: 'Tajawal', sans-serif;
}

.description-section ul {
  margin: 1rem 0;
  padding-right: 1.5rem;
}

.description-section li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-family: 'Tajawal', sans-serif;
}

/* Mobile Content Wrapper */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .info-section,
  .description-section {
    padding: 32px 20px;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--silver-dark) 0%, var(--silver-secondary) 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-countries {
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.footer-main {
  grid-template-columns: repeat(3, 1fr);
}

.footer-section {
  text-align: center;
}

.footer-section h3 {
  color: var(--silver-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: 'Tajawal', sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columns {
  display: block;
  margin-bottom: 30px;
}

.footer-countries-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-purity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  text-align: right;
}

[lang="en"] .footer-purity-list {
  text-align: left;
}


.footer-column:first-child {
  padding-left: 0;
}

.footer-column:last-child {
  padding-right: 0;
}

.footer-section li {
  margin-bottom: 0;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-section a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 4px 0;
  font-family: 'Tajawal', sans-serif;
}

.footer-version {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.7rem !important;
  margin-top: 8px !important;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer {
    padding: 20px 0 10px;
    margin-top: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 16px;
    margin-bottom: 25px;
  }

  .footer-countries {
    padding-bottom: 25px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .footer-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-columns {
    display: block;
  }

  .footer-countries-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 4px;
  }

  .footer-section li {
    margin-bottom: 0;
  }

  .footer-section a {
    font-size: 0.8rem;
    padding: 4px 6px;
  }

}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 10px 24px;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: 'Tajawal', sans-serif;
}

.breadcrumbs li:not(:last-child):after {
  content: '›';
  margin: 0 8px;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
}

.breadcrumbs a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.breadcrumbs a:hover {
  background-color: var(--silver-light);
  color: var(--silver-primary);
}

.breadcrumbs .current {
  color: var(--silver-primary);
  font-weight: 600;
}

/* Mobile Breadcrumbs */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 6px 8px;
  }

  .breadcrumbs ol {
    gap: 2px;
  }

  .breadcrumbs li {
    font-size: 0.75rem;
  }

  .breadcrumbs li:not(:last-child):after {
    margin-left: 4px;
    margin-right: 4px;
    font-size: 0.9rem;
  }

  .breadcrumbs a {
    padding: 4px 4px;
    font-size: 0.75rem;
  }
}

/* Last Updated Bar */
.last-updated-bar {
  background: #fff9ee;
  border-top: none;
  padding: 2px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 100;
}

[dir="rtl"] .last-updated-bar {
  top: 73px;
}

.last-updated-bar:sticky {
  opacity: 0.9;
  background: #f4e4bc;
  padding: 2px 24px;
}

.last-updated-bar .last-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .last-updated-bar {
    padding: 6px 0;
    margin-bottom: 16px;
    top: 67px !important;
  }

  .last-updated-bar .last-updated {
    gap: 8px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }

  .header {
    padding: 8px 0 5px;
  }

  .header-content {
    gap: 8px;
    padding: 0 8px;
  }

  .logo-container {
    flex-shrink: 0;
    margin: 11px 4px 0;
  }

  .logo-image {
    max-width: 120px !important;
    height: auto;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
  }

  .nav-section {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .nav-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nav-links a {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .price-section {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .price-table th,
  .price-table td {
    padding: 8px 4px;
    font-size: 0.85rem;
  }

  .price-table th {
    padding: 12px 4px;
  }

  .price-table {
    margin-bottom: 40px;
  }

  /* Mobile historical prices table */
  .historical-prices-section .price-table {
    max-height: 400px;
    overflow-y: auto;
  }

  .historical-prices-section .price-table tbody {
    max-height: 320px;
    overflow-y: auto;
  }

  .historical-prices-section {
    margin-bottom: 40px;
    /* Break out of container with 10px margins on each side */
    width: calc(100vw - 20px);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw + 10px);
    margin-right: calc(-50vw + 10px);
    padding: 0;
  }

  .historical-prices-section .section-header-with-toggle {
    padding: 0 10px;
  }

  .historical-prices-section .price-table {
    border-radius: 8px;
  }

  .historical-prices-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .info-section {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .footer {
    padding: 24px 16px;
    margin-top: 40px;
  }

  .country-nav ul {
    gap: 12px;
  }

  .country-nav a {
    padding: 10px 16px;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .country-flag {
    font-size: 1.3rem;
    margin-right: 6px;
  }

  .country-header h1 {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--surface) 50%, var(--border-light) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Focus States */
.nav-links a:focus,
.purity-link:focus,
.back-link:focus {
  outline: 2px solid var(--silver-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {

  .nav-links a,
  .back-link {
    display: none;
  }

  .price-section,
  .info-section {
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Price Cards Grid */
.silver-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* Mobile Price Cards Grid */
@media (max-width: 768px) {
  .silver-prices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    grid-auto-rows: 1fr;
  }
}

/* Prices Date Title */
.prices-date-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -10px;
  margin-bottom: 10px;
  padding: 16px;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.calendar-icon {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

/* Mobile - Hide Calendar Icon */
@media (max-width: 768px) {
  .calendar-icon {
    display: none;
  }
}

.calendar-header {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 6px;
  text-align: center;
}

.month-year {
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Tajawal', sans-serif;
}

.calendar-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.day {
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-bottom: 2px;
  font-family: 'Tajawal', sans-serif;
}

.month-name {
  font-size: 8px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'Tajawal', sans-serif;
}

.title-text {
  flex: 1;
}

.title-text h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Tajawal', sans-serif;
}

.title-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  font-family: 'Tajawal', sans-serif;
}

/* Price Layout - Still used for page structure */
.price-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.main-price-block {
  flex: 2;
}

.other-purities-aside {
  flex: 1;
}

.other-purities-aside h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
}

.aside-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* Mobile: stack the layout */
@media (max-width: 768px) {
  .price-layout {
    flex-direction: column;
  }

  .main-price-block,
  .other-purities-aside {
    flex: none;
    width: 100%;
  }
}

.view-history-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  font-family: 'Tajawal', sans-serif;
}

.view-history-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--silver-dark);
}

.view-history-btn:focus {
  outline: 2px solid var(--silver-primary);
  outline-offset: 2px;
}

/* Country Header */
.country-header {
  text-align: center;
  margin-bottom: 60px;
  padding: calc(40px + var(--header-height, 64px)) 0 40px;
  background-size: 60%;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
}

/* Overlay layer to prevent image flash */
.country-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(192, 192, 192, 0.9) 0%, transparent 40%),
    linear-gradient(to left, rgba(192, 192, 192, 0.9) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(to bottom, rgba(192, 192, 192, 0.9) 0%, rgba(192, 192, 192, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.country-header>* {
  position: relative;
  z-index: 2;
}

.country-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.country-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: 2px;
}

/* Tablet Country Header */
@media (max-width: 1024px) {
  .country-header h1 {
    font-size: 2rem;
  }
}

/* Mobile Country Header */
@media (max-width: 768px) {
  .country-header {
    padding: 100px 5px 40px !important;
    min-height: auto !important;
    background-size: 100% !important;
    background-position: center center !important;
  }

  .country-header h1 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .country-header h1::after {
    width: 80px;
    height: 3px;
    bottom: -4px;
  }
}

.country-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'Tajawal', sans-serif;
}

/* Hide country description on mobile */
@media (max-width: 768px) {
  .country-description {
    display: none;
  }
}

/* Back Link */
.back-link {
  display: inline-block;
  padding: 16px 32px;
  background: var(--background);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--border);
  transition: var(--transition);
  margin-top: 40px;
  font-family: 'Tajawal', sans-serif;
}

.back-link:hover {
  background: var(--silver-primary);
  color: white;
  border-color: var(--silver-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.back-link:focus {
  outline: 2px solid var(--silver-primary);
  outline-offset: 2px;
}

/* FAQ Section */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.faq-section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--silver-primary);
  border-radius: 2px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.faq-item {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 12px 24px;
  transition: var(--transition);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--silver-primary);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  /* Removing bottom margin since summary handles layout */
  padding: 0;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.4;
  list-style: none;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
}

/* Accordion Styles */
.faq-item details {
  width: 100%;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding-bottom: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* Down Arrow Icon */
.faq-toggle::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--silver-primary);
  border-bottom: 2px solid var(--silver-primary);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  margin-top: -4px;
  /* Visual centering */
}

.faq-toggle::after {
  display: none;
}

.faq-item details[open] .faq-toggle {
  transform: rotate(0);
  /* Reset container rotation from previous code */
}

.faq-item details[open] .faq-toggle::before {
  transform: rotate(-135deg);
  /* Point Up */
  border-color: var(--silver-dark);
  margin-top: 4px;
  /* Adjust visual center when flipped */
}

.faq-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile FAQ */
@media (max-width: 768px) {
  .faq-section {
    padding: 0;
    margin-bottom: 40px;
  }

  .faq-item {
    padding: 20px;
  }
}

/* Chart Section */
.chart-section {
  margin-bottom: 60px;
  position: relative;
}



.chart-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}



.chart-container {
  max-width: 100%;
  margin: 0 auto;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 400px;
}


/* Mobile Country Navigation - Grid Layout */
@media (max-width: 768px) {
  .mobile-country-nav {
    display: block;
    z-index: 1;
    position: relative;
    margin: -80px 10px 0;
  }

  .mobile-country-nav .country-nav {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .mobile-country-nav .country-nav ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-country-nav .country-nav li {
    display: block;
    width: 100%;
  }

  .mobile-country-nav .country-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    min-height: 100px;
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-primary) 100%);
    border: 1px solid rgba(192, 192, 192, 0.5);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    text-align: center;
  }

  .mobile-country-nav .country-nav a::after {
    display: none;
  }

  .mobile-country-nav .country-flag {
    font-size: 2.5rem;
  }

  .home-layout {
    display: block;
  }

  .country-nav-sidebar {
    display: none;
  }

  .home-layout .content-wrapper {
    flex: 1;
  }
}

/* Desktop - Hide Mobile Country Nav */
@media (min-width: 769px) {
  .mobile-country-nav {
    display: none;
  }
}

/* Home Layout */
.home-layout {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
}

/* Desktop Home Layout */
@media (min-width: 769px) {

  /* For Arabic: Flip layout so content is RIGHT and sidebar is LEFT */
  html[dir="rtl"] .home-layout {
    flex-direction: row-reverse;
  }

  /* For English: Standard layout (Sidebar Left, Content Right) */
  html[dir="ltr"] .home-layout {
    flex-direction: row;
  }

  .country-nav-sidebar {
    flex: 1;
  }
}

.home-layout .content-wrapper {
  flex: 2;
  flex-direction: column;
}

/* Sidebar Country Navigation */
.country-nav-sidebar .country-nav {
  margin-top: 0;
}

.country-nav-sidebar .country-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.country-nav-sidebar .country-nav li {
  display: block;
  width: 100%;
}

.country-nav-sidebar .country-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 70px 16px 20px;
  background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver-secondary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  line-height: 1.2;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.country-nav-sidebar .country-nav a::after {
  content: '›';
  font-size: 1.2rem;
  opacity: 0.7;
}

.country-nav-sidebar .country-nav a:hover {
  background: linear-gradient(135deg, var(--silver-primary) 0%, var(--silver-secondary) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--silver-dark);
}

.country-nav-sidebar .country-nav a:hover::after {
  opacity: 1;
}

.country-nav-sidebar .country-flag {
  font-size: 2.25rem;
  position: absolute;
  right: 16px;
  top: 60%;
  transform: translateY(-50%);
  margin-right: 0;
}

/* Mobile Home Layout */
@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
    gap: 40px;
  }

  .country-nav-sidebar,
  .home-layout .content-wrapper {
    flex: none;
  }
}

@media (max-width: 768px) {
  .breadcrumb-text {
    display: none;
  }

  .breadcrumb-icon {
    display: inline;
    font-size: 1.2rem;
  }
}

/* Desktop: show text, hide icon */
@media (min-width: 769px) {
  .breadcrumb-icon {
    display: none;
  }

  .breadcrumb-text {
    display: inline;
  }
}

/* Mobile Country Dropdown - RTL (Arabic) */
@media (max-width: 768px) {
  .country-dropdown {
    width: calc(100vw - 40px);
    max-width: 300px;
    left: 10px;
    right: auto;
    position: fixed;
    top: 60px;
    z-index: 10000;
  }

  .country-selector-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }

  .country-label {
    display: inline;
  }
}

/* Mobile Country Dropdown - LTR (English) */
@media (max-width: 768px) {
  html[dir="ltr"] .country-dropdown {
    left: auto;
    right: 10px;
  }
}

/* Mobile Header - Hide Logo Text */
@media (max-width: 768px) {
  .header-text {
    display: none;
  }
}

/* Responsive Hero Banner Background Size */
@media (max-width: 1024px) {
  .country-header[data-bg] {
    background-size: 100% !important;
    background-position: center center !important;
  }
}

/* Lazy Loading Background Images */
.country-header {
  transition: background-image 0.5s ease-in;
}

.country-header.bg-loaded {
  background-blend-mode: multiply;
}

/* Image Optimization */
.logo-image {
  max-width: 160px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Breadcrumbs inside country-header (dark background) */
.country-header .breadcrumbs {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin: 20px 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.country-header .breadcrumbs ol {
  justify-content: center;
}

.country-header .breadcrumbs li {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.country-header .breadcrumbs li:not(:last-child):after {
  color: rgba(255, 255, 255, 0.6);
}

.country-header .breadcrumbs a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.country-header .breadcrumbs a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.country-header .breadcrumbs .current {
  color: #ffd700;
  font-weight: 600;
}

/* Additional Purities Section */
.additional-purities-section {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
  position: relative;
}

.additional-purities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.additional-purities-section .category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  position: relative;
}

.additional-purities-section .category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--silver-primary);
  border-radius: 2px;
}

.additional-purities-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.additional-purity-link {
  display: inline-block;
  padding: 12px 20px;
  background: var(--background);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  transition: var(--transition);
  font-family: 'Tajawal', sans-serif;
  text-align: center;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

/* Ribbon for Recently Visible Purities */
.recently-visible-link::after {
  content: 'UP';
  position: absolute;
  top: 7px;
  right: -28px;
  background: #eab308;
  /* Silver/Yellow */
  color: white;
  font-size: 0.6rem;
  padding: 2px 30px;
  transform: rotate(45deg);
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
  letter-spacing: 0.5px;
}

[dir="rtl"] .recently-visible-link::after {
  content: 'بالأعلى';
  right: auto;
  left: -28px;
  transform: rotate(-45deg);
}

/* Make sure the text is not covered */
.recently-visible-link {
  border-color: #eab308;
  padding-right: 35px;
  /* Space for ribbon in LTR */
}

[dir="rtl"] .recently-visible-link {
  padding-right: 20px;
  /* Reset standard padding */
  padding-left: 35px;
  /* Space for ribbon in RTL */
}

.additional-purity-link:hover {
  background: var(--silver-primary);
  color: white;
  border-color: var(--silver-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.additional-purity-link:focus {
  outline: 2px solid var(--silver-primary);
  outline-offset: 2px;
}

/* Mobile Additional Purities */
@media (max-width: 768px) {
  .additional-purities-section {
    padding: 24px 20px;
    margin-bottom: 40px;
  }

  .additional-purities-links {
    gap: 12px;
  }

  .additional-purity-link {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: 100px;
  }
}

/* Aside Category Titles - Gray and Centered */
.aside-category {
  margin-bottom: 32px;
}

.aside-category h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0.5px;
}

/* ============================================
   COUNTRY CARD - Independent Styles
   Used in: price-card-country.liquid
   Grid cards on country listing pages
   ============================================ */

.country-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
}

.country-card-link:hover {
  transform: translateY(-4px);
}

.country-card-link:hover .country-card {
  box-shadow: var(--shadow-lg);
  border-color: var(--silver-primary);
}

.country-card {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 20px 0 0 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.country-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--silver-primary);
}

.country-card-header {
  text-align: center;
  margin-bottom: 4px;
}

.country-card-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: 'Tajawal', sans-serif;
}

.country-card-purity-spec {
  font-size: 1.3rem;
  font-weight: 600;
  color: #9ca3af;
  display: block;
  margin-top: 4px;
}

.country-card-price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  /* margin-bottom: 8px; */
}

/* Price Group Colors */
.price-group-primary {
  color: #8a6d25;
}

/* Dark Silver - For groups 0, 2, 4 (Units, Millions) */
.price-group-secondary {
  color: #b28d32;
}

/* Medium Silver - For groups 1, 3, 5 (Thousands, Billions) */

/* Separator and Decimal Styling */
.price-separator {
  color: #b28d32;
  /* Use medium silver for separators */
}

.price-decimal {
  font-size: 0.6em;
  vertical-align: baseline;
  color: #c2c2c2;
}

/* Base Price Styling (Reset Gradient) */
.country-card-price-value .country-card-price,
.detail-card-price-value .detail-card-price,
.sidebar-card-price-value .sidebar-card-price {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: initial !important;
  color: inherit;
  /* Allow spans to set color */
}

.country-card-price-value .country-card-price {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  display: inline-block;
  direction: ltr;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}

/* RTL Override for Arabic Digits (3 digits ≈ 2ch in Tajawal) */
html[dir="rtl"] .country-card-price-value .country-card-price {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.country-card-price-value .country-card-price .country-card-price-main {
  font-size: 2.75rem;
  font-weight: 800;
}

.country-card-price-value .country-card-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: 'Tajawal', sans-serif;
}

.country-card-price-value .country-card-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Tajawal', sans-serif;
}

.country-card-details-wrapper {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.country-card-details-text {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity var(--transition), width var(--transition);
  font-family: 'Tajawal', sans-serif;
  line-height: 1.2;
  height: 20px;
  display: flex;
  align-items: center;
}

.country-card-details-icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* RTL (Arabic) - Country Card */
html[dir="rtl"] .country-card-details-wrapper,
body.rtl .country-card-details-wrapper {
  right: auto;
  left: 12px;
  flex-direction: row-reverse;
}

.country-card-link:hover .country-card-details-wrapper {
  color: var(--silver-primary);
}

.country-card-link:hover .country-card-details-wrapper .country-card-details-icon {
  transform: translateX(2px);
  color: var(--silver-primary);
}

.country-card-link:hover .country-card-details-text {
  opacity: 1;
  width: auto;
}

/* RTL - Country Card Icon moves left on hover */
html[dir="rtl"] .country-card-link:hover .country-card-details-wrapper .country-card-details-icon,
body.rtl .country-card-link:hover .country-card-details-wrapper .country-card-details-icon {
  transform: translateX(-2px);
}

/* Mobile Country Card */
@media (max-width: 768px) {
  .country-card {
    padding: 12px;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .country-card::before {
    height: 2px;
  }

  .country-card-header {
    margin-bottom: 8px;
    text-align: center;
    flex: 1;
  }

  .country-card-header h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.25;
    text-align: center;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    hyphens: auto;
  }

  .country-card-purity-spec {
    font-size: 0.75rem;
    margin-top: 2px;
    text-align: center;
    line-height: 1.2;
    opacity: 0.9;
    padding: 0 4px;
  }

  .country-card-price-value {
    gap: 8px;
    margin-bottom: 2px;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
  }

  .country-card-price-value .country-card-price {
    font-size: 1.4rem;
    display: block;
    width: 100%;
  }

  .country-card-price-value .country-card-price .country-card-price-main {
    font-size: 1.5rem;
  }

  .country-card-price-value .country-card-currency {
    font-size: 0.75rem;
    display: inline;
    margin-right: 4px;
  }

  .country-card-price-value .country-card-unit {
    font-size: 0.7rem;
    display: none;
    white-space: nowrap;
  }

  .country-card-details-wrapper {
    bottom: 8px;
    right: 8px;
  }

  .country-card-details-text {
    font-size: 0.65rem;
    height: 14px;
  }

  .country-card-details-icon {
    width: 14px;
    height: 14px;
  }

  html[dir="rtl"] .country-card-details-wrapper,
  body.rtl .country-card-details-wrapper {
    right: auto;
    left: 8px;
  }
}

/* ============================================
   DETAIL CARD - Independent Styles
   Used in: price-card-detail.liquid
   Main price card on purity detail pages
   ============================================ */

.detail-card {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.detail-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.detail-card:hover {
  transform: translateY(-1px);
}

.detail-card-link:hover {
  cursor: pointer;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
}

.detail-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.detail-card-header h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-family: 'Tajawal', sans-serif;
}

.detail-card-purity-spec {
  font-size: inherit;
  font-weight: 600;
  color: #9ca3af;
  display: inline;
}

.detail-card-price-value {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.detail-card-price-value .detail-card-price {
  font-size: 4.0rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  display: inline-block;
  direction: ltr;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}

/* RTL Override for Arabic Digits (3 digits ≈ 2ch in Tajawal) */
html[dir="rtl"] .detail-card-price-value .detail-card-price {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.detail-card-price-value .detail-card-price .detail-card-price-main {
  font-size: 4.5rem;
  font-weight: 800;
}

.detail-card-price-value .detail-card-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: 'Tajawal', sans-serif;
}

.price-in-words {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  color: #a0a0a0;
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

.detail-card-details {
  text-align: center;
  padding-top: 5px;
}

.detail-card-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-family: 'Tajawal', sans-serif;
}

.detail-card-footer {
  text-align: center;
  margin-top: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border-light);
}

/* Mobile Detail Card */
@media (max-width: 768px) {
  .detail-card {
    padding: 12px;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .detail-card::before {
    height: 2px;
  }

  .detail-card-header {
    margin-bottom: 8px;
    text-align: center;
    flex: 1;
  }

  .detail-card-header h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.25;
    text-align: center;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    hyphens: auto;
  }

  .detail-card-purity-spec {
    font-size: inherit;
    opacity: 0.9;
  }

  .detail-card-price-value {
    gap: 0;
    margin-bottom: 2px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .detail-card-price-value .detail-card-price {
    font-size: 2.5rem;
    display: block;
    width: 100%;
    letter-spacing: 0.025em;
  }

  .detail-card-price-value .detail-card-price .detail-card-price-main {
    font-size: 3.0rem;
  }

  .detail-card-price-value .detail-card-currency {
    font-size: 0.75rem;
    display: inline;
    margin-right: 4px;
  }

  .detail-card-details {
    padding-top: 8px;
    padding-bottom: 4px;
    min-height: auto;
  }

  .detail-card-details p {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
}

/* ============================================
   SIDEBAR CARD - Independent Styles
   Used in: price-card-aside.liquid
   Sidebar cards on purity detail pages
   ============================================ */

.sidebar-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
}

.sidebar-card-link:hover {
  transform: translateY(-1px);
}

.sidebar-card-link:hover .sidebar-card {
  box-shadow: var(--shadow-lg);
  border-color: var(--silver-primary);
}

.sidebar-card {
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--silver-primary), var(--silver-secondary));
}

.sidebar-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--silver-primary);
}

.sidebar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.sidebar-card-purity-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  font-family: 'Tajawal', sans-serif;
}

.sidebar-card-price-value {
  margin-bottom: 0;
  text-align: right;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sidebar-card-price-value .sidebar-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  display: inline-block;
  direction: ltr;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}

/* RTL Override for Arabic Digits (3 digits ≈ 2ch in Tajawal) */
html[dir="rtl"] .sidebar-card-price-value .sidebar-card-price {
  background-image: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.sidebar-card-price-value .sidebar-card-currency {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: 'Tajawal', sans-serif;
}

/* Mobile Sidebar Card */
@media (max-width: 768px) {
  .sidebar-card {
    padding: 10px;
  }

  .sidebar-card::before {
    height: 2px;
  }

  .sidebar-card-purity-title {
    font-size: 0.9rem;
  }

  .sidebar-card-price-value .sidebar-card-price {
    font-size: 1.1rem;
    letter-spacing: 0.025em;
  }

  .sidebar-card-price-value .sidebar-card-currency {
    font-size: 0.65rem;
  }
}

/* Country Header Banner */
.country-header {
  position: relative;
  padding: 100px 20px 60px 20px;
  min-height: 200px;
  margin-bottom: 0;
  background: linear-gradient(to right, rgba(192, 192, 192, 0.9) 0%, transparent 40%),
    linear-gradient(to left, rgba(192, 192, 192, 0.9) 0%, transparent 40%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(to bottom, rgba(192, 192, 192, 0.9) 0%, rgba(192, 192, 192, 0.7) 100%);
  background-size: 60%;
  background-position: center 35%;
}

.country-header h1 {
  position: relative;
  z-index: 1;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 15px;
}

.country-header .country-description {
  position: relative;
  z-index: 1;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 18px;
  line-height: 1.6;
}

/* Highlight Pulse Animation */
@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 192, 192, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(192, 192, 192, 0);
    transform: scale(1.02);
    border-color: #b8860b;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(192, 192, 192, 0);
    transform: scale(1);
  }
}

.highlight-pulse {
  animation: highlightPulse 2s ease-in-out;
  position: relative;
  z-index: 10;
}

/* Geo-Ads Styles */
.geo-ad-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.geo-ad-image {
  cursor: pointer;
  display: block;
}

/* Ad Height Constraints */
.geo-ad-container[data-position="breadcrumb"] .geo-ad-image,
.geo-ad-container[data-position="footer"] .geo-ad-image {
  max-height: 90px;
  object-fit: contain;
}