:root {
  /* Gold color palette */
  --gold-primary: #ffd700;
  --gold-secondary: #ffa500;
  --gold-dark: #daa520;
  --gold-light: #ffed4e;

  /* Background colors */
  --bg-dark: #0f0f1e;
  --bg-darker: #0a0a14;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252541;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #b8b8d1;
  --text-muted: #7c7c99;

  /* Accent colors */
  --accent-blue: #4a90e2;
  --accent-green: #4caf50;
  --accent-red: #ef5350;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.main-header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gold-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.main-nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-normal);
}

.main-nav a:hover {
  color: var(--gold-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(
    135deg,
    var(--gold-light) 0%,
    var(--gold-primary) 50%,
    var(--gold-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

/* Prices Section */
.prices-section {
  padding: var(--spacing-xl) 0;
}

.metals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.metal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.metal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

.metal-card:hover::before {
  transform: scaleX(1);
}

.metal-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metal-emoji {
  font-size: 2rem;
}

.price-container {
  margin: var(--spacing-md) 0;
}

.current-price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.price-currency {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-unit {
  margin-bottom: 0.5rem;
}

.price-unit.secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-value-sm {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-currency-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-change {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.price-change.positive {
  background: rgba(76, 175, 80, 0.2);
  color: var(--accent-green);
}

.price-change.negative {
  background: rgba(239, 83, 80, 0.2);
  color: var(--accent-red);
}

/* Skeleton Loading */
.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.skeleton-price {
  height: 40px;
  width: 80%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Charts Section */
.charts-section {
  padding: var(--spacing-xl) 0;
  background: rgba(0, 0, 0, 0.2);
}

.chart-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
  max-height: 400px;
}

/* Calculator Section */
.calculator-section {
  padding: var(--spacing-xl) 0;
}

.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid rgba(255, 215, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  background: var(--bg-darker);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calculator-result {
  text-align: center;
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius-md);
  border: 2px dashed var(--gold-primary);
}

.result-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-primary,
.btn-calculate,
.btn-alert,
.btn-alert-metal {
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
  color: var(--bg-darker);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-calculate:hover,
.btn-alert:hover,
.btn-alert-metal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-calculate,
.btn-submit {
  width: 100%;
}

.btn-alert {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
}

/* Countries Section */
.countries-section {
  padding: var(--spacing-xl) 0;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.country-link {
  background: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all var(--transition-fast);
  font-weight: 600;
}

.country-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* AdSense Containers */
.adsense-container {
  max-width: 1200px;
  margin: var(--spacing-lg) auto;
  padding: 0 var(--spacing-md);
}

.adsense-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 165, 0, 0.1) 100%
  );
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Footer */
.main-footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--gold-primary);
  margin-bottom: var(--spacing-sm);
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-gold);
  animation: slideUp 0.3s ease;
  position: relative;
}

.close {
  position: absolute;
  right: var(--spacing-md);
  top: var(--spacing-md);
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.close:hover {
  color: var(--gold-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.alert-info-box {
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border: 1px dashed var(--gold-primary);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  font-size: 1.25rem;
}

.alert-status {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  text-align: center;
}

.alert-status.success {
  background: rgba(76, 175, 80, 0.2);
  color: var(--accent-green);
}

.alert-status.error {
  background: rgba(239, 83, 80, 0.2);
  color: var(--accent-red);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Country Pages Specific */
.country-header {
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  padding: var(--spacing-md) 0;
}

.hero-country {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 100%
  );
}

.last-update {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--spacing-sm);
}

.country-prices {
  padding: var(--spacing-xl) 0;
}

.metal-info {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metal-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.country-info {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.country-info h3 {
  color: var(--gold-primary);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.country-info ul {
  margin-left: var(--spacing-lg);
  color: var(--text-secondary);
}

.country-info ul li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .metals-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: var(--spacing-md);
  }
}

/* Period Selector */
.period-selector {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.period-selector button {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-selector button:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.period-selector button.active {
  background: linear-gradient(
    135deg,
    var(--gold-primary),
    var(--gold-secondary)
  );
  color: var(--bg-darker);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

/* Chart Statistics */
#chartStatistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.1);
  text-align: center;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.stat-value.positive {
  color: var(--accent-green);
}

.stat-value.negative {
  color: var(--accent-red);
}

.stat-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-button.whatsapp {
  background: #25d366;
  color: white;
}

.share-button.telegram {
  background: #0088cc;
  color: white;
}

.share-button.twitter {
  background: #1da1f2;
  color: white;
}

.share-button.facebook {
  background: #1877f2;
  color: white;
}

.share-button.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* SEO Content Sections */
.content-section {
  padding: var(--spacing-xl) 0;
}

.content-section.alt-bg {
  background: rgba(0, 0, 0, 0.2);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.content-card {
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.content-card h3 {
  color: var(--gold-primary);
  margin-bottom: var(--spacing-sm);
}

.content-card p,
.content-card ul {
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-card ul {
  margin-left: var(--spacing-md);
}

.content-card li {
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-item {
  background: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.1);
  margin-bottom: var(--spacing-md);
}

.faq-question {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Info Boxes */
.info-box {
  background: rgba(255, 215, 0, 0.05);
  border-left: 4px solid var(--gold-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin: var(--spacing-md) 0;
}

.info-box h4 {
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--text-secondary);
  margin: 0;
}

/* Full Width Container */
.container-full {
  width: 100%;
  max-width: 100%;
  padding: 0 2rem;
  margin: 0 auto;
}

/* Charts Section */
.charts-section {
  width: 100%;
  overflow-x: hidden;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 2rem 0;
}

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

