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

body {
  background-color: #1a1a2e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.card {
  background: #16213e;
  border-radius: 12px;
  padding: 40px 32px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.iban-output {
  color: #e2e8f0;
  text-align: center;
  font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  font-size: clamp(18px, 4.5vw, 32px);
  letter-spacing: 1.5px;
  padding: 24px 16px;
  margin-bottom: 8px;
  background: #0f3460;
  border-radius: 8px;
  word-break: break-all;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease;
  cursor: pointer;
}

.iban-output:hover {
  background: #133a6a;
}

.copy-toast {
  text-align: center;
  color: #53cf8a;
  font-size: 13px;
  height: 20px;
  line-height: 20px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
}

.controls {
  margin-bottom: 16px;
}

.controls select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #233a5c;
  border-radius: 6px;
  background: #0f3460;
  color: #e2e8f0;
  appearance: auto;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.controls select:focus {
  outline: none;
  border-color: #4a8fe7;
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.btn {
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-generate {
  flex: 1;
  background: #e94560;
  color: #fff;
}

.btn-generate:hover {
  background: #d63b55;
}

.btn-copy {
  background: #233a5c;
  color: #e2e8f0;
  min-width: 80px;
}

.btn-copy:hover {
  background: #2d4a72;
}

.bulk-section {
  border-top: 1px solid #233a5c;
  padding-top: 20px;
}

.bulk-section label {
  display: block;
  color: #8899b4;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.bulk-controls {
  display: flex;
  gap: 10px;
}

.bulk-controls input {
  width: 72px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #233a5c;
  border-radius: 6px;
  background: #0f3460;
  color: #e2e8f0;
  text-align: center;
}

.bulk-controls input:focus {
  outline: none;
  border-color: #4a8fe7;
}

.btn-bulk {
  flex: 1;
  background: #233a5c;
  color: #e2e8f0;
}

.btn-bulk:hover {
  background: #2d4a72;
}

.bulk-output {
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.bulk-output::-webkit-scrollbar {
  width: 6px;
}

.bulk-output::-webkit-scrollbar-track {
  background: transparent;
}

.bulk-output::-webkit-scrollbar-thumb {
  background: #233a5c;
  border-radius: 3px;
}

.bulk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  color: #c4d0e2;
  background: #0f3460;
  border-radius: 6px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeIn 0.25s ease forwards;
}

.bulk-item .copy-single {
  background: none;
  border: none;
  color: #6b82a6;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.bulk-item .copy-single:hover {
  color: #e2e8f0;
  background: #233a5c;
}

.btn-copy-bulk {
  width: 100%;
  margin-top: 10px;
  background: #233a5c;
  color: #e2e8f0;
  padding: 10px;
}

.btn-copy-bulk:hover {
  background: #2d4a72;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.iban-pop {
  animation: popIn 0.2s ease;
}