/* Skalton — spoločný vzhľad políčok, kariet a tlačidiel na tmavých stránkach
   (profil, zákazky, dať cenu, prihlásenie, ponuky, moje dopyty).
   Načítava sa až po vlastných štýloch stránky, takže ich dolaďuje, neprepisuje rozloženie. */

:root{
  --ui-pole:#0F1217;
  --ui-pole-okraj:#2C3340;
  --ui-pole-okraj-hover:#3E4757;
  --ui-akcent:#EF4444;
  --ui-akcent-2:#DC2626;
  --ui-ziara:rgba(239,68,68,.22);
}

/* ── Políčka ─────────────────────────────────────────────── */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field select,.field textarea,
.pole input,.up-pole input,.up-pole textarea,#dor-detail,.ot-text,.ot-panel textarea,
.dobit-riadok input,.pol-cena{
  background:var(--ui-pole) !important;
  border:1.5px solid var(--ui-pole-okraj) !important;
  border-radius:10px !important;
  color:#F2F4F7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 1px 2px rgba(0,0,0,.25);
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.field input:hover,.field select:hover,.field textarea:hover,.pole input:hover,
.up-pole input:hover,.up-pole textarea:hover,#dor-detail:hover,.ot-text:hover,.dobit-riadok input:hover,.pol-cena:hover{
  border-color:var(--ui-pole-okraj-hover) !important;
}
.field input:focus,.field select:focus,.field textarea:focus,.pole input:focus,
.up-pole input:focus,.up-pole textarea:focus,#dor-detail:focus,.ot-text:focus,.ot-panel textarea:focus,
.dobit-riadok input:focus,.pol-cena:focus{
  border-color:var(--ui-akcent) !important;
  box-shadow:0 0 0 4px var(--ui-ziara),inset 0 1px 0 rgba(255,255,255,.03) !important;
  outline:none !important;
  background:#12161C !important;
}
.krok .field input:focus,.krok .field select:focus,.krok .field textarea:focus{
  border-color:var(--krok-farba,var(--ui-akcent)) !important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--krok-farba,var(--ui-akcent)) 24%,transparent) !important;
}
.field input::placeholder,.field textarea::placeholder,.pole input::placeholder,
.up-pole input::placeholder,.up-pole textarea::placeholder,#dor-detail::placeholder,.ot-text::placeholder{
  color:#6B7482;
}
/* Rozbaľovacie zoznamy: vlastná šípka namiesto systémovej */
.field select{
  appearance:none;-webkit-appearance:none;
  padding-right:38px !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat:no-repeat !important;
  background-position:right 13px center !important;
}
/* Súbor (fotka) — nech nevyzerá ako cudzí prvok */
.field input[type="file"]{
  background:var(--ui-pole);border:1.5px dashed var(--ui-pole-okraj-hover);border-radius:10px;
  padding:11px 12px;color:#C6CCD4;font-size:14px;width:100%;
}
.field input[type="file"]::file-selector-button{
  font:inherit;font-size:13.5px;font-weight:600;color:#F2F4F7;background:#252B36;border:1px solid #3E4757;
  border-radius:8px;padding:7px 12px;margin-right:12px;cursor:pointer;
}
input[type="checkbox"],input[type="radio"]{accent-color:var(--ui-akcent)}

/* ── Hlavné tlačidlá ─────────────────────────────────────── */
.btn:not(.ghost):not(.tichy){
  background:linear-gradient(180deg,#F05252 0%,#DC2626 100%);
  box-shadow:0 6px 18px rgba(220,38,38,.28),inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .12s,box-shadow .15s,filter .15s;
}
.btn:not(.ghost):not(.tichy):hover{filter:brightness(1.06);box-shadow:0 8px 24px rgba(220,38,38,.36),inset 0 1px 0 rgba(255,255,255,.14)}
.btn:not(.ghost):not(.tichy):active{transform:scale(.985)}
.btn[disabled]{opacity:.6;filter:none;transform:none}
.btn.ghost{transition:border-color .15s,color .15s,background .15s}
.btn.ghost:hover{border-color:#4A5364;color:#F2F4F7;background:rgba(255,255,255,.04)}

/* ── Karty ───────────────────────────────────────────────── */
.card,.kredit-blok,.vyber-karta,.modal{
  box-shadow:0 10px 30px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.05) inset;
}
.krok{transition:border-color .15s}
.krok:focus-within{border-color:rgba(255,255,255,.14)}

/* ── Prepínače a čipy ────────────────────────────────────── */
.chip{transition:border-color .12s,background .12s,color .12s,transform .12s}
.chip:active{transform:scale(.97)}
.chip.on{background:linear-gradient(180deg,#F05252,#DC2626);box-shadow:0 4px 12px rgba(220,38,38,.28)}
.zalozky button{transition:border-color .12s,background .12s,color .12s,transform .12s}
.zalozky button:active{transform:scale(.97)}
.zalozky button[aria-selected="true"]{background:linear-gradient(180deg,#F05252,#DC2626);box-shadow:0 4px 12px rgba(220,38,38,.28)}
.zalozky button svg{width:16px;height:16px;vertical-align:-3px;margin-right:7px;opacity:.9}

/* ── Prázdny stav / upozornenie v profile ────────────────── */
.vystraha{
  background:linear-gradient(135deg,rgba(239,68,68,.14),rgba(239,68,68,.04));
  border:1px solid rgba(239,68,68,.45);border-left:4px solid var(--ui-akcent);
  border-radius:14px;padding:16px 18px;margin-bottom:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
}
.vystraha .vy-nadpis{font-family:var(--disp);font-weight:700;font-size:18px;color:#fff;margin:0 0 6px;line-height:1.2}
.vystraha p{font-size:14.5px;line-height:1.5;color:#E7EAEE;margin:0 0 12px}
.vystraha .btn{display:inline-block;padding:11px 18px;font-size:15px;border-radius:10px;text-decoration:none;color:#fff;font-family:var(--disp);font-weight:700}

/* Menšie „eyebrow" popisky v kartách ako jemný štítok */
.card > .eyebrow,.kredit-blok > .eyebrow{
  display:inline-block;font-size:11px;letter-spacing:.14em;color:#F87171;
  background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);border-radius:999px;padding:3px 9px;margin-bottom:8px;
}

/* ── Termíny: čipy na ťukanie (kedy to chcem / kedy to viem urobiť) ── */
.tm-blok{margin:0 0 14px}
.tm-otazka{display:block;font-size:14.5px;font-weight:600;color:#E7EAEE;margin-bottom:8px;line-height:1.3}
.tm-zelanie{margin:0 0 8px;font-size:13.5px;color:#D6A44E;line-height:1.4}
.tm-zelanie b{color:#F0C46B}
.tm-cipy{display:flex;flex-wrap:wrap;gap:8px}
.tm-cip{font:inherit;font-size:14px;line-height:1;padding:10px 14px;min-height:40px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#E7EAEE;
  transition:border-color .12s,background .12s,color .12s,transform .12s}
.tm-cip:hover{border-color:rgba(255,255,255,.4)}
.tm-cip:active{transform:scale(.97)}
.tm-cip.on{background:linear-gradient(180deg,#F05252,#DC2626);border-color:transparent;color:#fff;font-weight:600;
  box-shadow:0 4px 12px rgba(220,38,38,.28)}
.tm-den{margin-top:10px}
.tm-den-lab span{display:block;font-size:13.5px;font-weight:600;color:#C6CCD4;margin-bottom:6px}
.tm-datum{width:100%;max-width:240px;background:#12151B !important;border:1.5px solid rgba(255,255,255,.14) !important;
  border-radius:9px;padding:10px 12px;font:inherit;font-size:16px;color:#fff;color-scheme:dark}
.tm-vysledok{margin:8px 0 0;font-size:13.5px;color:#5EE0A5;font-weight:600}
.tm-vysledok:empty{display:none}

/* ── Chat kupujúci ↔ predajca pri ponuke ────────────────────── */
.chat{margin-top:12px;padding:12px;background:#12151B;border:1px solid rgba(255,255,255,.08);border-radius:12px}
.chat-hlava{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;color:#E7EAEE}
.chat-hlava svg{flex:none;color:#F87171}
.chat-hlava b{font-size:14.5px;font-weight:600}
.chat-stav{font-size:12.5px;color:#9CA3AF}
.chat-nove{font-style:normal;font-size:11.5px;font-weight:700;color:#fff;background:linear-gradient(180deg,#F05252,#DC2626);
  border-radius:999px;padding:3px 9px;margin-left:auto;box-shadow:0 3px 10px rgba(220,38,38,.3)}
.chat-viac{display:block;width:100%;text-align:center;font:inherit;font-size:12.5px;color:#9CA3AF;background:none;border:0;
  padding:4px 0 8px;cursor:pointer}
.chat-viac:hover{color:#fff}
.chat-spravy{display:flex;flex-direction:column;gap:6px}
.chat-b{max-width:88%;padding:8px 12px;border-radius:14px;font-size:14.5px;line-height:1.45;color:#E7EAEE;background:rgba(255,255,255,.06)}
.chat-b.ja{align-self:flex-end;background:linear-gradient(180deg,rgba(240,82,82,.28),rgba(220,38,38,.22));border-bottom-right-radius:4px}
.chat-b.on{align-self:flex-start;border-bottom-left-radius:4px}
.chat-b.nova{box-shadow:0 0 0 1.5px rgba(248,113,113,.7)}
.chat-b p{margin:0;white-space:pre-wrap;word-break:break-word}
.chat-b small{display:block;font-size:11px;color:#9CA3AF;margin-top:3px}
.chat-foto{display:block;margin-top:6px}
.chat-foto img{display:block;max-width:100%;max-height:220px;border-radius:10px;border:1px solid rgba(255,255,255,.14)}
.chat-b p + .chat-foto{margin-top:8px}
/* hodnotenie predajcu po obchode („Sedelo to?") */
.hodnot{margin:16px 0;padding:14px 16px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12)}
.hodnot h3{margin:0 0 4px;font-size:16px}
.hodnot p{margin:0 0 10px;font-size:13.5px;color:#9CA3AF;line-height:1.45}
.hodnot-volby{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.hodnot-volby button{font:inherit;font-size:14.5px;font-weight:700;padding:10px 16px;border-radius:10px;cursor:pointer;
  border:1.5px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);color:#E7EAEE}
.hodnot-volby button.on{border-color:#5FBF8B;background:rgba(95,191,139,.16);color:#7EE2A8}
.hodnot-volby button.on.nie{border-color:#F87171;background:rgba(248,113,113,.14);color:#FCA5A5}
.hodnot textarea{width:100%;box-sizing:border-box;background:#0D0F12 !important;border:1.5px solid rgba(255,255,255,.14) !important;border-radius:10px;
  padding:9px 12px;font:inherit;font-size:15px;color:#fff;min-height:42px;resize:vertical}
.hodnot .btn{width:auto;margin:8px 0 0;padding:10px 16px;font-size:14.5px;border-radius:10px}
.hodnot-hotovo{font-size:13.5px;color:#7EE2A8;margin:6px 0 0}
.hodnot-chyba{font-size:13px;color:#F87171;margin:6px 0 0;font-weight:600}
/* štítok pri ponuke: koľkým kupujúcim to s predajcom sedelo */
.sedelo-tag{display:inline-block;font-family:var(--mono,ui-monospace,monospace);font-size:10px;letter-spacing:.06em;text-transform:uppercase;
  color:#7EE2A8;background:rgba(95,191,139,.12);border:1px solid rgba(95,191,139,.45);border-radius:6px;padding:4px 8px;margin:0 0 8px 6px}
.sedelo-tag.zle{color:#FCA5A5;background:rgba(248,113,113,.1);border-color:rgba(248,113,113,.45)}
/* orientačná cena vo formulári dopytu */
.odhad-ceny{margin:6px 0 0;font-size:13px;color:#A9C2D8;line-height:1.45}
.odhad-ceny b{color:#E7EAEE}
.chat-rychle{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chat-cip{font:inherit;font-size:13px;line-height:1;padding:8px 11px;border-radius:999px;cursor:pointer;
  border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.04);color:#E7EAEE;transition:border-color .12s,transform .12s}
.chat-cip:hover{border-color:rgba(255,255,255,.4)}
.chat-cip:active{transform:scale(.97)}
.chat-pis{display:flex;gap:8px;align-items:flex-end;margin-top:8px}
.chat-pis textarea{flex:1 1 auto;min-width:0;background:#0D0F12 !important;border:1.5px solid rgba(255,255,255,.14) !important;border-radius:12px;
  padding:10px 12px;font:inherit;font-size:16px;color:#fff;min-height:44px;max-height:140px;resize:vertical}
.chat-pis textarea:focus{border-color:#EF4444 !important;outline:none}
.chat-pis .btn{flex:none;width:auto;margin:0;padding:11px 16px;font-size:14.5px;border-radius:10px}
.chat-tip{margin:6px 0 0;font-size:12px;color:#9CA3AF;line-height:1.45}
.chat-chyba{margin:6px 0 0;font-size:13px;color:#F87171;font-weight:600}
.chat-info{margin:8px 0 0;font-size:13px;color:#D6A44E;line-height:1.45}
.chat-info.zle{color:#F87171}
.chat-tip.zle{color:#F0B37E}
.chat-varuj{margin:6px 0 0;font-size:12.5px;color:#F0B37E;font-weight:600}
.chat-skryte{display:inline-block;font-style:normal;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#9CA3AF;
  background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.25);border-radius:6px;padding:1px 6px;vertical-align:1px}
/* štítok pri ponuke / karte: otvorený chat */
.chat-tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono,ui-monospace,monospace);font-size:10.5px;letter-spacing:.08em;
  text-transform:uppercase;color:#FCA5A5;background:rgba(220,38,38,.14);border:1px solid rgba(239,68,68,.45);border-radius:6px;padding:4px 8px;margin:0 0 8px 6px}
.chat-tag.ticho{color:#9CA3AF;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.14)}
.chat-skryte-pozn{display:block;font-style:normal;font-size:11.5px;line-height:1.4;color:#D6A44E;margin-top:4px}
