/* =========================================================
   RM SERVIS — cenik (pametni izbirnik naprave)
   ========================================================= */

.cenik { padding-top: clamp(112px, 15vh, 156px); }

/* Device-type toggle (iPhone / iPad) */
.seg { position: relative; display: inline-flex; padding: 5px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.seg__btn { position: relative; z-index: 1; font-family: var(--fd); font-weight: 600; padding: 11px 30px; border-radius: 999px; color: var(--cream-2); transition: color .3s; }
.seg__btn.active { color: var(--green-ink); }
.seg__thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--green); box-shadow: var(--green-glow); transition: transform .4s var(--ease), width .4s var(--ease); }

/* Search + picker */
.picker { margin-top: 30px; }
.search { position: relative; max-width: 460px; }
.search input {
  width: 100%; padding: 15px 18px 15px 48px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--cream); font: inherit; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(64,233,77,.14); background: var(--bg); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }

.models { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.model-btn {
  font-family: var(--fd); font-size: .9rem; font-weight: 500; padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--cream-2);
  transition: transform .2s var(--ease), border-color .2s, color .2s, background .2s;
}
.model-btn:hover { color: var(--cream); border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.model-btn.active { color: var(--green-ink); background: var(--green); border-color: transparent; box-shadow: var(--green-glow); }
.models__empty { color: var(--faint); font-size: .95rem; padding: 8px 2px; }

/* Result — compact, rounded, clean */
.result { margin-top: 40px; }

.price-table {
  border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.8);
  animation: tableIn .45s var(--ease) both;
}
.price-table__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.price-table__head .t-model { font-family: var(--fd); font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; color: var(--cream); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.price-table__head .t-model::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.price-table__head .t-badge { font-family: var(--fd); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* two compact columns via CSS multi-column (no grid track stretching, no divider lines) */
.price-cols { column-count: 2; column-gap: 0; padding: 6px 0; }
@media (max-width: 680px) { .price-cols { column-count: 1; } }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 22px; break-inside: avoid; -webkit-column-break-inside: avoid;
  opacity: 0; animation: rowIn .4s var(--ease) forwards; border-radius: 6px;
  transition: background .2s;
}
.price-row:hover { background: rgba(64,233,77,.05); }
/* service name stays on ONE line; truncates gracefully only if genuinely too narrow */
.price-row .pr-svc { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream-2); font-size: .93rem; }
.price-row .amt { flex: none; margin-left: auto; font-family: var(--fd); font-weight: 600; font-size: .95rem; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row .amt.soft { color: var(--muted); font-weight: 500; font-size: .8rem; }

.result__foot {
  margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.result__foot .ddv { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fd); color: var(--cream-2); font-size: .92rem; }
.result__foot .ddv svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.result__prompt { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--faint); }
.result__prompt svg { width: 42px; height: 42px; color: var(--faint); margin-bottom: 14px; }
.result__prompt p { font-family: var(--fd); }

@keyframes tableIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { to { opacity: 1; } }
