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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: #e0e0e0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.subtitle {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-top: 5px;
}

.swap-panel {
  background: rgba(30, 30, 50, 0.8);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.currency-selector {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.currency-input {
  flex: 1;
  min-width: 200px;
}

.currency-input label {
  display: block;
  margin-bottom: 8px;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.currency-input select,
.currency-input input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(20, 20, 35, 0.8);
  color: #fff;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.currency-input select:focus,
.currency-input input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.swap-direction-btn {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swap-direction-btn:hover {
  background: rgba(102, 126, 234, 0.3);
}

.rate-display {
  text-align: center;
  padding: 15px;
  background: rgba(20, 20, 35, 0.5);
  border-radius: 8px;
  margin-bottom: 20px;
}

.rate-label {
  color: #a0a0a0;
  margin-right: 10px;
}

.rate-value {
  color: #667eea;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.address-section,
.fee-tier-section,
.deposit-section,
.wheel-section,
.output-section {
  margin-top: 25px;
}

h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.address-input input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(20, 20, 35, 0.8);
  color: #fff;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.address-warning {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 5px;
}

.extra-id-section {
  margin-top: 15px;
}

.extra-id-section label {
  display: block;
  margin-bottom: 8px;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.extra-id-section input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(20, 20, 35, 0.8);
  color: #fff;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.extra-id-note {
  color: #ffa500;
  font-size: 0.85rem;
  margin-top: 5px;
}

.fee-tier-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.fee-tier-btn {
  flex: 1;
  min-width: 150px;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.3);
  background: rgba(20, 20, 35, 0.8);
  color: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fee-tier-btn:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.fee-tier-btn.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.2);
}

.fee-tier-btn.premium.selected {
  border-color: #ff6600;
  background: rgba(255, 102, 0, 0.2);
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.tier-fee {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
}

.fee-tier-btn.premium .tier-fee {
  color: #ff6600;
}

.tier-desc {
  font-size: 0.85rem;
  color: #a0a0a0;
}

.deposit-address {
  background: rgba(20, 20, 35, 0.8);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.address-label {
  display: block;
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.address {
  display: block;
  word-break: break-all;
  color: #667eea;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.copy-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.3);
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(102, 126, 234, 0.3);
}

.extra-id-display {
  background: rgba(255, 102, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 102, 0, 0.3);
}

.extra-id-label {
  display: block;
  color: #ffa500;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.extra-id-value {
  display: block;
  word-break: break-all;
  color: #ffa500;
  font-family: 'JetBrains Mono', monospace;
}

.deposit-timer {
  text-align: center;
  color: #ffa500;
  font-weight: 600;
  margin-bottom: 15px;
}

.deposit-status {
  text-align: center;
}

.status-indicator {
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
}

.status-indicator.loading {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-indicator.pending {
  background: rgba(255, 165, 0, 0.1);
  color: #ffa500;
}

.status-indicator.confirming {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.status-indicator.exchanging {
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
}

.status-indicator.sending {
  background: rgba(0, 191, 255, 0.1);
  color: #00bfff;
}

.status-indicator.finished {
  background: rgba(0, 255, 127, 0.2);
  color: #00ff7f;
}

.status-indicator.failed,
.status-indicator.refunded {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.wheel-section h3 {
  text-align: center;
}

.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 25px solid #ff6600;
  position: relative;
  top: -5px;
  z-index: 10;
}

.wheel {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #ff6600;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
  overflow: hidden;
}

#wheel-svg {
  width: 100%;
  height: 100%;
}

.spin-btn {
  padding: 15px 40px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.spin-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.spin-btn:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
}

.spin-result {
  text-align: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(20, 20, 35, 0.5);
  border-radius: 8px;
}

.result-segment {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.result-multiplier {
  display: block;
  font-size: 1.2rem;
  color: #667eea;
}

.result-bonus {
  display: block;
  color: #00ff7f;
  margin-top: 5px;
}

.output-section h3 {
  text-align: center;
  color: #00ff7f;
}

.output-details {
  background: rgba(20, 20, 35, 0.5);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.output-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.output-row:last-child {
  border-bottom: none;
}

.output-row.bonus {
  color: #00ff7f;
}

.output-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
}

.tx-info {
  background: rgba(20, 20, 35, 0.5);
  padding: 15px;
  border-radius: 8px;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tx-row:last-child {
  margin-bottom: 0;
}

.tx-row span {
  color: #a0a0a0;
}

.tx-row code {
  color: #667eea;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.start-btn {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-btn:disabled {
  background: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

.info-panel {
  background: rgba(30, 30, 50, 0.6);
  border-radius: 16px;
  padding: 25px;
  margin-top: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-panel h3 {
  margin-bottom: 15px;
}

.info-panel ol {
  margin-left: 20px;
  color: #c0c0c0;
  line-height: 1.8;
}

.info-panel ul.fee-info {
  margin-left: 20px;
  margin-top: 10px;
  color: #a0a0a0;
}

.wheel-odds {
  margin-top: 20px;
  padding: 15px;
  background: rgba(20, 20, 35, 0.5);
  border-radius: 8px;
}

.wheel-odds h4 {
  margin-bottom: 10px;
  color: #fff;
}

.wheel-odds ul {
  list-style: none;
}

.wheel-odds li {
  padding: 5px 0;
  color: #a0a0a0;
}

.jackpot-dot,
.gold-dot,
.silver-dot,
.bronze-dot,
.standard-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.jackpot-dot { background: #ff6600; }
.gold-dot { background: #ffd700; }
.silver-dot { background: #c0c0c0; }
.bronze-dot { background: #cd7f32; }
.standard-dot { background: #4a4a4a; }

.powered-by {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.powered-by a {
  color: #667eea;
  text-decoration: none;
}

.powered-by a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  
  .currency-selector {
    flex-direction: column;
  }
  
  .swap-direction-btn {
    align-self: center;
    transform: rotate(90deg);
  }
  
  .fee-tier-options {
    flex-direction: column;
  }
}
