/* ============================================
   MONEROSWAPPER 1:1 DESIGN - design.css
   ============================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.5;
  padding: 20px 0 40px;
  min-height: 100vh;
}

/* Container */
.mix-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Section with Benefits */
.mix-header {
  text-align: center;
  margin-bottom: 24px;
}

.mix-logo {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* Benefits row (100% Anonymous | No KYC | Instant Exchange) */
.benefits-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cccccc;
  font-weight: 500;
}

.benefit-item::before {
  content: "✓";
  color: #ff8c00;
  font-weight: bold;
  font-size: 16px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #ff8c00;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-text {
  color: #ffffff;
}

/* Main exchange box */
.exchange-box {
  background: #1a1b1f;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

/* Exchange panel layout */
.exchange-panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

/* Panels */
.panel {
  flex: 1;
  background: #2a2b2f;
  border: 1px solid #404040;
  border-radius: 8px;
  overflow: hidden;
}

.panel-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #404040;
  background: #2a2b2f;
}

/* Panel header with input */
.panel-header {
  padding: 16px;
  background: #2a2b2f;
}

.from-panel .panel-header {
  position: relative;
}

.from-panel .panel-header input {
  width: 100%;
  padding: 12px 0;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  border: none;
  background: transparent;
  color: #ffffff;
  outline: none;
}

.from-panel .panel-header input::placeholder {
  color: #666666;
}

/* Min/Max hint */
.amount-hint {
  font-size: 12px;
  color: #666666;
  margin-top: 4px;
}

.amount-hint span {
  color: #ff8c00;
  cursor: pointer;
}

/* Rate toggle (Float/Fixed) */
.rate-toggle {
  display: flex;
  background: #1a1b1f;
  border-radius: 6px;
  padding: 4px;
  margin-top: 12px;
  gap: 4px;
}

.rate-option {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #888888;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.rate-option.active {
  background: #404040;
  color: #ffffff;
}

/* Receive panel */
.to-panel .panel-header {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.receive-big {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  width: 100%;
}

/* Select area */
.panel-select {
  padding: 12px 16px;
  background: #2a2b2f;
  border-top: 1px solid #404040;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #1a1b1f;
  border: 1px solid #404040;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-trigger:hover {
  border-color: #ff8c00;
}

.select-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.select-value {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  color: #888888;
  font-size: 12px;
  transition: transform 0.2s;
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

/* Dropdown options */
.options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a1b1f;
  border: 1px solid #404040;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.options::-webkit-scrollbar {
  width: 8px;
}

.options::-webkit-scrollbar-track {
  background: #1a1b1f;
}

.options::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #404040;
  background: #2a2b2f;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: #666666;
}

.opt-group {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #1a1b1f;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #2a2b2f;
}

.option:last-child {
  border-bottom: none;
}

.option:hover {
  background: #2a2b2f;
}

.option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.option span {
  font-size: 14px;
  color: #ffffff;
  flex: 1;
}

/* Swap button */
.mix-swap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ff8c00;
  border: 4px solid #1a1b1f;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.mix-swap:hover {
  background: #e07a00;
  transform: translate(-50%, -50%) rotate(180deg);
}

/* Wallet input section */
.wallet-section {
  margin-top: 20px;
}

.mix-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #cccccc;
}

.mix-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #2a2b2f;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.mix-form input[type="text"]:focus {
  border-color: #ff8c00;
}

.mix-form input[type="text"]::placeholder {
  color: #666666;
}

/* Submit button */
.mix-submit {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: #ff8c00;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mix-submit:hover {
  background: #e07a00;
}

/* SEO Section */
.seo-section {
  margin-top: 40px;
  padding: 24px;
  background: #1a1b1f;
  border: 1px solid #333333;
  border-radius: 12px;
}

.seo-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
  line-height: 1.4;
}

.seo-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: #ffffff;
}

.seo-section p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #aaaaaa;
  font-size: 15px;
}

.seo-section ul {
  margin: 0 0 16px 20px;
  color: #aaaaaa;
}

.seo-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Contact block */
.info-block {
  margin-top: 24px;
  padding: 20px 24px;
  background: #1a1b1f;
  border: 1px solid #333333;
  border-radius: 12px;
  text-align: center;
}

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

.info-block .value a {
  color: #ff8c00;
  text-decoration: none;
  font-weight: 500;
}

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

/* Loader */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #404040;
  border-top-color: #ff8c00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
  .exchange-panel {
    flex-direction: column;
  }
  
  .mix-swap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -8px auto;
    order: 2;
  }
  
  .mix-swap:hover {
    transform: rotate(180deg);
  }
  
  .panel {
    order: 1;
  }
  
  .panel:last-child {
    order: 3;
  }
  
  .benefits-row {
    gap: 16px;
  }
  
  .benefit-item {
    font-size: 13px;
  }
}