/* ═══════════════════════════════════════════════════════════
   DropBot — dizajn sistem v2
   Svijetla, premium SaaS estetika (referenca: dropship.io klasa)
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #0b1220;
  --text: #414a5c;
  --muted: #667085;
  --faint: #98a2b3;

  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-soft: #eef1ff;

  --border: #e6e8f0;
  --border-2: #d5d9e5;

  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --accent-ink: #312e81;
  --success: #129e6c;
  --gold: #b98a2f;

  --dark: #0b1220;
  --dark-2: #111a2e;
  --dark-border: rgba(255, 255, 255, 0.1);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sm: 0 2px 8px -2px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --sh-md: 0 12px 24px -8px rgba(16, 24, 40, 0.12), 0 2px 6px rgba(16, 24, 40, 0.05);
  --sh-lg: 0 32px 64px -16px rgba(16, 24, 40, 0.18), 0 8px 24px -8px rgba(16, 24, 40, 0.08);

  --f-head: "Sora", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.14; letter-spacing: -0.025em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; }
p  { color: var(--text); }
a  { color: inherit; text-decoration: none; }
b, strong { color: var(--ink); font-weight: 600; }
em.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { width: min(860px, 92%); }
.center { text-align: center; }

/* ── Overline (mala oznaka iznad naslova) ── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.overline::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.overline.center::after { content: ""; width: 22px; height: 1.5px; background: var(--accent); }

.lead { font-size: 1.1rem; color: var(--muted); }

/* ── Dugmad ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--sh-md); }

.btn-outline { background: #fff; border-color: var(--border-2); color: var(--ink); box-shadow: var(--sh-xs); }
.btn-outline:hover { border-color: var(--faint); transform: translateY(-1px); box-shadow: var(--sh-sm); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-alt); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-dark-outline { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-dark-outline:hover { background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ── Navigacija ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--sh-xs); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-name { font-family: var(--f-head); font-weight: 700; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links > a:not(.btn) { font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links > a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ── Hero ── */
.hero { position: relative; padding: 92px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -340px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.09) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 54rem; margin: 0 auto; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 40rem; margin: 0 auto 2.2rem; font-size: 1.16rem; }
.hero-cta { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: 0.84rem; color: var(--faint); }

/* ── Prozor / dashboard mockup ── */
.hero-shot { position: relative; margin: 64px auto 0; max-width: 1020px; }
.hero-shot::after {
  content: "";
  position: absolute;
  inset: auto 8% -34px 8%;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(16, 24, 40, 0.16), transparent 70%);
  z-index: -1;
}

.win {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  text-align: left;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.win-url {
  flex: 1;
  max-width: 340px;
  margin-left: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 3px 12px;
}

/* dashboard */
.dash { display: grid; grid-template-columns: 208px 1fr; min-height: 430px; }
.dash-side {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fcfcfe;
}
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; }
.dash-brand .logo-mark { width: 24px; height: 24px; }
.dash-brand b { font-family: var(--f-head); font-size: 0.92rem; }
.dash-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
}
.dash-item svg { width: 15px; height: 15px; opacity: 0.75; }
.dash-item.on { background: var(--bg-soft); color: var(--accent-deep); font-weight: 600; }
.dash-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.dash-user i {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  flex: none;
}

.dash-main { padding: 20px 22px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-head b { font-family: var(--f-head); font-size: 1.02rem; color: var(--ink); }
.pill {
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 11px;
  background: #fff;
}

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px 15px; background: #fff; box-shadow: var(--sh-xs); }
.kpi small { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 3px; }
.kpi b { font-family: var(--f-head); font-size: 1.24rem; color: var(--ink); letter-spacing: -0.02em; }
.kpi .delta { display: inline-block; margin-left: 7px; font-size: 0.7rem; font-weight: 600; color: var(--success); background: rgba(18, 158, 108, 0.1); border-radius: 6px; padding: 1px 7px; }

.dash-grid { display: grid; grid-template-columns: 1.05fr 1.2fr; gap: 12px; }
.dcard { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; padding: 14px 16px; box-shadow: var(--sh-xs); }
.dcard > small { display: block; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; padding-top: 4px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--bg-soft); min-height: 12%; }
.bars i.hi { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }

.drow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.drow:last-child { border-bottom: none; }
.drow .dn { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .dn small { display: block; font-weight: 400; color: var(--faint); font-size: 0.68rem; }
.drow .dp { color: var(--muted); font-variant-numeric: tabular-nums; }
.m-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(18, 158, 108, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}

/* ── Metrics traka ── */
.metrics { border-block: 1px solid var(--border); background: var(--bg); margin-top: 84px; }
.metrics-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 26px 18px; text-align: center; border-left: 1px solid var(--border); }
.metric:first-child { border-left: none; }
.metric b { display: block; font-family: var(--f-head); font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.metric span { font-size: 0.84rem; color: var(--muted); }

/* ── Sekcije ── */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: 3.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 0.9rem; }

/* ── Feature redovi ── */
.frow {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 4.6rem;
  align-items: center;
  padding: 3.4rem 0;
}
.frow + .frow { border-top: 1px solid var(--border); }
.frow.flip .fviz { order: -1; }
.frow h3 { font-size: 1.55rem; margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.frow p { color: var(--muted); margin-bottom: 1.2rem; }
.fpoints { list-style: none; }
.fpoints li { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.34rem 0; font-size: 0.95rem; color: var(--text); }
.fpoints svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 3px; }

.fviz { position: relative; }
.fviz .win { box-shadow: var(--sh-md); }
.fviz::before {
  content: "";
  position: absolute;
  inset: 12% -6% -6% 12%;
  background: linear-gradient(135deg, var(--bg-soft), #f3ecff);
  border-radius: var(--r-lg);
  z-index: -1;
}

/* research mock */
.research { padding: 18px; }
.search-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
  box-shadow: var(--sh-xs);
}
.search-pill svg { width: 15px; height: 15px; color: var(--faint); }
.rrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  background: #fff;
}
.rrow .dn { font-weight: 600; color: var(--ink); }
.rrow .dn small { display: block; font-weight: 400; color: var(--faint); font-size: 0.7rem; }
.score { display: flex; gap: 3px; }
.score i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-2); }
.score i.on { background: var(--accent); }
.research > small { display: block; text-align: center; color: var(--faint); font-size: 0.74rem; padding-top: 6px; }

/* storefront mock */
.store { text-align: left; }
.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}
.store-nav b { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--ink); font-weight: 400; }
.store-nav .links { display: flex; gap: 14px; }
.store-hero {
  background: linear-gradient(120deg, #f5f2ec, #ece9f8);
  padding: 30px 22px;
  text-align: center;
}
.store-hero b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--ink); display: block; margin-bottom: 4px; }
.store-hero span { font-size: 0.76rem; color: var(--muted); display: block; margin-bottom: 12px; }
.store-hero i {
  display: inline-block;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: #fff;
  padding: 7px 16px;
  border-radius: 3px;
}
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 18px 18px; }
.sp .im { height: 84px; border-radius: 8px; margin-bottom: 8px; }
.sp:nth-child(1) .im { background: linear-gradient(150deg, #e8e3d8, #d8cfc0); }
.sp:nth-child(2) .im { background: linear-gradient(150deg, #dfe3ee, #c8cfe2); }
.sp:nth-child(3) .im { background: linear-gradient(150deg, #e9dfe6, #d8c8d4); }
.sp b { display: block; font-size: 0.76rem; color: var(--ink); font-weight: 600; }
.sp span { font-size: 0.74rem; color: var(--muted); }

/* ad mock */
.adwrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; align-items: start; }
.ad-card { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; box-shadow: var(--sh-sm); }
.ad-head { display: flex; align-items: center; gap: 9px; padding: 11px 13px; }
.ad-head i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #8b5cf6); }
.ad-head b { font-size: 0.78rem; color: var(--ink); display: block; line-height: 1.2; }
.ad-head small { font-size: 0.66rem; color: var(--faint); }
.ad-media {
  height: 130px;
  background: linear-gradient(135deg, #eef1ff 0%, #f6ecff 55%, #fdf1e8 100%);
  display: grid;
  place-items: center;
}
.ad-media i {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--sh-md);
}
.ad-body { padding: 11px 13px; font-size: 0.76rem; color: var(--muted); }
.ad-body b { display: block; color: var(--ink); font-size: 0.8rem; margin-bottom: 2px; }
.ad-cta {
  margin: 0 13px 13px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  padding: 8px;
}
.flow-chips { display: flex; flex-direction: column; gap: 10px; }
.flow-chip {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  padding: 12px 14px;
  font-size: 0.78rem;
  box-shadow: var(--sh-xs);
}
.flow-chip b { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--ink); margin-bottom: 2px; }
.flow-chip svg { width: 14px; height: 14px; color: var(--accent); }
.flow-chip span { color: var(--faint); font-size: 0.72rem; }

/* ── Proces ── */
.psteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: ps; }
.pstep { position: relative; }
.pstep .num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-xs);
  display: grid;
  place-items: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.pstep::before {
  content: "";
  position: absolute;
  top: 20px; left: 52px; right: -1.4rem;
  height: 1px;
  background: var(--border-2);
}
.pstep:last-child::before { display: none; }
.pstep h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.pstep p { font-size: 0.9rem; color: var(--muted); }

/* ── Cijene ── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.85rem;
  box-shadow: var(--sh-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--sh-md); }
.price-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; }
.price-card .tag { font-size: 0.88rem; color: var(--muted); margin: 0.25rem 0 1.2rem; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.3rem; }
.price-row b { font-family: var(--f-head); font-size: 2.55rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.price-row span { color: var(--faint); font-size: 0.88rem; }
.price-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.price-meta b { color: var(--success); font-weight: 600; }
.price-feats { list-style: none; flex: 1; margin-bottom: 1.7rem; }
.price-feats li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.32rem 0; font-size: 0.92rem; }
.price-feats svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 3px; }

.addon-strip {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.7rem 2rem;
  box-shadow: var(--sh-sm);
}
.addon-strip h3 { margin-bottom: 0.3rem; }
.addon-strip p { font-size: 0.92rem; color: var(--muted); max-width: 42rem; }
.addon-right { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.addon-right .price-row { margin: 0; }
.addon-right .price-row b { font-size: 1.9rem; }

.price-note { margin-top: 1.5rem; text-align: center; font-size: 0.82rem; color: var(--faint); }

/* ── Uporedna tabela ── */
.compare-wrap { margin-top: 4rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.85rem 1.3rem; text-align: center; border-bottom: 1px solid var(--border); }
.compare th { font-family: var(--f-head); font-size: 0.92rem; color: var(--ink); background: var(--bg-alt); }
.compare th small { display: block; font-family: var(--f-body); font-weight: 500; color: var(--muted); font-size: 0.76rem; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare tr:last-child td { border-bottom: none; }
.compare td.on svg { width: 18px; height: 18px; color: var(--success); }
.compare td.off { color: var(--border-2); }
.compare td .val { font-weight: 600; color: var(--ink); font-size: 0.86rem; }
.compare .col-feat { background: rgba(79, 70, 229, 0.035); }

/* ── Obećanja ── */
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.commit {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem 1.6rem;
  box-shadow: var(--sh-xs);
}
.commit svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 0.8rem; }
.commit b { display: block; font-family: var(--f-head); font-size: 1rem; color: var(--ink); margin-bottom: 0.35rem; }
.commit p { font-size: 0.9rem; color: var(--muted); }

/* ── FAQ ── */
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  padding: 1.35rem 0.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--faint); flex: none; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0.2rem 1.4rem; color: var(--muted); font-size: 0.97rem; max-width: 46rem; }

/* ── Tamna CTA traka ── */
.cta-band { background: var(--dark); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.22), transparent 65%);
}
.cta-inner { position: relative; padding: 96px 0; text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.65); max-width: 36rem; margin: 0 auto 2.2rem; font-size: 1.06rem; }
.cta-inner .hero-cta { justify-content: center; }

/* ── Footer ── */
.footer { background: var(--dark); border-top: 1px solid var(--dark-border); color: rgba(255, 255, 255, 0.62); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.6rem;
  padding: 64px 0 44px;
}
.footer .logo-name { color: #fff; }
.footer-blurb { font-size: 0.9rem; margin-top: 0.9rem; max-width: 20rem; color: rgba(255, 255, 255, 0.55); }
.footer h4 { color: #fff; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.9rem; padding: 0.28rem 0; color: rgba(255, 255, 255, 0.6); transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 1.4rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════ */

.co-header { border-bottom: 1px solid var(--border); background: #fff; }
.co-header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.co-back { font-size: 0.9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.co-back:hover { color: var(--ink); }
.co-back svg { width: 16px; height: 16px; }

.co-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
  padding: 56px 0 90px;
}

.co-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.1rem 2.2rem;
  box-shadow: var(--sh-sm);
}
.co-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.co-sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.8rem; }
.co-card h3 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 1.8rem 0 0.9rem; }
.co-card h3:first-of-type { margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ffield { margin-bottom: 1rem; }
.ffield label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.ffield input, .ffield select, .ffield textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ffield textarea { resize: vertical; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* metode plaćanja */
.pay-methods { display: flex; flex-direction: column; gap: 0.7rem; }
.pm {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pm:hover { border-color: var(--faint); }
.pm input { position: absolute; opacity: 0; }
.pm .radio {
  width: 18px; height: 18px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  flex: none;
  margin-top: 2px;
  transition: 0.15s;
}
.pm input:checked ~ .radio { border-color: var(--accent); border-width: 5px; }
.pm input:checked ~ .pm-body b { color: var(--accent-deep); }
.pm.selected, .pm:has(input:checked) { border-color: var(--accent); background: rgba(79, 70, 229, 0.03); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08); }
.pm-body b { display: block; font-size: 0.95rem; color: var(--ink); }
.pm-body span { font-size: 0.82rem; color: var(--muted); }

/* iznos: segmenti */
.seg { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg button {
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.15s;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-xs); }
.seg-note { font-size: 0.8rem; color: var(--faint); margin-top: 0.6rem; }

.co-submit { margin-top: 1.8rem; }

/* sažetak narudžbe */
.sum-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.sum-head { padding: 1.5rem 1.7rem 1.2rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.sum-head small { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.sum-body { padding: 1.4rem 1.7rem; }
.sum-feats { list-style: none; margin-bottom: 1.2rem; }
.sum-feats li { display: flex; gap: 0.55rem; font-size: 0.87rem; color: var(--muted); padding: 0.22rem 0; }
.sum-feats svg { width: 15px; height: 15px; color: var(--success); flex: none; margin-top: 4px; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.4rem 0; color: var(--muted); }
.sum-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--border); margin-top: 0.6rem; padding-top: 1rem; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { font-size: 0.9rem; color: var(--muted); }
.sum-total b { font-family: var(--f-head); font-size: 1.7rem; color: var(--ink); letter-spacing: -0.02em; }
.sum-trust { padding: 1.1rem 1.7rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }
.sum-trust span { display: flex; gap: 0.55rem; align-items: center; font-size: 0.8rem; color: var(--muted); }
.sum-trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* potvrda / predračun */
.co-done { text-align: center; padding: 0.6rem 0 0; }
.co-done .okmark {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(18, 158, 108, 0.1);
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}
.co-done .okmark svg { width: 26px; height: 26px; color: var(--success); }
.co-done h2 { margin-bottom: 0.5rem; }
.co-done > p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.6rem; }
.co-actions { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.4rem; }

.invoice {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 2.3rem 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--sh-sm);
}
.inv-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.inv-seller b { font-family: var(--f-head); font-size: 1.1rem; color: var(--ink); display: block; margin-bottom: 0.2rem; }
.inv-seller p { font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.inv-title { text-align: right; }
.inv-title h2 { font-size: 1.6rem; letter-spacing: 0.02em; }
.inv-title p { font-size: 0.86rem; color: var(--muted); }
.inv-buyer { margin-bottom: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.inv-buyer b { color: var(--ink); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 1.4rem; }
.inv-table th { text-align: left; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); padding: 0.5rem 0.4rem; }
.inv-table td { padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--border); color: var(--text); }
.inv-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-sums { margin-left: auto; max-width: 320px; }
.inv-sums .sum-row { font-size: 0.92rem; }
.inv-sums .grand { border-top: 1.5px solid var(--ink); margin-top: 0.4rem; padding-top: 0.7rem; font-size: 1rem; }
.inv-sums .grand b { font-size: 1.25rem; font-family: var(--f-head); }
.inv-bank { margin-top: 1.8rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.1rem 1.3rem; font-size: 0.88rem; color: var(--muted); }
.inv-bank b { color: var(--ink); }
.inv-foot { margin-top: 1.6rem; font-size: 0.78rem; color: var(--faint); }
.todo-flag { color: #b42318; background: #fef3f2; border-radius: 5px; padding: 0 6px; font-size: 0.8em; }

@media print {
  body { visibility: hidden; }
  #invoiceArea, #invoiceArea * { visibility: visible; }
  #invoiceArea { position: absolute; inset: 0; margin: 0; }
  .invoice { border: none; box-shadow: none; max-width: 100%; padding: 0.5cm 0; }
}

/* ═══════════════════════════════════════════
   GENERATOR (bot.html)
   ═══════════════════════════════════════════ */

.gen-hero { padding: 76px 0 46px; text-align: center; position: relative; }
.gen-hero::before {
  content: "";
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.08), transparent 62%);
  pointer-events: none;
}
.gen-hero .lead { max-width: 38rem; margin: 0 auto; }

.gen-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 1.9rem 2rem 1.5rem;
  max-width: 900px;
  margin: 2.6rem auto 0;
  text-align: left;
}
.gen-controls { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 1rem; align-items: end; }
.gen-controls .ffield { margin-bottom: 0; }
.gen-controls .btn { height: 47px; }
#customNisaWrap { grid-column: 1 / -1; }
.gen-note { font-size: 0.82rem; color: var(--faint); margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.gen-results { padding: 46px 0 90px; }

.runlog {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 1.4rem 1.6rem;
  font-size: 0.92rem;
}
.runlog p { min-height: 1.9em; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.runlog p:empty { visibility: hidden; }
.runlog .t-dim::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; animation: pulse 1s infinite; }
.runlog .t-ok { color: var(--success); font-weight: 600; }
.runlog .t-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
@keyframes pulse { 50% { opacity: 0.3; } }

.gen-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 2rem 2.2rem;
  margin-bottom: 1.4rem;
}
.gen-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.gen-block-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.brand-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; }
.brand-name-chip {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem 0.6rem 0;
}
.brand-name-chip:first-child { border-color: var(--accent); background: var(--bg-soft); color: var(--accent-deep); }
.brand-tagline { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.palette { display: flex; gap: 0.6rem; }
.palette .swatch {
  flex: 1;
  height: 62px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  font-family: "Consolas", monospace;
  padding-bottom: 5px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.brand-fonts { color: var(--text); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.prod-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 680px; }
.prod-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
}
.prod-table td { padding: 0.78rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.prod-table tr:last-child td { border-bottom: none; }
.prod-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.prod-table td:nth-child(3), .prod-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.margin-pill {
  display: inline-block;
  background: rgba(18, 158, 108, 0.1);
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 2px 9px;
}
.prod-summary {
  margin-top: 1.1rem;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.95rem 1.2rem;
}
.prod-summary small { color: var(--faint); }

.mkt-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.4rem; }
.hook-list { list-style: none; }
.hook-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.ad-copy, .email-preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.4rem;
  font-size: 0.93rem;
  color: var(--text);
  white-space: pre-line;
}
.email-preview b, .ad-copy b { color: var(--ink); }

.plan-list { list-style: none; counter-reset: dan; }
.plan-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.8rem;
  font-size: 0.91rem;
  color: var(--muted);
  counter-increment: dan;
  border-bottom: 1px solid var(--border);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before {
  content: "D" counter(dan);
  position: absolute;
  left: 0; top: 0.6rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-deep);
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.plan-list b { color: var(--ink); }

.gen-cta {
  text-align: center;
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 3.4rem 2rem;
  position: relative;
  overflow: hidden;
}
.gen-cta::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(99, 91, 255, 0.25), transparent 65%);
}
.gen-cta h2 { color: #fff; position: relative; margin-bottom: 0.7rem; }
.gen-cta p { position: relative; color: rgba(255, 255, 255, 0.65); max-width: 38rem; margin: 0 auto 1.8rem; }
.gen-cta .hero-cta { position: relative; justify-content: center; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transition: 0.3s ease;
  z-index: 300;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-now { animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .frow { grid-template-columns: 1fr; gap: 2.4rem; padding: 2.8rem 0; }
  .frow.flip .fviz { order: 0; }
  .pricing { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .psteps { grid-template-columns: repeat(2, 1fr); }
  .pstep::before { display: none; }
  .co-wrap { grid-template-columns: 1fr; }
  .sum-card { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: none; }
  .metric { border-top: 1px solid var(--border); }
  .metric:nth-child(-n+2) { border-top: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .brand-grid, .mkt-grid { grid-template-columns: 1fr; }
  .gen-controls { grid-template-columns: 1fr 1fr; }
  .gen-controls .btn { grid-column: 1 / -1; }
  .adwrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 0; }
  .kpis { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .psteps { grid-template-columns: 1fr; gap: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .gen-controls { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .commit-grid { grid-template-columns: 1fr; }
  .addon-strip { flex-direction: column; align-items: flex-start; }
  .co-card { padding: 1.6rem 1.4rem; }
  .invoice { padding: 1.6rem 1.4rem; }
  .inv-title { text-align: left; }
  .gen-block { padding: 1.5rem 1.3rem; }
  .store-grid .sp:nth-child(3) { display: none; }
  .store-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    padding: 0.5rem 1.2rem 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.26s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--border); color: var(--ink); }
  .nav-links .btn { margin-top: 0.9rem; justify-content: center; }
}

/* ═══════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════ */

.admin-body { background: var(--bg-alt); min-height: 100vh; }

/* prijava */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-card {
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 2.4rem 2.2rem;
  text-align: center;
}
.login-card .logo { justify-content: center; margin-bottom: 1.4rem; }
.login-card h1 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.login-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
.login-card .ffield { text-align: left; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--faint);
  font-size: 0.78rem;
  margin: 1.2rem 0;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#googleBtnWrap { display: flex; justify-content: center; }
.login-hint { margin-top: 1.3rem; font-size: 0.76rem; color: var(--faint); }
.login-err { color: #b42318; font-size: 0.84rem; margin-top: 0.7rem; min-height: 1.2em; }

/* raspored */
.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 1.3rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-side .logo { padding: 0.2rem 0.7rem 1.1rem; }
.admin-side .logo-name { color: #fff; }
.admin-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--f-body);
  text-align: left;
  width: 100%;
  transition: background 0.14s, color 0.14s;
}
.admin-item svg { width: 17px; height: 17px; flex: none; opacity: 0.8; }
.admin-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.admin-item.on { background: var(--accent); color: #fff; }
.admin-side .spacer { flex: 1; }
.admin-foot { font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); padding: 0.8rem 0.8rem 0.2rem; }

.admin-main { padding: 2rem 2.4rem 4rem; min-width: 0; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.admin-head h1 { font-size: 1.5rem; }
.admin-head .sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.ahead-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.aview[hidden] { display: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }

.acard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.2rem;
}
.acard h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.acard .hintline { font-size: 0.82rem; color: var(--faint); margin-top: 0.8rem; }

.toolbar { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type="search"], .toolbar input[type="text"], .toolbar select {
  font-family: var(--f-body);
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  outline: none;
  background: #fff;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent); }
.toolbar .grow { flex: 1; min-width: 160px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm); }
.atable { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; background: #fff; }
.atable th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.atable td { padding: 0.68rem 0.9rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable tr:hover td { background: #fafbff; }
.atable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atable td.strong { color: var(--ink); font-weight: 600; }
.atable .row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.atable .row-actions button {
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: 7px;
  font-size: 0.76rem;
  font-family: var(--f-body);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  color: var(--text);
}
.atable .row-actions button:hover { border-color: var(--accent); color: var(--accent-deep); }
.atable .row-actions button.danger:hover { border-color: #b42318; color: #b42318; }

.badge-st { display: inline-block; font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.b-gray  { background: var(--bg-alt); color: var(--muted); }
.b-blue  { background: var(--bg-soft); color: var(--accent-deep); }
.b-green { background: rgba(18, 158, 108, 0.12); color: var(--success); }
.b-amber { background: rgba(185, 138, 47, 0.13); color: var(--gold); }
.b-red   { background: #fef3f2; color: #b42318; }

.empty-note { text-align: center; color: var(--faint); font-size: 0.9rem; padding: 2.2rem 1rem; }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  z-index: 400;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 1.9rem 2rem;
}
.modal-card.wide { width: min(860px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.3rem; }
.modal-head h2 { font-size: 1.2rem; }
.modal-close { border: none; background: var(--bg-alt); border-radius: 8px; width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.4rem; }

.inv-items .item-row { display: grid; grid-template-columns: 1fr 70px 110px 34px; gap: 0.6rem; margin-bottom: 0.6rem; align-items: center; }
.inv-items .item-row input { width: 100%; }
.inv-items .rm {
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: 7px;
  height: 38px;
  cursor: pointer;
  color: var(--muted);
}
.inv-items .rm:hover { color: #b42318; border-color: #b42318; }

.margin-live { font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }
.margin-live b { color: var(--success); }

/* dobavljači */
.sup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sup-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--sh-xs);
}
.sup-card h3 { font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.sup-card h3 a { font-size: 0.78rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.sup-card p { font-size: 0.86rem; color: var(--muted); margin: 0.45rem 0 0.6rem; }
.sup-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sup-tags span { font-size: 0.7rem; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 2px 9px; }

/* pomoćne */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.2rem; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); font-weight: 500; word-break: break-all; }
.note-ok { color: var(--success); font-weight: 600; }
.note-warn { color: #b42318; font-weight: 600; }

.paypal-box { max-width: 420px; margin: 1.4rem auto 0; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .admin-side .logo { padding: 0.2rem 0.6rem; }
  .admin-item { width: auto; font-size: 0.82rem; padding: 0.5rem 0.7rem; }
  .admin-item span { display: none; }
  .admin-item svg { margin: 0; }
  .admin-side .spacer, .admin-foot { display: none; }
  .admin-main { padding: 1.4rem 1.1rem 3rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sup-grid { grid-template-columns: 1fr; }
  .inv-items .item-row { grid-template-columns: 1fr 56px 90px 30px; }
}
