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

:root {
  --bg: #FAF7F2;
  --ink: #1C1917;
  --orange: #EE4D2D;
  --paper: #FFFFFF;
  --line: #E7E1D8;
  --muted: #8A8175;
  --green: #1F7A4D;
  --green-bg: #E9F5EE;
  --amber: #B8860B;
  --amber-bg: #FBF3DF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 60px; }

.brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--orange);
  color: #fff; font-weight: 800; font-family: 'Space Grotesk', sans-serif;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
h1 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; line-height: 1.15; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 24px; }

.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 12px; }

.banner-warn {
  background: var(--amber-bg); border: 1.5px solid #EBD9A0; border-radius: 10px;
  padding: 10px 13px; font-size: 12.5px; color: #7A5C09; margin-bottom: 22px; line-height: 1.5;
}
.banner-error {
  background: #FBEAE8; border: 1.5px solid #E7C6C3; border-radius: 10px;
  padding: 10px 13px; font-size: 13px; color: #B3261E; margin-bottom: 16px;
}

label { display: block; margin-bottom: 16px; }
label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, select {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1.5px solid var(--line);
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--paper); outline: none;
}
input:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,77,45,0.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--orange);
  background: var(--orange); color: #fff; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-subtle { background: #F1EDE5; color: var(--ink); border-color: #F1EDE5; }
.btn-danger { background: transparent; color: #B3261E; border-color: #E7C6C3; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: #F1EDE5; color: var(--muted);
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }

.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 10px;
}

.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.affiliate-name { font-weight: 700; font-size: 15px; }
.affiliate-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.id-box {
  margin-top: 10px; font-size: 13px; font-family: monospace; background: #F6F3EC;
  padding: 6px 10px; border-radius: 6px; display: inline-block;
}
.muted-row { opacity: 0.55; }
