:root{
  --bg: #e9eef6;        /* manje svijetlo */
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6b85;
  --line: rgba(11,18,32,.10);

  --brand: #2563eb;
  --brand2: #0ea5e9;

  --radius: 16px;
  --radius2: 999px;
  --max: 860px;
}
a{
  color: inherit;
  text-decoration: none;
}



*{ box-sizing: border-box; }
html, body{ overscroll-behavior: none; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 420px at 10% 8%, rgba(37,99,235,.12), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(14,165,233,.10), transparent 65%),
    linear-gradient(180deg, #f0f4fb 0%, var(--bg) 100%);
  color: var(--text);
}



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

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(240,244,251,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}

.brand__text{ min-width: 0; }
.brand__name{
  font-weight: 800;
  line-height: 1.1;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__meta{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.iconbtn{
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.iconbtn:hover{ transform: translateY(-1px); }
.iconbtn:active{ transform: translateY(0px); }

.iconbtn__text{
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

.demo-badge{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 12px;
  color: var(--muted);
}

.chips{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.chip.is-active{
  background: rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.32);
}

@media (max-width: 520px){
  .chips{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}





.note{
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(14,165,233,.10));
  border: 1px solid rgba(37,99,235,.14);
  border-radius: var(--radius);
  padding: 14px;
}
.note__title{ font-weight: 900; }
.note__text{ margin-top: 4px; color: var(--muted); font-size: 13px; }

.section{
  margin-top: 22px;
}
.section__title{
  margin: 18px 4px 10px;
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: .2px;
}

.item{
  background: var(--card);
  border: 1px solid rgba(11,18,32,.08);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(11,18,32,.10);
  margin-bottom: 10px;
}



.item__name{
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}
.item__desc{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.item__side{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 72px;
}

.price{
  font-weight: 900;
  letter-spacing: .2px;
  padding: 8px 10px;
  border-radius: 12px;
   background: rgba(37,99,235,.06);
  border-color: rgba(37,99,235,.18);
  border: 1px solid rgba(15,23,42,.07);
}

.badges{ margin-top: 8px; }
.badge{
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius2);
  font-size: 12px;
  font-weight: 800;
  background: rgba(37,99,235,.12);
  color: #0b3aa6;
  border: 1px solid rgba(37,99,235,.18);
}
.badge--soft{
  background: rgba(14,165,233,.12);
  color: #075985;
  border-color: rgba(14,165,233,.18);
}

.footer{
  margin-top: 22px;
  padding: 18px 4px 8px;
  color: var(--muted);
  font-size: 13px;
}
.footer__line{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.footer__link{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(15,23,42,.25);
}
.footer__link:hover{
  border-bottom-style: solid;
}

@media (min-width: 760px){
  .brand__name{ font-size: 17px; }
  .wrap{ padding: 18px 16px 50px; }
}
/* Ispravi marginu i veličinu za preview da ne izlazi iz okvira */
.fakePhone {
  max-width: 100%;
  width: 100%;
  height: 520px;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
}
@media (max-width: 520px){
  .fakePhone{
    height: 620px;   /* probaj 580–620px po ukusu */
  }
}

.fakePhone iframe {
  border-radius: 24px;
  width: 100%;
  height: 100%;
}
.brandName {
  font-size: 14px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brandTag {
  font-size: 10px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sakrij scrollbar, ali zadrži scroll */
html, body {
  scrollbar-width: none;          /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;                  /* Chrome, Safari, Edge */
}

/* Chrome/Android: backdrop-filter zna da probije radius na vrhu */
.topbar{
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  margin: -1px -1px 0;          /* pokrije halo na vrhu/uglova */
  padding: 1px 1px 0;
  box-shadow: 0 0 0 1px rgba(240,244,251,.78); /* ista boja kao pozadina headera */
  overflow: hidden;          /* najbitnije */
  contain: paint;            /* stegne render region */
   -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

/* ako imaš i unutrašnji wrapper u headeru, ponekad i on treba */
.topbar__inner{
  overflow: hidden;
}
