:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --border: #e8eaf3;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, #eef0fe 0%, #f3eefe 100%);
  --text: #1e2233;
  --muted: #6b7280;
  --green: #059669;
  --orange: #b45309;
  --red: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 3px rgba(30,34,51,0.04);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; display: block; }
.brand .word { font-weight: 800; font-size: 19px; letter-spacing: -0.4px; color: var(--text); }
.brand .word .seo {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.topbar nav { display: flex; align-items: center; }
.topbar nav a { margin-left: 18px; color: var(--text); font-weight: 500; }
.topbar nav a:hover { color: var(--primary); text-decoration: none; }
.container { max-width: 1080px; margin: 24px auto; padding: 0 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(30,34,51,0.04);
}
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 10px; color: var(--muted); }
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 13px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 14px; font-family: inherit;
}
textarea { resize: vertical; }
.btn {
  display: inline-block; background: var(--grad); color: #fff; border: none;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 1px 2px rgba(79,70,229,0.25);
  transition: filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 2px 8px rgba(79,70,229,0.32); text-decoration: none; }
.btn.secondary { background: #eef0f7; color: var(--text); box-shadow: none; }
.btn.secondary:hover { background: #e4e7f2; filter: none; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f3c6c6; box-shadow: none; }
.btn.danger:hover { background: #fef2f2; filter: none; }
.btn.small { padding: 5px 11px; font-size: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f4f5fb; color: var(--muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; }
tr:nth-child(even) td { background: #fafbff; }
.pos { text-align: center; font-weight: 600; }
.up { color: var(--green); font-weight: 700; }
.down { color: var(--red); font-weight: 700; }
.muted { color: var(--muted); }
.top3 { color: var(--green); font-weight: 700; }
.top10 { color: var(--orange); font-weight: 700; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px;
  font-weight: 600;
}
.badge.queued { background: #fef3c7; color: #92400e; }
.badge.running { background: #dbeafe; color: #1e40af; }
.badge.done { background: #dcfce7; color: #166534; }
.badge.error { background: #fee2e2; color: #991b1b; }
.stats { display: flex; gap: 22px; margin: 8px 0 14px; flex-wrap: wrap; }
.stat { font-size: 13px; }
.stat b { font-size: 20px; display: block; }
.error-box { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 7px; margin-bottom: 12px; }
.ok-box { background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 7px; margin-bottom: 12px; }
.auth-wrap { max-width: 380px; margin: 60px auto; }
.progress { height: 8px; background: #e5e7eb; border-radius: 5px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); transition: width .3s; }
.muted-small { color: var(--muted); font-size: 12px; }
.run-active { display: flex; align-items: center; gap: 12px; background: #eef4ff;
  border: 1px solid #cfe0ff; border-radius: 8px; padding: 12px 14px; }
.spinner { width: 22px; height: 22px; border: 3px solid #cfe0ff;
  border-top-color: var(--primary); border-radius: 50%; flex: 0 0 auto;
  animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: 0.6; cursor: default; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 16px 0 20px; flex-wrap: wrap; }
.tab { padding: 9px 16px; font-weight: 600; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab.disabled { color: #b9c2cf; cursor: default; }
.scores { display: flex; gap: 14px; flex-wrap: wrap; }
.score { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 20px; text-align: center; min-width: 120px; flex: 1; }
.score-num { font-size: 34px; font-weight: 700; line-height: 1; }
.score-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tag { font-size: 11px; background: #eef2f7; padding: 2px 8px; border-radius: 5px; color: var(--muted); }

/* ---- Landing (javna početna) ---- */
.lp-header { max-width: 1080px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; }
.lp-header .nav { display: flex; gap: 10px; align-items: center; }
.btn.lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: none; border: 1px solid var(--border); }
.btn.ghost:hover { background: #f2f2fb; filter: none; }
.hero { max-width: 820px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.12; letter-spacing: -1px; margin: 0 0 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 16px; font-size: 13px; color: var(--muted); }
.section { max-width: 1080px; margin: 0 auto; padding: 30px 24px; }
.section h2.center { text-align: center; font-size: 26px; margin-bottom: 8px; }
.section .lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; box-shadow: 0 1px 3px rgba(30,34,51,0.04); }
.feature .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 14px; }
.feature h3 { color: var(--text); font-size: 16px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cta-band { background: var(--grad); border-radius: 18px; padding: 40px 24px; text-align: center; margin: 20px 0; }
.cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.cta-band p { color: #eef; margin: 0 0 20px; }
.btn.white { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.btn.white:hover { filter: brightness(0.98); }
.lp-footer { border-top: 1px solid var(--border); margin-top: 20px; }
.lp-footer .inner { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  color: var(--muted); font-size: 13px; }
