/* AICTrader – korisnički web. Bez build koraka, bez vanjskih fontova (privatnost). */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #eef1f4; --text: #141a24; --muted: #5a6475; --line: #e1e5ea;
  --accent: #047857; --accent-hover: #065f46; --accent-ink: #ffffff; --accent-soft: #d1fae5;
  --long: #047857; --short: #c62828; --warn-bg: #fff7e6; --warn-line: #f0c36d; --warn-text: #6b4a00;
  --bad: #c62828; --ok: #047857; --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1217; --surface: #171b22; --surface-2: #1f252e; --text: #e8ebf0; --muted: #9aa4b5; --line: #2a313c;
    --accent: #10b981; --accent-hover: #34d399; --accent-ink: #052e22; --accent-soft: #0b3b2d;
    --long: #34d399; --short: #f87171; --warn-bg: #2a2111; --warn-line: #7a5a1c; --warn-text: #f3d08a;
    --bad: #f87171; --ok: #34d399; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
.prose { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); }
.stack > * + * { margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Zaglavlje */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand svg { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--surface-2); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav a.btn { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav a.btn:hover { background: var(--accent-hover); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a { padding: 4px 8px; font-size: .8rem; font-weight: 600; }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--accent); }

/* Gumbi i forme */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.error { color: var(--bad); font-size: .88rem; margin-top: 4px; }

/* Kartice i obavijesti */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.alert.ok { border-color: var(--ok); color: var(--ok); }
.alert.bad { border-color: var(--bad); color: var(--bad); }
.risk { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); border-radius: 10px; padding: 14px 16px; font-size: .92rem; }
.risk strong { display: block; margin-bottom: 4px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Početna */
.hero { padding: 56px 0 32px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.section { padding: 32px 0; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 8px; }
.list-x { list-style: none; padding: 0; margin: 0; }
.list-x li { padding: 6px 0 6px 28px; position: relative; }
.list-x li::before { content: "✕"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.list-ok li::before { content: "✓"; color: var(--ok); }
.sample { font-family: var(--mono); font-size: .9rem; }

/* Cijene */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan form, .plan .btn { margin-top: auto; }

/* Signali */
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.badge.long { background: var(--long); color: var(--surface); }
.badge.short { background: var(--short); color: #fff; }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.badge.win { background: var(--accent-soft); color: var(--ok); }
.badge.loss { background: color-mix(in srgb, var(--short) 15%, transparent); color: var(--short); }
.signal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.signal-head .pair { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.levels dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.levels dd { margin: 0; font-weight: 700; font-family: var(--mono); font-size: 1.02rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); text-align: right; }
th.num { text-align: right; }
.stat { text-align: left; }
.stat .value { font-size: 1.6rem; font-weight: 800; }
.stat .label { color: var(--muted); font-size: .85rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

/* Podnožje (napomena o riziku na svakoj stranici) */
main { padding: 24px 0 48px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 0; font-size: .88rem; color: var(--muted); }
.site-footer .disclaimer { color: var(--text); font-weight: 700; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.site-footer nav a { color: var(--muted); }

@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; }
  th, td { padding: 8px; }
  .hero { padding-top: 32px; }
}
