:root {
  --negro: #121212;
  --grisI: #333333;
  --grisII: #9c9c9c;
  --grisIII: #CCCCCC;
  --primary: #94C748;
  --blanco: #FFFFFF;
  --card-bg: #1E1E1E;
  --card-border: #2A2A2A;
  --buy-color: #2196F3;
  --sell-color: #4CAF50;
  --down-color:rgb(216, 119, 119);
  --up-color: #4CAF50;
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--negro);
  color: var(--blanco);
  line-height: 1.4;
  padding-bottom: var(--safe-area-inset-bottom);
}

.container {
  padding: 16px;
  margin: 0 auto;
  max-width: 600px;
}

/* Header & Navigation */
.header {
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--card-border);
  padding:0px!important;
}
.container.headerCustom
{
  padding:8px!important;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  padding: 0em 16px;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanco);
}

.hamburger-icon {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 24px;
  padding: 8px;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--card-bg);
  transition: 0.3s ease;
  z-index: 1000;
  padding: 20px 0;
}

.mobile-menu.show {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--card-border);
  font-weight: 600;
}

.close-menu {
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 24px;
  padding: 8px;
}

.menu-items {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.menu-item {
  color: var(--blanco);
  text-decoration: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.last-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grisII);
  font-size: 14px;
}

.refresh-button {
  background: none;
  border: none;
  color: var(--primary);
  padding: 8px;
}

/* Best Rates Cards */
.best-rates-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.rate-card {
  background: var(--card-bg);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rate-label {
  font-size: 14px;
  color: var(--grisII);
}

.rate-exchange {
  font-weight: 600;
  color: var(--primary);
}

.rate-price {
  font-size: 18px;
  font-weight: 700;
}

/* Exchange List */
.exchange-list {
  list-style: none;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.exchange-item {
  padding: 16px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.exchange-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.exchange-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.exchange-details {
  display: flex;
  flex-direction: column;
}

.exchange-name {
  font-weight: 600;
  font-size: 16px;
}

.exchange-pair {
  color: var(--grisII);
  font-size: 12px;
}

.exchange-rates {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  min-width: 120px;
}

.rate-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.rate-label {
  color: var(--grisII);
  font-size: 12px;
  line-height: 1;
}

.rate-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 24px 0;
  background: var(--card-bg);
}

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

.byJams {
  margin-bottom: 16px;
}

.logoJams {
  height: 24px;
  vertical-align: middle;
}

.mail-footer {
  color: var(--grisII);
  text-decoration: none;
  font-size: 14px;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
  .container {
    padding: 24px;
    max-width: 900px;
  }

  .hamburger-icon {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .exchange-item {
    flex-direction: row;
    align-items: center;
  }

  .exchange-prices {
    width: auto;
    gap: 24px;
  }

  .navbar {
    padding: 1em 24px;
  }

  .menu-items {
    display: flex;
    gap: 24px;
  }

  .menu-item {
    color: var(--grisII);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;  /* 14px */
    font-weight: 500;
  }

  .menu-item:hover {
    color: var(--blanco);
  }

  .exchange-rates {
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }

  .rate-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 100px;
  }
}

/* Añadir estos estilos para los precios resaltados */
.rate-value {
  font-size: 16px;
  font-weight: 500;
}

.rate-value.best-buy {
  color: var(--down-color);
  font-weight: 700;
}
.best-buy-usdt{
color:var(--primary);
}
.best-sell-usdt
{
color: var(--primary);
}

.rate-value.best-sell {
  color: var(--up-color);
  font-weight: 700;
}

/* Ajustar el estilo de las etiquetas de precio */
.rate-label {
  color: var(--grisII);
  font-size: 14px;
}

/* Eliminar los media queries específicos de .exchange-item */
@media (max-width: 480px) {
  .exchange-item {
    padding: 12px;
  }

  .exchange-info {
    min-width: 120px;
    margin-bottom: 4px;
  }

  .exchange-rates {
    gap: 16px;
    width: 100%;
    justify-content: space-between;
  }

  .rate-item {
    min-width: auto;
  }

  .exchange-name {
    font-size: 14px;
  }

  .exchange-pair {
    font-size: 12px;
  }

  .rate-value {
    font-size: 14px;
  }
}

/* Desktop Navigation */
.desktop-menu {
  display: none; /* Oculto por defecto en móvil */
}

@media (min-width: 768px) {
  .desktop-menu {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .menu-items {
    flex-direction: row;
    padding: 0;
  }

  .menu-item {
    color: var(--grisII);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
  }

  .menu-item:hover {
    color: var(--blanco);
  }

  .hamburger-icon {
    display: none;
  }
}