@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --magenta: #C2185B;
  --purple: #6A1B9A;
  --brand-gradient: linear-gradient(135deg, #C2185B, #6A1B9A);
  --ink: #2E2E2E;
  --bg: #f6f5f8;
  --card: #ffffff;
  --border: #e3dee6;
  --text: #2E2E2E;
  --muted: #6b6470;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
header.topbar {
  background: var(--brand-gradient);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.topbar .brand { display: flex; align-items: center; gap: 10px; }
header.topbar .brand img { height: 34px; width: auto; display: block; }
header.topbar .brand-text { line-height: 1.1; }
header.topbar .brand-text .name { font-weight: 800; font-size: 17px; letter-spacing: 0.2px; }
header.topbar .brand-text .tagline { font-size: 10.5px; font-weight: 400; opacity: 0.92; }
header.topbar nav a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 14px; opacity: .92; }
.container { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(46,46,46,0.04);
}
h2 { color: var(--magenta); font-weight: 700; font-size: 18px; margin-top: 0; }
h3 { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; margin-bottom: 4px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); }
textarea { min-height: 60px; }
button {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
}
button.secondary { background: #fff; color: var(--magenta); border: 1.5px solid var(--magenta); }
button.danger { background: #b71c1c; }
button:disabled { opacity: .5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.step {
  flex: 1; text-align: center; padding: 8px; border-radius: 8px;
  background: #f1e9f0; color: var(--muted); font-size: 13px; font-weight: 500;
}
.step.active { background: var(--brand-gradient); color: #fff; font-weight: 700; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
  margin-top: 0;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  position: relative;
  top: 2px;
}
.tab-btn:hover { color: var(--magenta); }
.tab-btn.active {
  color: var(--magenta);
  border-bottom: 2px solid var(--magenta);
}
.tab-panel .card:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #fbe1ec; color: var(--magenta); font-weight: 600; }
.badge.warn { background: #fff3e0; color: #e65100; }
.result-box { background: #faf3f8; border-left: 4px solid var(--magenta); padding: 14px; border-radius: 8px; margin-top: 10px; }
.result-box strong { font-size: 22px; display: block; color: var(--purple); font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: #b71c1c; font-size: 13px; margin-top: 8px; }
.actions-row { display: flex; gap: 8px; }
