/* ============================================================
   BetArbi — brand palette (from the logo) + modern UI
   ============================================================ */
:root {
  --navy: #16263b;
  --navy-dark: #0e1a2b;
  --navy-soft: #2a3f5c;
  --green: #16b24a;
  --green-dark: #0f8f3a;
  --green-light: #e9f9ef;

  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1c2530;
  --muted: #5b6675;
  --line: #e7ecf2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(16, 38, 59, .35);
  --shadow-sm: 0 6px 20px -10px rgba(16, 38, 59, .25);
  --maxw: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--green-dark); }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 56px;
}
.nav-brand {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.4px;
  text-decoration: none;
}
.nav-brand span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  padding: 8px 13px;
  color: #c7d2e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-links a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-links a.active { background: var(--green); color: #fff; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(22,178,74,.28), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 44px 0 130px;
  text-align: center;
  color: #fff;
}
/* soft green glow blob */
.hero-glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(22,178,74,.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.logo-card {
  display: inline-block;
  max-width: 100%;
  background: #fff;
  padding: 14px 30px;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.55);
}
.logo-card img {
  display: block;
  width: min(400px, 74vw);   /* never wider than the viewport on small screens */
  height: auto;
}

.hero-title {
  margin: 22px 0 0;
  font-size: 33px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-title span { color: #4ade80; }

.hero-sub {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 17px;
  color: #c7d2e0;
  font-weight: 400;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 26px 0 0;
  padding: 0;
}
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #eaf0f7;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.pills .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,178,74,.25);
}

/* ===================== MAIN ===================== */
.main {
  position: relative;
  z-index: 2;
  margin-top: -80px;
  padding-bottom: 30px;
}
.breadcrumb {
  margin: 0 0 14px;
  font-size: 13px;
  color: #c7d2e0;            /* sits over the navy hero overlap */
}
.breadcrumb a { color: #8fe3a8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: rgba(255, 255, 255, .4); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card.pad { padding: 26px 28px; }

/* ===================== CALCULATOR ===================== */
.calculator {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 130%);
  color: #fff;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 18px 14px;
}
.top-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.top-main {
  flex: 1 1 320px;
  min-width: 0;            /* allows text to wrap instead of overflowing */
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.input-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
  height: 38px;
}
.input-group label,
.input-group span {
  min-width: 46px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--navy);
  border-right: 1px solid #d7dee7;
  background: #eef2f7;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
input, select {
  height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,178,74,.18); }
.input-group input {
  border: 0;
  border-radius: 0;
  width: 180px;
  background: #eef2f7;
  font-weight: 600;
}
.input-group input:focus { box-shadow: none; }

.status {
  flex: 0 0 auto;
  align-self: center;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  min-width: 150px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.status.good { background: var(--green-light); border-color: #bdeccb; color: var(--green-dark); }
.status.bad { background: #fdecec; border-color: #f6c9c9; color: #c23934; }
.status.neutral { background: #eef2f7; border-color: #e0e6ee; color: #66717f; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* columns respect widths instead of stretching to content */
}
th {
  background: #fbfcfe;
  padding: 14px 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th:first-child { width: 170px; }
th:nth-child(2) { width: 30%; }
th:nth-child(3) { width: 38%; }
th:nth-child(4) { width: 12%; }
td {
  padding: 9px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:hover { background: #fafbfd; }
td.row-label { font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
td input { width: 100%; }
.profit-cell { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.profit-cell.profit-pos { color: var(--green-dark); }
.profit-cell.profit-neg { color: #c23934; }
.profit-cell.profit-zero { color: var(--muted); }
.calc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
}
.amount-field { display: flex; align-items: center; gap: 10px; }
.amount-field label { font-weight: 700; color: var(--navy); font-size: 15px; }
.amount-field input { width: 150px; font-weight: 600; }
button {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 20px -10px rgba(15,143,58,.7);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
  min-width: 140px;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 24px -10px rgba(15,143,58,.8); }
button:active { transform: translateY(0); }
.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 470px;
}

/* ============ FREE BET CALCULATOR (per-row free toggle) ============ */
.row-label span { display: block; }

/* Optional per-row note / label field (dashed = clearly optional) */
.note {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px dashed #cdd6e2;
  border-radius: 7px;
}
.note::placeholder { color: #9aa7b5; font-weight: 400; font-style: italic; }
.note:focus { border-style: solid; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 178, 74, .12); }
.free-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}
.free-toggle input {
  width: 15px; height: 15px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.fb-calc th:first-child, .fb-calc td.row-label { width: 170px; }
@media (max-width: 560px) {
  .fb-calc th:first-child, .fb-calc td.row-label { width: 96px; }
}

/* ===================== CONTENT ===================== */
.content { margin-top: 46px; }
.content p { color: #38424f; }
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 48px 0 26px;
  letter-spacing: -.3px;
}
.content h2 {
  color: var(--navy);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.2px;
}
.content .card.pad h2 { position: relative; padding-left: 16px; }
.content .card.pad h2::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 5px; border-radius: 3px;
  background: var(--green);
}

/* Steps grid */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -16px rgba(16,38,59,.3); }
.step-num {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.muted-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 18px auto 0;
  max-width: 640px;
}

/* Article / guide */
.article { max-width: 768px; margin: 0 auto; }
.article h2 { margin-top: 34px; }
.article h3 { color: var(--navy); font-size: 17px; margin: 22px 0 4px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 6px 0; }
.key-takeaways {
  background: var(--green-light);
  border: 1px solid #bdeccb;
  border-radius: 14px;
  padding: 18px 24px;
  margin: 0 0 10px;
}
.key-takeaways h2 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--green-dark);
  border: 0;
  padding: 0;
}
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { margin: 6px 0; }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq dt {
  font-weight: 700;
  color: var(--navy);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-left: 44px;
}
.faq dt::before {
  content: "?";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: 13px; font-weight: 800;
}
.faq dd {
  margin: 0;
  padding: 12px 20px 4px;
  color: #38424f;
  font-size: 14.5px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  margin-top: 60px;
  background: var(--navy-dark);
  color: #aeb9c7;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.footer-brand span { color: var(--green); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-bottom: 18px;
}
.footer-links a {
  color: #aeb9c7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.footer-links a:hover { color: #fff; }
.site-footer .disclaimer {
  max-width: 720px;
  margin: 0 auto 12px;
}
.site-footer .disclaimer strong { color: #f0a5a2; }
.footer-legal { margin: 8px 0 6px; }
.footer-legal a { color: #aeb9c7; text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { color: #4a586b; margin: 0 9px; }
.site-footer .copy { color: #76849a; margin: 0; }

/* Legal / policy pages */
.legal h2 { font-size: 18px; margin-top: 24px; }
.legal h2:first-of-type { margin-top: 0; }
.legal code {
  background: #eef2f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .92em;
  color: var(--navy);
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 350px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px -18px rgba(16, 38, 59, .5);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility .35s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner p { margin: 0 0 12px; color: var(--muted); }
.cookie-banner strong { color: var(--navy); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  transition: filter .12s;
}
.cookie-btn:hover { filter: brightness(1.06); }
.cookie-btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-btn.ghost:hover { background: #f4f7fb; filter: none; }
@media (max-width: 480px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 850px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 32px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  th:first-child { width: 70px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 110px; }
  .logo-card { padding: 10px 18px; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .card.pad { padding: 20px; }

  /* compact 4-column table that keeps Profit visible */
  .top-area { padding: 18px 16px; }
  th, td { padding-left: 7px; padding-right: 7px; }
  th { font-size: 10px; letter-spacing: .2px; }
  th:first-child, td.row-label { width: 96px; font-size: 12px; }
  th:nth-child(4) { width: 48px; }
  td input { padding: 7px 8px; font-size: 13px; }
  .note { height: 28px; font-size: 11px; margin-top: 5px; }
  .profit-cell { font-size: 13px; }

  /* Amount + button stack full width — button always visible */
  .calc-footer { flex-direction: column; align-items: stretch; padding: 16px; }
  .amount-field { justify-content: space-between; }
  .amount-field input { flex: 1; width: auto; margin-left: 12px; }
  .calc-footer button { width: 100%; min-width: 0; }
}
