/* ═══════════════════════════════════════════
   BALLOON LAND — Kreator dekoracija
   ═══════════════════════════════════════════ */

.kreator {
  padding: 9rem 0 6rem;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(201, 162, 75, .07), transparent),
    var(--ink);
  min-height: 100vh;
}
.kreator__head { text-align: center; margin-bottom: 3.5rem; }
.kreator__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: .8rem;
}
.kreator__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kreator__sub { color: var(--muted); }

.kreator__layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: stretch; /* lijeva kolona i pregled uvijek iste visine */
}

/* ─────── PANEL SA KORACIMA ─────── */
.kreator__panel {
  background: rgba(23, 21, 26, .75);
  border: 1px solid rgba(250, 247, 242, .1);
  border-radius: 26px;
  padding: 2.4rem 2.2rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.kreator__progress { margin-bottom: 2.2rem; }
.kreator__progress-bar {
  height: 5px;
  border-radius: 5px;
  background: rgba(250, 247, 242, .1);
  overflow: hidden;
  margin-bottom: .7rem;
}
.kreator__progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  transition: width .5s var(--ease);
}
.kreator__progress-text {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kreator__progress-text #kStepName { color: var(--gold-2); }

/* koraci */
.kstep { display: none; animation: kstepIn .5s var(--ease); }
.kstep.is-active { display: block; }
@keyframes kstepIn { from { opacity: 0; transform: translateY(18px); } }

.kstep__q {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 1.6rem;
}
.kstep__q em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kstep__hint {
  margin-top: 1.4rem;
  font-size: .88rem;
  color: var(--muted);
  background: rgba(201, 162, 75, .07);
  border: 1px dashed rgba(201, 162, 75, .3);
  border-radius: 12px;
  padding: .8rem 1rem;
}

/* opcije */
.kopts { display: grid; gap: 1rem; }
.kopts--2 { grid-template-columns: 1fr 1fr; }
.kopts--3 { grid-template-columns: repeat(3, 1fr); }
.kopt {
  text-align: left;
  background: rgba(14, 13, 16, .55);
  border: 1.5px solid rgba(250, 247, 242, .13);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  color: var(--ivory);
  cursor: pointer;
  transition: border-color .3s, transform .35s var(--ease), background .3s, box-shadow .35s;
}
.kopt:hover { transform: translateY(-4px); border-color: rgba(201, 162, 75, .5); }
.kopt.is-selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201, 162, 75, .16), rgba(14, 13, 16, .6) 60%);
  box-shadow: 0 14px 40px -14px rgba(201, 162, 75, .45);
}
.kopt svg {
  width: 84px;
  height: 64px;
  color: var(--gold-2);
  margin-bottom: .7rem;
  opacity: .9;
}
.kopt h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: .3rem;
}
.kopt p { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.kopt--img { padding: .9rem .9rem 1.2rem; }
.kopt--img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: .8rem;
  background: #fff;
  border: 1px solid rgba(250, 247, 242, .1);
}
.kopt--img h3 { font-size: 1.05rem; }
.kopt__sub { font-size: .78rem; color: var(--muted); font-family: var(--font-sans); font-style: normal; }
.kopt--slim { text-align: center; padding: 1.1rem .8rem; }
.kopt--slim h3 { font-size: 1.2rem; }
.kopt--slim p { color: var(--gold-2); font-weight: 700; font-size: .78rem; }

/* redovi boja */
.krows { margin-top: 1.8rem; display: grid; gap: 1.2rem; }
.krow { margin-top: 1.2rem; }
.krow__label {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, .8);
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.krow__label .krow__dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(250, 247, 242, .25);
  background: #f5f2ec;
  display: inline-block;
}
.krow__opt { color: var(--muted); text-transform: none; font-weight: 600; letter-spacing: 0; }
.kswatches {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.kswatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid rgba(250, 247, 242, .18);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.kswatch:hover { transform: scale(1.15); }
.kswatch.is-selected {
  border-color: var(--gold-2);
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .3), 0 6px 16px rgba(0, 0, 0, .5);
}
.kswatch.is-selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* input */
.kinput {
  width: 100%;
  background: rgba(14, 13, 16, .6);
  border: 1.5px solid rgba(250, 247, 242, .14);
  border-radius: 14px;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: .9rem 1.1rem;
  transition: border-color .3s, box-shadow .3s;
}
.kinput:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, .15);
}
.kinput::placeholder { color: rgba(141, 136, 148, .7); }

/* rezime */
.ksummary { margin-bottom: 1.6rem; }
.ksummary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed rgba(250, 247, 242, .1);
  font-size: .93rem;
}
.ksummary li span:first-child { color: var(--muted); }
.ksummary li span:last-child { font-weight: 700; text-align: right; }
.ksummary .ksummary__colors { display: inline-flex; gap: .3rem; vertical-align: middle; }
.ksummary .ksummary__colors i {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 247, 242, .3);
  display: inline-block;
}

/* navigacija koraka */
.kreator__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto; /* dugmad uvijek na dnu panela */
  padding-top: 1.8rem;
  border-top: 1px solid rgba(250, 247, 242, .08);
}
.kstep.is-active { margin-top: 80px; margin-bottom: 2.2rem; }
.kreator__nav .btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ─────── PREGLED ─────── */
.kpreview__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, rgba(201, 162, 75, .1), rgba(23, 21, 26, .85) 45%);
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: 26px;
  overflow: hidden;
}
.kpreview__stage-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(201, 162, 75, .08), transparent),
    linear-gradient(180deg, #141218 0%, #1b181f 78%, #26222c 78%, #201c26 100%);
}
.kpreview__stage { display: block; width: 100%; height: auto; }
.kpreview__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  padding: 2rem;
  transition: opacity .4s;
}
.kpreview__placeholder.is-hidden { opacity: 0; visibility: hidden; }
.kpreview__meta { padding: 1.6rem 1.8rem 1.8rem; }
.kpreview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
  min-height: 30px;
}
.kpreview__chips .chip {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-2);
  background: rgba(201, 162, 75, .1);
  border: 1px solid rgba(201, 162, 75, .3);
  padding: .35rem .85rem;
  border-radius: 100px;
}
.kpreview__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(250, 247, 242, .1);
  padding-top: 1.1rem;
}
.kpreview__price span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.kpreview__price strong {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kpreview__note { color: var(--muted); font-size: .78rem; margin-top: .7rem; }

/* SVG animacije efekata */
.kfloat { animation: kfloat 5s ease-in-out infinite alternate; }
@keyframes kfloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* success overlay */
.ksuccess {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(10, 9, 12, .94);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.ksuccess[hidden] { display: none; }
.ksuccess__card {
  text-align: center;
  max-width: 440px;
  background: linear-gradient(170deg, rgba(201, 162, 75, .14), rgba(23, 21, 26, .9) 50%);
  border: 1px solid rgba(201, 162, 75, .4);
  border-radius: 26px;
  padding: 3rem 2.5rem;
  animation: successIn .5s var(--ease);
}
.ksuccess__card span { font-size: 3rem; }
.ksuccess__card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-2);
  margin: .8rem 0 .6rem;
}
.ksuccess__card p { color: rgba(250, 247, 242, .78); margin-bottom: 1.8rem; }

/* ─────── RESPONSIVE ─────── */
@media (max-width: 1024px) {
  .kreator__layout { grid-template-columns: 1fr; }
  .kpreview { position: static; order: -1; }
}
@media (max-width: 768px) {
  .kreator { padding: 7rem 0 4rem; }
  .kreator__panel { padding: 1.8rem 1.4rem; }
  .kopts--2, .kopts--3 { grid-template-columns: 1fr; }
  .kopt--slim { text-align: left; }
  .kreator__nav { flex-direction: row; }
}
