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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 { font-size: 22px; margin-bottom: 16px; color: #fff; }
h3 { font-size: 16px; margin-bottom: 12px; color: #ccc; }

a { color: #4a9eff; text-decoration: none; }
a:hover { text-decoration: underline; }

input, button, select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  outline: none;
  width: 100%;
}

input {
  background: #1a1a2e;
  border: 2px solid #2a2a4a;
  color: #e0e0e0;
  margin-bottom: 12px;
}
input:focus { border-color: #4a9eff; }

button {
  background: #4a9eff;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
button:hover { background: #3a8eef; }
button:disabled { background: #2a2a4a; color: #555; cursor: not-allowed; }
button.secondary { background: #2a2a4a; color: #8899aa; }
button.secondary:hover { background: #3a3a5a; }
button.danger { background: #f44336; }
button.danger:hover { background: #d33; }

.card {
  background: #16213e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.balance {
  font-size: 36px;
  font-weight: 700;
  color: #4caf50;
}
.balance::after { content: ' капч'; font-size: 16px; color: #888; font-weight: 400; }

.idserve {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #4a9eff;
  word-break: break-all;
  background: #0f0f1a;
  padding: 8px 12px;
  border-radius: 6px;
  margin: 8px 0;
}

.code-block {
  background: #0a0a14;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #111;
  font-size: 12px;
  color: #8899aa;
  border-bottom: 1px solid #1a1a2e;
}

.copy-btn {
  background: #2a2a4a;
  color: #8899aa;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  width: auto;
}

.copy-btn:hover { background: #3a3a5a; color: #fff; }

.code-block pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #c0c0d0;
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #1a1a2e;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.price-option:hover, .price-option.selected { border-color: #4a9eff; }
.price-option .amount { font-size: 20px; font-weight: 700; color: #fff; }
.price-option .captchas { font-size: 14px; color: #888; }

.toast {
  position: fixed;
  top: 20px; right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #16213e;
  border: 1px solid #4a9eff;
  z-index: 1000;
  animation: slideIn 0.3s;
}
.toast.error { border-color: #f44336; }
.toast.success { border-color: #4caf50; }

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.header .logo { font-size: 18px; font-weight: 700; color: #fff; }
.header .nav { display: flex; gap: 8px; }

.code-input {
  font-size: 28px;
  letter-spacing: 8px;
  text-align: center;
  text-transform: uppercase;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a4a;
}
.info-row:last-child { border: none; }
.info-row .label { color: #888; }
.info-row .value { color: #e0e0e0; font-weight: 500; }

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #2a2a4a;
  font-size: 13px;
}
th { color: #888; font-weight: 600; }
td { color: #e0e0e0; }

.hidden { display: none; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
