.page { padding: 40px 20px; max-width: 760px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 24px; font-size: 14px; }

label {
  display: block; font-size: 13px; font-weight: 600; color: #aaa;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid #262626; margin-bottom: 20px;
}
.tab {
  background: transparent; border: none; color: #888; padding: 12px 18px;
  font-size: 14px; cursor: pointer; transition: all 0.15s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: #ccc; }
.tab.active { color: #ff4444; border-bottom-color: #ff4444; }

.tab-panel {
  background: #0d0d0d; border: 1px solid #262626; border-radius: 12px; padding: 24px;
}

textarea {
  width: 100%; min-height: 180px; resize: vertical;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 8px;
  color: #e1e1e1; font-size: 14px; padding: 14px; outline: none;
  font-family: 'SF Mono', Monaco, monospace; line-height: 1.6;
}
textarea:focus { border-color: #ff4444; }

.settings { display: flex; gap: 16px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.setting { display: flex; flex-direction: column; }
.setting label {
  font-size: 11px; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.setting input {
  width: 80px; padding: 10px 12px; background: #141414; border: 1px solid #2a2a2a;
  border-radius: 6px; color: #fff; font-size: 14px; outline: none;
  font-family: inherit;
}
.setting input:focus { border-color: #ff4444; }

.toggle {
  display: flex; align-items: center; gap: 8px; color: #ccc; font-size: 13px;
  margin-bottom: 0; text-transform: none; letter-spacing: normal; font-weight: 500;
  cursor: pointer;
}
.toggle input { accent-color: #ff4444; width: 15px; height: 15px; margin: 0; }

.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.num-grid .setting { width: 100%; }
.num-grid input { width: 100%; }

.btn-big {
  display: block; width: 100%; padding: 14px 24px;
  background: #ff4444; color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 16px;
  transition: background 0.15s;
}
.btn-big:hover { background: #cc0000; }

.coin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big-action {
  background: #141414; border: 1px solid #2a2a2a; border-radius: 10px;
  padding: 24px 16px; cursor: pointer; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.big-action:hover { border-color: #ff4444; background: #1a1a1a; }
.big-action-icon { font-size: 40px; line-height: 1; }
.big-action-label { color: #e1e1e1; font-weight: 600; font-size: 14px; }

.result {
  margin-top: 20px; padding: 20px; background: linear-gradient(135deg, #1a0606 0%, #0d0d0d 100%);
  border: 1px solid #2a1010; border-radius: 10px; min-height: 60px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
}
.result:empty { display: none; }
.result-chip {
  background: #ff4444; color: #fff; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 18px; font-family: 'SF Mono', Monaco, monospace;
  animation: pop 0.3s;
}
@keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-big {
  color: #ff4444; font-size: 48px; font-weight: 800;
  font-family: 'SF Mono', Monaco, monospace; line-height: 1;
}
.result-label {
  color: #888; font-size: 13px; margin-top: 8px; width: 100%; text-align: center;
}

.history-card {
  margin-top: 20px; background: #0d0d0d; border: 1px solid #262626;
  border-radius: 10px; padding: 14px 18px;
}
.history-header {
  display: flex; justify-content: space-between; align-items: center;
  color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.clear-btn {
  background: transparent; border: none; color: #666; cursor: pointer;
  font-size: 12px; text-transform: uppercase;
}
.clear-btn:hover { color: #ff4444; }
#history { color: #aaa; font-size: 13px; font-family: 'SF Mono', Monaco, monospace; }
.history-row { padding: 4px 0; border-bottom: 1px solid #1a1a1a; }
.history-row:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .num-grid { grid-template-columns: 1fr; }
  .coin-grid { grid-template-columns: 1fr; }
  .result-big { font-size: 36px; }
}
