@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@500;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #111111;
  --text-secondary: #555555;
  --gold: #d4af37;
  --gold-dark: #b58f1f;
  --gold-light: #f3e5ab;
  --black: #000000;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--black);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

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

.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  padding: 10px 22px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--black);
  color: #fff;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5%;
  min-height: calc(100vh - 90px);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

/* Interactive Currency Area */
.currency-widget {
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 30px;
  width: 400px;
  min-height: 480px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.widget-tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
}

.widget-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Montserrat', sans-serif;
}

.widget-tab.active {
  color: var(--black);
  border-bottom-color: var(--gold);
}

/* Native Rates Area */
.rates-area {
  flex: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.widget-title {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--black);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.rates-table th {
  background: var(--bg-secondary);
  padding: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 2px solid #eaeaea;
}

.rates-table td {
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
}

.rate-name {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-name span {
  font-size: 1.2rem;
}

.rates-meta {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
}

.store-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  flex: 1;
  justify-content: center;
}

.store-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.store-btn i {
  font-size: 1.8rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.store-text span {
  font-size: 0.55rem;
  text-transform: uppercase;
}

.store-text strong {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* Calculator specific styling */
.calculator-area {
  flex: none;
  display: none;
  flex-direction: column;
  transition: var(--transition);
}

.calc-group {
  margin-bottom: 20px;
}

.calc-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.calc-input-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.calc-input-wrapper input, .calc-input-wrapper select {
  border: none;
  background: transparent;
  padding: 15px;
  flex: 1;
  font-size: 1.1rem;
  outline: none;
  color: var(--text-primary);
  font-weight: 600;
}

.calc-input-wrapper select {
  width: 100px;
  flex: none;
  border-left: 1px solid #ddd;
  background: #eee;
  cursor: pointer;
  appearance: none;
  text-align: center;
}

.calc-icon {
  display: flex;
  justify-content: center;
  margin: 10px 0;
  color: var(--gold);
}

.calc-icon svg {
  width: 24px;
  height: 24px;
}

.calc-result {
  margin-top: auto;
  padding: 20px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.calc-result p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.calc-result h3 {
  font-size: 2rem;
  color: var(--black);
}

.btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Slider Section */
.partners-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  text-align: center;
  overflow: hidden;
}

.partners-section h3 {
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: var(--black);
}

.partners-slider {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, rgba(248, 249, 250, 0) 100%);
}

.partners-track {
  display: flex;
  gap: 40px;
  animation: scroll 30s linear infinite;
  padding: 0 40px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  font-weight: 700;
  color: var(--black);
  border: 1px solid #eaeaea;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.partner-logo:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.partner-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 2)); }
}

/* Ad Banner */
.ad-section {
  padding: 60px 5%;
  background: var(--bg-primary);
}

.ad-banner {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  height: 120px;
  background: linear-gradient(135deg, #111, #222);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px dashed rgba(212, 175, 55, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Footer */
.footer {
  background: var(--black);
  color: #fff;
  padding: 60px 5% 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #aaa;
  max-width: 300px;
}

.footer-links-col h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 10px;
}

.footer-links-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: left;
    gap: 40px;
    padding-top: 40px;
  }
  .currency-widget {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
  }
}
