/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* переключаемся на Inter */
  font-family: 'Inter', sans-serif;
  background: #f9f9f9;
  color: #000;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

/* Container */
.mix-container {
  width: 100%;
  max-width: 1040px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header */
.mix-header {
  text-align: center;
  margin-bottom: 32px;
}
.mix-logo {
  width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}
.mix-title {
  /* более крупный и жирный */
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Panels */
.exchange-panel {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 24px;
}
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Panel Label */
.panel-label {
  padding: 8px 16px;
  font-size: 14px;
  /* полужирный */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #333;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #eee;
}

/* Panel Header (input / receive) */
.panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: #fdfdfd;
  border-bottom: none;
}

/* Left: Amount */
.from-panel .panel-header input {
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  font-size: 16px;
  /* полужирный */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Right: You receive */
.to-panel .panel-header .receive-big {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 8px 12px;
  font-size: 16px;
  /* полужирный */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #000;
  background: transparent;
}

/* Select area */
.panel-select {
  flex: 1 1 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}
.panel-select .custom-select {
  width: 100%;
}

/* Swap */
.mix-swap {
  background: #000;       /* чёрный фон вместо синего */
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 20px;
  line-height: 40px;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
  margin-top: 16px;
}
.mix-swap:hover {
  background: #222;       /* чуть светлее чёрного при наведении */
}


/* Custom-select */
.custom-select {
  position: relative;
}
.select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.select-logo {
  width: 24px;
  height: 24px;
}
.arrow {
  margin-left: auto;
}
.options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 20;
}
.search-input {
  width: 100%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid #ddd;
}
.opt-group {
  padding: 8px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
}
.option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
}
.option img {
  width: 20px;
  height: 20px;
}
.option span {
  white-space: nowrap;
  flex: 1;
}
.option:hover {
  background: #eef;
}

/* Wallet & Submit */
.mix-form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
}
.mix-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.mix-submit {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  /* полужирный */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-top: 24px;
}
.mix-submit:hover {
  background: #222;
}

/* SEO-Блок */
.seo-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  color: #555;
}

.seo-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.seo-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #333;
}

.seo-section p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.seo-section ul {
  margin: 0 0 12px 20px;
}

.seo-section li {
  margin-bottom: 6px;
}

/* Contact Us block */
.info-block {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.info-block .label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.info-block .value p {
  margin: 0;
  font-size: 14px;
}

.info-block .value a {
  color: #007bff;
  text-decoration: none;
}

.info-block .value a:hover {
  text-decoration: underline;
}


/* Loader */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  visibility: hidden;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Медиазапрос для мобильных */
@media (max-width: 600px) {
  /* Ставим колонки друг под другом */
  .exchange-panel {
    flex-direction: column;
    gap: 16px;
  }

  /* Центрируем кнопку swap */
  .mix-swap {
    margin: 0 auto 16px;
  }

  /* Подгоняем ширину панелей */
  .panel {
    width: 100%;
  }

  /* Уменьшаем отступы контейнера, чтобы ничего не резалось */
  .mix-container {
    padding: 16px;
  }
}
