:root {
  --ink: #0f2744;
  --muted: #64748b;
  --card: #ffffff;
  --line: #dbe3ee;
  --accent: #0f766e;
  --accent-2: #1d4ed8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #eef3f8;
  min-height: 100vh;
}
.adv-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(29, 78, 216, 0.12), transparent 55%),
    radial-gradient(800px 380px at 92% 0%, rgba(15, 118, 110, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafc, #e8eef5);
}
.adv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 980px;
  margin: 0 auto;
}
.adv-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.adv-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.adv-lang-switcher {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}
.adv-lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.adv-lang-btn.active {
  background: #0f2744;
  border-color: #0f2744;
  color: #fff;
}
.adv-slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 4px;
  display: grid;
  gap: 8px;
}
.adv-slot legend {
  font-weight: 700;
  padding: 0 4px;
}
.adv-slot-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
}
.adv-slot-option:has(input:checked) {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.adv-slot-option input { margin-top: 3px; }
.adv-slot-option strong { display: block; font-size: 0.92rem; }
.adv-slot-option small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; margin-top: 2px; }
.adv-nav a, .linkish {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.adv-wrap { max-width: 980px; margin: 0 auto; padding: 8px 20px 48px; }
.adv-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.adv-hero p { color: var(--muted); line-height: 1.55; margin: 0 0 12px; max-width: 40rem; }
.adv-bullets { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.6; }
.adv-flash {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
}
.adv-flash.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.adv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.06);
  margin-top: 16px;
}
.adv-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .adv-grid { grid-template-columns: 1fr; }
}
.adv-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.adv-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.adv-tab {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.adv-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.adv-form { display: flex; flex-direction: column; gap: 12px; }
.adv-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 650; color: #334155; }
.adv-form input, .adv-form select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.adv-form button[type="submit"] {
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), #0f766e 40%, var(--accent-2));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.adv-form button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
  .rate-hint {
    margin: 0 0 12px;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.88rem;
  }
  .rate-hint li { margin: 0.2rem 0; }
.price-line { margin: 0; font-size: 0.95rem; }
.country-combobox { position: relative; }
.country-combo-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.country-combo-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 39, 68, 0.16);
}
.country-combo-panel[hidden] { display: none; }
.country-combo-panel input[type="search"] {
  width: 100%;
  margin-bottom: 7px;
}
.country-combo-list {
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid #eef2f7;
}
.country-combo-option {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  padding: 7px 6px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 0.83rem !important;
}
.country-combo-option:hover { background: #f8fafc; }
.country-combo-option input {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.country-combo-option code {
  min-width: 28px;
  color: #0f766e;
  font-weight: 800;
}
.camp-list { display: flex; flex-direction: column; gap: 12px; }
.camp-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 640px) {
  .camp-item { grid-template-columns: 1fr; }
}
.camp-preview { width: 100%; }
.camp-preview-label {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: #64748b; margin-bottom: 6px;
}
.camp-preview-frame {
  display: block; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #f8fafc; text-decoration: none; color: inherit;
}
.camp-preview-frame img {
  width: 100%; object-fit: cover; display: block; background: #e2e8f0;
}
.camp-preview-strip .camp-preview-frame img,
.camp-preview-article_top .camp-preview-frame img { aspect-ratio: 2 / 1; height: auto; }
.camp-preview-infeed .camp-preview-frame img,
.camp-preview-article_mid .camp-preview-frame img { aspect-ratio: 16 / 9; height: auto; min-height: 120px; }
.camp-preview-caption {
  display: block; padding: 7px 9px 9px; font-size: 0.78rem; font-weight: 700;
  line-height: 1.3; color: #334155;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.camp-preview-hint {
  margin-top: 6px; font-size: 0.75rem; color: var(--muted); line-height: 1.35;
}
.edit-image-preview { margin: 8px 0 4px; max-width: 320px; }
.camp-item .meta { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.camp-item .title { font-weight: 750; color: var(--ink); margin-bottom: 2px; }
.camp-link a { color: #0f766e; font-weight: 700; text-decoration: none; }
.camp-link a:hover { text-decoration: underline; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.active { background: #d1fae5; color: #065f46; }
.badge.pending_payment, .badge.paid { background: #fef3c7; color: #92400e; }
.badge.ended, .badge.rejected, .badge.paused { background: #fee2e2; color: #991b1b; }
.camp-actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.camp-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
}
.adv-btn-secondary {
  border: 1px solid var(--line) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}
.adv-btn-danger {
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.adv-form-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px;
}
.adv-form-actions .adv-btn-secondary {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.adv-foot {
  text-align: center;
  padding: 8px 20px 28px;
  color: var(--muted);
  font-size: 0.8rem;
}
.adv-copy {
  margin: 0 0 8px;
  font-weight: 600;
}
.adv-foot-links {
  margin-top: 10px;
}
.adv-foot-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.adv-pay-methods { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.adv-pay-methods legend { padding: 0 6px; font-weight: 700; font-size: 0.92rem; }
.adv-pay-list { display: flex; flex-direction: column; gap: 8px; }
.adv-pay-option {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  background: #fff;
}
.adv-pay-option:has(input:checked) { border-color: #0f766e; background: #f0fdfa; }
.adv-pay-option.is-disabled { opacity: 0.55; cursor: not-allowed; }
.adv-pay-option small { display: block; color: var(--muted); margin-top: 2px; }
.adv-pay-instructions {
  margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a; line-height: 1.45;
}
.adv-pay-note { white-space: pre-wrap; margin-top: 10px; }
.adv-bank-box { display: grid; gap: 6px; }
.adv-bank-row {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px dashed #fcd34d;
}
.adv-bank-row:last-child { border-bottom: 0; }
.adv-bank-row span { color: #92400e; }
.adv-bank-row b { font-variant-numeric: tabular-nums; word-break: break-all; }
.adv-bank-qr { text-align: center; margin-bottom: 12px; }
.adv-bank-qr-label { font-weight: 700; color: #92400e; margin-bottom: 8px; }
.adv-bank-qr img {
  width: min(220px, 70vw); height: auto; background: #fff;
  border: 1px solid #fde68a; border-radius: 12px; padding: 10px;
}
