* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: #0A0E17;
  color: #E8EBF2;
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 40px; border-bottom: 1px solid #1B2233; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 9px; background: #6C8EFF;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; color: #0A0E17;
}
.brand-title { font-size: 17px; font-weight: 700; }
.brand-title span { color: #7C879C; font-weight: 500; }
.brand-sub { font-size: 12px; color: #7C879C; margin-top: 1px; }
.nav { display: flex; gap: 22px; font-size: 13.5px; }
.nav a { color: #9AA3B5; text-decoration: none; }

.country-strip { display: flex; align-items: center; gap: 10px; padding: 16px 40px 0 40px; flex-wrap: wrap; }
.country-pill {
  padding: 7px 16px; border-radius: 20px; background: #121826; border: 1px solid #1E2536;
  color: #9AA3B5; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.country-pill.active { background: #1E2536; border-color: #6C8EFF; color: #E8EBF2; }
.country-pill span { opacity: 0.9; font-weight: 500; }

.main { max-width: 1400px; width: 100%; margin: 0 auto; padding: 24px 40px 40px 40px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.content-col { flex: 3 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.card { background: #121826; border: 1px solid #1E2536; border-radius: 16px; padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.card-head h1 { font-size: 20px; font-weight: 700; }
.card-head h1 span { color: #7C879C; font-weight: 500; font-size: 15px; }
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.card h2 span { color: #7C879C; font-weight: 500; font-size: 13px; }

.mode-toggle { display: flex; background: #0D111C; border: 1px solid #1E2536; border-radius: 10px; padding: 4px; }
.mode-btn { border: none; background: transparent; color: #9AA3B5; padding: 8px 18px; border-radius: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mode-btn.active { background: #6C8EFF; color: #0A0E17; }

.controls { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 1 1 220px; }
.field label { font-size: 12px; color: #8B93A8; }
select, input[type=number] {
  background: #0D111C; border: 1px solid #2A3247; color: #E8EBF2;
  padding: 11px 12px; border-radius: 9px; font-size: 14px; font-family: inherit;
  height: 42px; box-sizing: border-box;
}
input[type=number] { width: 120px; font-family: 'IBM Plex Mono', monospace; }
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239AA3B5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #B7BECC; padding: 11px 4px; cursor: pointer; }
.dim { color: #7C879C; font-size: 11.5px; }
.generate-btn {
  background: #6C8EFF; color: #0A0E17; border: none; padding: 12px 26px; border-radius: 9px;
  font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  position: relative; transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.generate-btn:hover:not(:disabled) { background: #7C9AFF; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(108, 142, 255, 0.28); }
.generate-btn:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }
.generate-btn:disabled { cursor: not-allowed; opacity: 0.75; }
.generate-btn.loading .btn-label { opacity: 0; }
.generate-btn.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid rgba(10, 14, 23, 0.35); border-top-color: #0A0E17;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

@keyframes result-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-enter { animation: result-enter .25s ease-out; }

.result-box { background: #0D111C; border: 1px solid #1E2536; border-radius: 12px; padding: 22px 24px; }
.result-empty { background: #0D111C; border: 1px dashed #2A3247; border-radius: 12px; padding: 40px; text-align: center; color: #7C879C; font-size: 13.5px; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.result-name { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 600; }
.tax-free-badge { background: #1B2E22; color: #4FCB8D; border: 1px solid #2A4A38; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; margin-left: 8px; }
.copy-all-btn, .copy-field-btn { background: transparent; border: 1px solid #2A3247; color: #B7BECC; padding: 7px 14px; border-radius: 7px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.copy-field-btn { border: none; background: none; color: #7C879C; padding: 0; font-size: 11.5px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 14px 20px; }
.result-field-label { font-size: 11px; color: #7C879C; margin-bottom: 4px; }
.result-field-value { font-family: 'IBM Plex Mono', monospace; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.batch-table-wrap { border: 1px solid #1E2536; border-radius: 12px; overflow: hidden; }
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #0D111C; border-bottom: 1px solid #1E2536; flex-wrap: wrap; gap: 10px; }
.batch-toolbar-actions { display: flex; gap: 8px; }
.export-btn { background: transparent; border: 1px solid #2A3247; color: #B7BECC; padding: 6px 13px; border-radius: 7px; font-size: 12px; cursor: pointer; font-family: inherit; }
.batch-scroll { max-height: 480px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: 'IBM Plex Mono', monospace; }
th { text-align: left; padding: 10px 12px; color: #7C879C; font-weight: 600; border-bottom: 1px solid #1E2536; position: sticky; top: 0; background: #121826; }
td { padding: 9px 12px; border-bottom: 1px solid #171D2B; }

.ad-slot { background: #0F1420; border: 1px dashed #262E42; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #7C879C; }
.ad-banner { padding: 18px; min-height: 90px; }
.sidebar { flex: 1 1 240px; max-width: 280px; position: sticky; top: 24px; align-self: flex-start; height: 600px; padding: 16px; }

@media (max-width: 900px) {
  .sidebar { position: static; height: 250px; max-width: none; }
}

.disclaimer { background: #0F1420; border: 1px solid #1E2536; border-radius: 16px; padding: 24px 28px; }
.disclaimer h2 { font-size: 14px; font-weight: 700; color: #B7BECC; margin-bottom: 10px; }
.disclaimer p { font-size: 12.5px; color: #7C879C; line-height: 1.8; }
.disclaimer p + p { margin-top: 10px; }
.disclaimer p strong { color: #9AA3B5; font-weight: 700; }

.faq-item { border-bottom: 1px solid #1B2233; }
.faq-question { width: 100%; background: none; border: none; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; color: #E8EBF2; font-family: inherit; }
.faq-question span.q-text { font-size: 14px; font-weight: 600; }
.faq-answer { padding: 0 0 16px 0; font-size: 13.5px; color: #9AA3B5; line-height: 1.7; }

.footer { border-top: 1px solid #1B2233; padding: 20px 40px; text-align: center; font-size: 12px; color: #7C879C; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #6C8EFF; color: #0A0E17; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; }
