:root {
  --bg-color: #ffffff;
  --text-color: #213547;
  --header-bg: #f8f9fa;
  --container-bg: #ffffff;
  --input-bg: #ffffff;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-color: #646cff;
}

[data-theme="dark"] {
  --bg-color: #041a3d;
  --text-color: #ffffff;
  --header-bg: #031126;
  --container-bg: #031126;
  --input-bg: #041a3d;
  --border-color: #404040;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --hover-color: #747bff;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 200px auto 2rem;
  padding: 2rem;
  position: relative;
}

.logo {
  max-width: 200px;
  height: auto;
  transition: opacity 0.3s ease;
}


.logo_main {
  max-width: 500px;
  height: auto;
  transition: opacity 0.3s ease;
}


.logo-light {
  opacity: 1;
  position: absolute;
}

.logo-dark {
  opacity: 0;
  position: absolute;
}

[data-theme="dark"] .logo-light {
  opacity: 0;
}

[data-theme="dark"] .logo-dark {
  opacity: 1;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 1000;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
}

.header-title {
  margin: 0 auto;
  font-size: 1.2rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  width: 60px;
  height: 30px;
}

.dark-mode-switch {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 30px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.dark-mode-label:before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.dark-mode-switch:checked + .dark-mode-label:before {
  transform: translateX(30px);
}

.dark-mode-label i {
  font-size: 0.8rem;
  color: var(--text-color);
}

/* Side Menu */
.side-menu {
  position: fixed;
  top: 60px;
  left: -350px;
  width: 350px;
  height: calc(100vh - 60px);
  background-color: var(--container-bg);
  transition: 0.3s;
  box-shadow: 2px 0 4px var(--shadow-color);
  z-index: 999;
}

.side-menu.active {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.side-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
}

.side-menu a:hover {
  color: var(--hover-color);
}

/* Container Styles */
.container {
  margin: 80px auto 2rem;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  background-color: var(--container-bg);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  box-sizing: border-box;
}

.spot-prices {
  margin-bottom: 3rem;
}

.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.price-card {
  background-color: var(--container-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.price-card h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.metal-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.price-info {
  text-align: center;
}

.current-price {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.token-info {
  text-align: center;
}

.token-info h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  border: none;
  padding: 0;
}

.token-price {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.token-description {
  font-size: 0.8rem;
  color: #666;
}

.dbv-note {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

a {
  text-decoration:none;
  color:grey;
}

section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

h1, h2, h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--hover-color);
  padding-left: 1rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.form-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.token-inputs, .token-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.input-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--text-color);
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: var(--hover-color);
  box-shadow: 0 0 0 2px rgba(100, 108, 255, 0.1);
}

input[readonly] {
  background-color: var(--header-bg);
}

.large-input {
  font-size: 1.2rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  color: var(--text-color);
}

.value-displays {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--input-bg);
  border-radius: 4px;
}

.value-display {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  min-width: 100px;
  text-align: right;
}

.notes {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--input-bg);
  border-radius: 4px;
}

.notes p {
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.notes ul {
  margin: 0;
  padding-left: 1.5rem;
}

.notes li {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.barter-section, .token-remittance, .tokens-furnished, .change-section, .net-amount {
  margin-bottom: 2rem;
}

.net-amount {
  margin: 2rem 0;
}



.center {
  display: flex;
  text-align:center ;
  justify-content: center;
  align-items: center;
}
.coin-image {
	padding-bottom: 15px;
}
.button-85 {
  padding: 0.8em 3em;
  margin-top: 5px;
  width:100%;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #174488;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #174488;
  left: 0;
  top: 0;
  border-radius: 10px;
}



@media (max-width: 600px) {
  .header-title {
    font-size: 1rem;
  }
  
  .side-menu {
    width: 300px;
    left: -300px;
  }
  .logo_main{
      max-width: 350px;
  }

  .container {
    padding: 1rem;
    margin: 60px 0rem 0rem;
    border-radius: 0;
    box-shadow: none;
  }

  .price-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .metal-info {
    gap: 1rem;
  }
  
  .current-price {
    font-size: 1.5rem;
  }
  
  .token-inputs, .token-grid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .value-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .value-display {
    align-self: stretch;
    text-align: left;
  }

  input, .large-input {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .input-group {
    padding: 0 0.5rem;
  }

  .barter-section, .token-remittance, .tokens-furnished, .change-section, .net-amount {
    padding: 0 0.5rem;
  }
}