/* ==========================================
   THEMATIC VARIABLES: SOLAR ORANGE & YELLOW
   ========================================== */
:root {
  --bg-color: #120d0a;        /* Deep volcanic charcoal */
  --card-bg: #1a130e;        /* Dark warm obsidian */
  --text-color: #fcefe6;      /* Soft warm cream */
  --accent-color: #ff9900;    /* Vibrant neon orange */
  --purple-glow: #ffcc00;     /* Warm electric yellow glow */
}

body {
  margin: 0;
  padding: 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: monospace, sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  max-width: 650px;
  width: 100%;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.18);
  border: 1px solid rgba(255, 153, 0, 0.35);
  text-align: center;
}

h1 {
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.35);
}

.subtitle {
  font-size: 0.85rem;
  color: #a88d79;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

input[type="text"], select {
  flex: 1;
  padding: 12px;
  background: #0a0705;
  border: 1px solid #382417;
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.35);
  outline: none;
}

.controls-grid {
  margin-bottom: 15px;
  text-align: left;
}

.control-item label {
  display: block;
  font-size: 0.8rem;
  color: #a88d79;
  margin-bottom: 5px;
}

button {
  background: linear-gradient(135deg, var(--accent-color), var(--purple-glow));
  color: #120d0a;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.token-section {
  text-align: left;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

details summary {
  cursor: pointer;
  color: #a88d79;
}

details summary:hover {
  color: var(--accent-color);
}

.token-section input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  margin-top: 5px;
  background: #080503;
  border: 1px solid #382417;
  color: #a88d79;
  border-radius: 4px;
}

.status {
  font-size: 0.85rem;
  color: #a88d79;
  margin-bottom: 15px;
  min-height: 20px;
}

.output-wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: #080503;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #382417;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 153, 0, 0.15);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.hidden {
  display: none !important;
}

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