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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  max-width: 600px;
  width: 100%;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

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

input[type="text"],
input[type="url"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #5b6ef5;
}

input::placeholder {
  color: #555;
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5b6ef5;
  cursor: pointer;
}

.checkbox-item span {
  font-size: 14px;
  color: #ccc;
}

.section {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: #5b6ef5;
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.blotato-section {
  margin-top: 14px;
  display: none;
}

.blotato-section.visible {
  display: block;
}

.blotato-accounts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #222;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
}

.account-chip:hover {
  border-color: #5b6ef5;
}

.account-chip.selected {
  background: #2a2a5a;
  border-color: #5b6ef5;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #5b6ef5;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #4a5de0;
}

.btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.progress-area {
  margin-top: 24px;
  display: none;
}

.progress-area.visible {
  display: block;
}

.progress-log {
  background: #111;
  border: 1px solid #262626;
  border-radius: 8px;
  padding: 16px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.log-entry {
  padding: 2px 0;
}

.log-entry.progress {
  color: #7aa2f7;
}

.log-entry.warning {
  color: #e0af68;
}

.log-entry.error {
  color: #f7768e;
}

.log-entry.complete {
  color: #9ece6a;
}

.results-area {
  margin-top: 20px;
  display: none;
}

.results-area.visible {
  display: block;
}

.result-card {
  background: #1a2a1a;
  border: 1px solid #2a4a2a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-card .lang {
  font-weight: 600;
  color: #9ece6a;
}

.result-card a {
  color: #7aa2f7;
  text-decoration: none;
  font-size: 14px;
}

.result-card a:hover {
  text-decoration: underline;
}

.fetch-btn {
  padding: 8px 14px;
  background: #333;
  color: #ccc;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.fetch-btn:hover {
  background: #444;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: end;
}

.inline-form input {
  flex: 1;
}
