/* Troker — stilul aplicației, peste Bulma 1.0 și fonturile Inter / Outfit incluse în FoxyUI 4.01 (fără CDN-uri).
   Paleta vine din ilustrația „strângerii de mână”: bleumarin (fundal), turcoaz (încredere), portocaliu (acțiuni).
   --tk-accent și --tk-navy se pot schimba din Administrare → Aspect (TrokerPage le suprascrie în <head>). */
:root {
  --tk-navy: #101A33;
  --tk-teal: #14B8A6;
  --tk-cyan: #22D3EE;
  --tk-blue: #2563EB;
  --tk-accent: #F08A24;
  --tk-accent-d: #D9720F;
  --tk-red: #DC2626;
  --tk-green: #16A34A;
  --tk-bg: #F2F5FA;
  --tk-card: #FFFFFF;
  --tk-text: #0F172A;
  --tk-muted: #5B6B82;
  --tk-line: #E3E8F0;
  --tk-radius: 16px;
  --tk-shadow: 0 1px 2px rgba(16, 26, 51, .05), 0 6px 20px rgba(16, 26, 51, .06);
  --tk-shadow-h: 0 4px 10px rgba(16, 26, 51, .08), 0 18px 40px rgba(16, 26, 51, .12);
  --tk-wrap: 1280px;
}

html { background: var(--tk-bg); scroll-behavior: smooth; color-scheme: light; }
body { background: var(--tk-bg); color: var(--tk-text); font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .tk-logo span, .tk-card-price, .tk-ad-price { font-family: Outfit, Inter, sans-serif; }
a { color: var(--tk-blue); }
a:hover { color: var(--tk-accent-d); }
:focus-visible { outline: 3px solid var(--tk-cyan); outline-offset: 2px; border-radius: 6px; }
.tk-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--tk-navy); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.tk-skip:focus { left: 12px; }
.tk-app { min-height: 100vh; display: flex; flex-direction: column; }
.tk-wrap { max-width: var(--tk-wrap); margin: 0 auto; padding: 0 16px; width: 100%; }
.tk-content { max-width: var(--tk-wrap); width: 100%; margin: 0 auto; padding: 18px 16px 48px; flex: 1; }
.tk-muted { color: var(--tk-muted); font-size: .9rem; }
.tk-help { color: var(--tk-muted); font-size: .84rem; line-height: 1.5; margin: 6px 0; }
.tk-center { text-align: center; }
.tk-mt { margin-top: 8px; }
.tk-page-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 12px; line-height: 1.2; }
.tk-section-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; margin: 26px 0 12px; }
.tk-h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.tk-h3 { font-size: 1.02rem; font-weight: 800; margin: 4px 0 10px; }
.tk-notice { border-radius: 12px; margin-bottom: 14px !important; }
.tk-panel { background: var(--tk-card); border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 18px; margin-bottom: 16px; }
.tk-danger-text, .tk-danger-text i { color: var(--tk-red) !important; }
.tk-code textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }

/* ---------------------------------------------------------------- butoane */
.button { border-radius: 12px; font-weight: 600; }
.button.tk-btn-primary, .tk-btn-primary { background: var(--tk-accent); color: #fff; border: 0; font-weight: 700; box-shadow: 0 4px 14px rgba(240, 138, 36, .3); }
.button.tk-btn-primary:hover, .tk-btn-primary:hover { background: var(--tk-accent-d); color: #fff; }
.button.tk-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.button.tk-btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.button.tk-btn-swap { background: linear-gradient(120deg, var(--tk-teal), var(--tk-blue)); color: #fff; border: 0; }
.tk-link-btn { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--tk-muted); }
.tk-link-btn:hover { color: var(--tk-accent); }
.tk-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* ---------------------------------------------------------------- antet */
.tk-header { background: var(--tk-navy); background-image: radial-gradient(1200px 120px at 15% -40%, rgba(34,211,238,.18), transparent), radial-gradient(900px 140px at 85% -60%, rgba(240,138,36,.18), transparent);
  color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.tk-header-inner { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.tk-header-min { position: static; }
.tk-header-min .tk-header-inner { justify-content: center; }
.tk-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.tk-logo img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(34,211,238,.25); }
.tk-logo span { font-size: 1.6rem; font-weight: 800; letter-spacing: -.6px; background: linear-gradient(90deg, #7DE7F5, #fff 45%, #FFC184); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-logo:hover { color: #fff; }
.tk-search { flex: 1; display: flex; background: #fff; border-radius: 14px; overflow: hidden; max-width: 760px; box-shadow: 0 4px 16px rgba(0,0,0,.25); min-width: 0; }
.tk-search label { display: flex; align-items: center; gap: 8px; padding-left: 14px; color: var(--tk-muted); }
.tk-search-q { flex: 1; min-width: 0; }
.tk-search-where { border-left: 1px solid var(--tk-line); max-width: 210px; }
.tk-search input, .tk-search select { flex: 1; border: 0; padding: 12px 10px 12px 0; font-size: .98rem; outline: none; min-width: 0; color: var(--tk-text); background: transparent; font-family: inherit; }
.tk-search select { cursor: pointer; padding-right: 8px; }
.tk-search-btn { border: 0; background: var(--tk-accent); color: #fff; padding: 0 22px; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.tk-search-btn i { display: none; }
.tk-search-btn:hover { background: var(--tk-accent-d); }
.tk-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tk-action { display: flex; flex-direction: column; align-items: center; color: #D7E0EE; font-size: .74rem; padding: 4px 10px; border-radius: 12px; position: relative; text-decoration: none; }
.tk-action i { font-size: 1.3rem; margin-bottom: 3px; }
.tk-action .tk-avatar { width: 26px; height: 26px; font-size: .7rem; margin-bottom: 2px; }
.tk-action:hover { background: rgba(255,255,255,.08); color: #fff; }
.tk-badge { position: absolute; top: -2px; right: 6px; background: var(--tk-accent); color: #fff; border-radius: 999px; font-size: .68rem; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-style: normal; font-weight: 700; }
.tk-post-btn { margin-left: 8px; height: 44px; padding: 0 18px; }
.tk-post-btn i { margin-right: 6px; }
.tk-dropdown { position: relative; }
.tk-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; color: var(--tk-text); min-width: 250px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.22); padding: 10px; z-index: 50; }
/* meniurile din antet: la trecerea mouse-ului doar pe dispozitive cu mouse; la atingere le deschide troker.js (.is-open);
   de la tastatură, cât timp focusul vizibil e în meniu (regulă separată: un browser fără :has nu o ignoră pe prima) */
@media (hover: hover) { .tk-dropdown:hover .tk-menu { display: block; } }
.tk-dropdown.is-open .tk-menu { display: block; }
.tk-dropdown:has(:focus-visible) .tk-menu { display: block; }
.tk-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--tk-text); font-size: .92rem; }
.tk-menu a:hover { background: var(--tk-bg); color: var(--tk-accent-d); }
.tk-menu a i { width: 18px; color: var(--tk-muted); }
.tk-menu .button { justify-content: center; color: #fff; }
.tk-menu-hint { font-size: .85rem; text-align: center; margin-top: 8px; }
/* zona rolului (Administrare / Moderare), prima în meniul contului */
.tk-menu-role { border-bottom: 1px solid var(--tk-line); margin-bottom: 6px; padding-bottom: 6px; }
.tk-menu-role small { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--tk-muted); padding: 2px 10px 4px; }
.tk-menu-role a { background: color-mix(in srgb, var(--tk-accent) 10%, white); color: var(--tk-accent-d) !important; font-weight: 700; position: relative; }
.tk-menu-role a i { color: var(--tk-accent-d) !important; }
.tk-menu-role .tk-badge { position: static; margin-left: auto; }

/* ---------------------------------------------------------------- prima pagină */
.tk-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; background: var(--tk-navy); color: #fff; border-radius: 24px; padding: 34px 36px; margin-bottom: 10px;
  background-image: radial-gradient(600px 300px at 0% 0%, rgba(34,211,238,.22), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(240,138,36,.25), transparent 60%); overflow: hidden; }
.tk-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.tk-hero h1 span { display: block; background: linear-gradient(90deg, var(--tk-cyan), #FFB066); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tk-hero p { color: #C9D4E5; margin: 12px 0 18px; font-size: 1.05rem; }
.tk-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: #AFC0D8; font-size: .86rem; }
.tk-hero-points i { color: var(--tk-cyan); margin-right: 4px; }
.tk-hero-art { text-align: center; }
/* ilustrația se topește în fundalul secțiunii: opacă în centru, transparentă spre margini (fără chenar sau colțuri vizibile) */
.tk-hero-art img { width: min(360px, 100%); height: auto; animation: tk-float 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%); }
@keyframes tk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .tk-hero-art img { animation: none; } html { scroll-behavior: auto; } }
.tk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tk-cat { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  color: var(--tk-text); transition: transform .15s, box-shadow .15s; }
/* efectele de trecere a mouse-ului doar pe dispozitive cu mouse (pe telefon ar rămâne „lipite” după atingere) */
@media (hover: hover) { .tk-cat:hover { transform: translateY(-3px); box-shadow: var(--tk-shadow-h); color: var(--tk-text); } }
.tk-cat-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, white); }
.tk-cat-name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.tk-cat small { color: var(--tk-muted); font-size: .76rem; }
.tk-promo-note { margin-top: -6px; }
.tk-howto { margin-top: 10px; }
.tk-howto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tk-howto-grid div { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 18px; }
.tk-howto-grid i { font-size: 1.5rem; color: var(--tk-teal); margin-bottom: 8px; display: block; }
.tk-howto-grid p { color: var(--tk-muted); font-size: .88rem; margin-top: 4px; }

/* ---------------------------------------------------------------- carduri de anunț */
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tk-row-section { margin-top: 8px; }
.tk-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tk-row-head a { font-size: .9rem; font-weight: 600; }
/* rândurile de carduri se încadrează pe lățime (fără bară de derulare orizontală) */
.tk-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 4px 0 10px; }
.tk-card { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
@media (hover: hover) { .tk-card:hover { transform: translateY(-3px); box-shadow: var(--tk-shadow-h); } }
.tk-card.is-highlight { box-shadow: 0 0 0 2px var(--tk-accent), var(--tk-shadow); background: #FFFBF5; }
.tk-card-img { display: block; aspect-ratio: 4 / 3; background: #E9EEF6; position: relative; overflow: hidden; }
.tk-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
@media (hover: hover) { .tk-card:hover .tk-card-img img { transform: scale(1.04); } }
.tk-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--c);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, white), color-mix(in srgb, var(--c) 6%, white)); }
.tk-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tk-badges b, .tk-ad-badges span:not(.tag), .tk-swap-card .tk-badge-swap { font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px; }
.tk-badge-promo { background: var(--tk-accent); color: #fff; }
.tk-badge-demo { background: #475569; color: #fff; text-transform: uppercase; }
.tk-badge-free { background: #E11D48; color: #fff; }
.tk-badge-swap { background: var(--tk-teal); color: #fff; }
.tk-badge-lang { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.tk-lang-code { font-size: .66rem; font-weight: 800; color: #3730A3; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 4px; padding: 0 4px;
  vertical-align: 1px; text-decoration: none; letter-spacing: .3px; }
.tk-card-cat { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 70px); background: rgba(11,18,34,.72); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(2px); }
.tk-imgcount { position: absolute; right: 8px; bottom: 8px; background: rgba(16,26,51,.7); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
.tk-fav { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50% !important; padding: 0 !important; background: rgba(255,255,255,.92) !important;
  border: 0 !important; color: var(--tk-muted) !important; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tk-fav:hover, .tk-fav.is-on { color: #E11D48 !important; }
.tk-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tk-card-title { color: var(--tk-text); font-weight: 600; font-size: .93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tk-card-title:hover { color: var(--tk-accent-d); }
.tk-card-price { font-size: 1.2rem; font-weight: 800; color: var(--tk-navy); }
.tk-card-price small, .tk-ad-price small { font-size: .72rem; font-weight: 600; color: var(--tk-muted); font-family: Inter, sans-serif; }
.tk-card-meta { display: flex; justify-content: space-between; gap: 6px; font-size: .76rem; color: var(--tk-muted); margin-top: auto; }
.tk-card-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-card-seller { font-size: .74rem; color: var(--tk-muted); border-top: 1px dashed var(--tk-line); padding-top: 6px; }
.tk-verified { color: var(--tk-teal); font-weight: 700; }

/* ---------------------------------------------------------------- căutare */
.tk-crumbs { font-size: .82rem; color: var(--tk-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 6px; }
.tk-crumbs a, .tk-crumbs span { color: var(--tk-muted); }
.tk-crumbs > * + *::before { content: "›"; margin-right: 6px; color: #A0AEC0; }
.tk-search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.tk-search-side { position: sticky; top: calc(84px + env(safe-area-inset-top)); max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 14px; }
.tk-filters-toggle summary { font-weight: 800; cursor: pointer; list-style: none; padding: 2px 0 8px; }
.tk-filters-toggle summary::-webkit-details-marker { display: none; }
.tk-filters fieldset { border: 0; border-top: 1px solid var(--tk-line); padding: 12px 0 6px; margin: 0; }
.tk-filters legend { font-weight: 700; font-size: .85rem; padding: 0; margin-bottom: 8px; color: var(--tk-navy); }
.tk-cat-list { display: grid; gap: 2px; }
.tk-cat-list a { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--tk-text); font-size: .86rem; }
.tk-cat-list a i { width: 16px; text-align: center; }
.tk-cat-list a small { margin-left: auto; color: var(--tk-muted); font-size: .75rem; }
.tk-cat-list a:hover { background: var(--tk-bg); }
.tk-cat-list a.is-on { background: color-mix(in srgb, var(--tk-accent) 14%, white); font-weight: 700; }
.tk-cat-list .tk-cat-back { color: var(--tk-blue); font-size: .8rem; }
.tk-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.tk-opt { display: flex !important; gap: 8px; align-items: center; font-size: .88rem; padding: 3px 0; margin: 0 !important; }
.tk-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tk-results-head .tk-page-title { margin-bottom: 0; }
.tk-results-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tk-sort { display: flex; gap: 6px; align-items: center; }
.tk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.tk-chip { background: #fff; border: 1px solid var(--tk-line); border-radius: 999px; padding: 4px 10px; font-size: .8rem; color: var(--tk-text); }
.tk-chip:hover { border-color: var(--tk-accent); color: var(--tk-accent-d); }
.tk-chip i { font-size: .7rem; margin-left: 2px; }
.tk-chip-clear { color: var(--tk-red); }
.tk-promoted-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 4px 0 8px; font-size: .9rem; }
.tk-promoted-head b { color: var(--tk-accent-d); }
.tk-grid-promoted { background: linear-gradient(135deg, #FFF7EC, #F1FBFC); padding: 12px; border-radius: 18px; margin-bottom: 18px; }
.tk-pages { margin-top: 24px; }
/* mesajele administratorului pe prima pagină și bara de mentenanță (doar pentru personal) */
.tk-site-notices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.tk-site-notice { margin: 0 !important; border-radius: var(--tk-radius); }
.tk-site-notice p { margin: 4px 0 0; }
.tk-maint-bar { background: #FEF3C7; color: #78350F; border: 1px solid #F59E0B; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.tk-maint-bar a { color: #92400E; font-weight: 700; text-decoration: underline; margin-left: 6px; }
.tk-features .switch, .tk-features label { margin-bottom: 6px; }
/* paginarea listelor din cont și din administrare */
.tk-pager { margin: 14px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tk-pager-info { font-size: .85rem; margin: 0; }
.tk-pager .tk-pages { margin-top: 0; width: 100%; }
.tk-rank-note { margin-top: 18px; }

/* ---------------------------------------------------------------- pagina anunțului */
.tk-ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
/* caruselul anunțului: coperta compusă la cerere (CoverService, fără loc în baza de date) + pozele întregi, cum le-a încărcat autorul */
.tk-carousel { position: relative; background: #0B1222; border-radius: var(--tk-radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--tk-shadow); }
.tk-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.tk-car-track::-webkit-scrollbar { display: none; }
.tk-slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tk-slide img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.tk-car-cat { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(11,18,34,.72); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tk-car-nav { position: absolute; top: calc(50% - 22px - 37px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--tk-navy);
  box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; z-index: 2; }
.tk-car-nav:hover { background: #fff; color: var(--tk-accent-d); }
.tk-car-nav.is-prev { left: 12px; }
.tk-car-nav.is-next { right: 12px; }
.tk-car-count { position: absolute; left: 12px; top: 12px; background: rgba(11,18,34,.7); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.tk-car-full { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(11,18,34,.7); color: #fff; cursor: pointer; z-index: 2; }
.tk-car-full:hover { background: rgba(11,18,34,.9); }
.tk-car-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; background: #0F1830; }
.tk-car-thumbs::-webkit-scrollbar { display: none; }
.tk-car-thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; width: 76px; height: 58px; flex-shrink: 0; cursor: pointer; background: none; opacity: .65; }
.tk-car-thumbs button.is-on, .tk-car-thumbs button:hover { border-color: var(--tk-accent); opacity: 1; }
.tk-car-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* ecran complet: suprapunere fixă (merge și pe iPhone, unde Fullscreen API nu e disponibil pentru elemente) */
.tk-carousel.is-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; margin: 0; display: flex; flex-direction: column; background: #05080F; }
.tk-carousel.is-full .tk-car-track { flex: 1; min-height: 0; }
.tk-carousel.is-full { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.tk-carousel.is-full .tk-car-count { top: calc(12px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); }
.tk-carousel.is-full .tk-car-full { top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); }
.tk-carousel.is-full .tk-slide { aspect-ratio: auto; height: 100%; }
.tk-carousel.is-full .tk-slide img { cursor: zoom-out; }
.tk-carousel.is-full .tk-car-nav { top: calc(50% - 22px - 37px); }
html.tk-noscroll, html.tk-noscroll body { overflow: hidden; }
.tk-ad-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tk-ad-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; }
.tk-ad-price { font-size: 2rem; font-weight: 800; color: var(--tk-navy); margin: 6px 0; }
.tk-swap-wish { background: #E9FBF8; border-radius: 12px; padding: 8px 12px; color: #0F766E; font-size: .92rem; }
.tk-ad-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--tk-muted); font-size: .84rem; margin-top: 8px; }
.tk-ad-actions { display: flex; gap: 8px; margin: -6px 0 16px; }
/* panoul „Cod QR” din Anunțurile mele */
.tk-qr-pop { position: relative; }
.tk-qr-pop > summary { list-style: none; }
.tk-qr-pop > summary::-webkit-details-marker { display: none; }
.tk-qr-panel { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: 272px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tk-qr-panel img { width: 240px; height: auto; min-height: 240px; background: var(--tk-bg); border-radius: 6px; }
.tk-qr-panel .tk-help { margin: 0; text-align: center; }
/* meniul „Distribuie” */
.tk-share { position: relative; }
.tk-share > summary { list-style: none; }
.tk-share > summary::-webkit-details-marker { display: none; }
.tk-share-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 210px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 6px; display: flex; flex-direction: column; }
.tk-share-menu a, .tk-share-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--tk-navy); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; }
.tk-share-menu a:hover, .tk-share-menu button:hover { background: var(--tk-bg, #f1f5f9); }
.tk-share-menu i { width: 18px; text-align: center; font-size: 1.1rem; }
.tk-share-menu [hidden] { display: none; }
.tk-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; }
.tk-attrs div { border-bottom: 1px solid var(--tk-line); padding: 6px 0; }
.tk-attrs dt { font-size: .76rem; color: var(--tk-muted); }
.tk-attrs dd { font-weight: 600; margin: 0; word-break: break-word; }
.tk-desc .tk-prose { white-space: normal; }
.tk-jobs-note { margin: -6px 0 16px; }
.tk-trader dl { margin-bottom: 8px; }
.tk-trader-person p { font-size: .9rem; color: #334155; }
.tk-ad-report { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .86rem; margin: 6px 0 20px; }
.tk-ad-report a { color: var(--tk-red); font-weight: 600; }
.tk-ad-side { position: sticky; top: calc(84px + env(safe-area-inset-top)); }
.tk-seller { display: flex; gap: 12px; align-items: center; color: var(--tk-text); }
.tk-seller b { font-size: 1.05rem; }
.tk-seller small { display: block; color: var(--tk-muted); font-size: .8rem; }
.tk-seller-badges { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: .84rem; }
.tk-seller-box .button { margin-top: 6px; }
.tk-phone { font-weight: 800; font-size: 1.1rem; letter-spacing: .5px; }
.tk-swap-box { background: linear-gradient(135deg, #ECFEFF, #F0FDFA); }
.tk-safety ul { list-style: disc; padding-left: 18px; font-size: .86rem; color: #334155; margin-bottom: 6px; }
.tk-owner-bar { background: #fff; border-left: 4px solid var(--tk-accent); border-radius: 14px; box-shadow: var(--tk-shadow); padding: 12px 16px; margin-bottom: 14px; }
.tk-owner-bar .tk-btn-row { margin-top: 8px; }

/* ---------------------------------------------------------------- formulare */
.tk-form { display: grid; gap: 4px; }
.tk-form .field { margin-bottom: 8px; }
.tk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tk-form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.label { font-size: .84rem; font-weight: 600; color: #334155; }
.input, .textarea, .select select { border-radius: 10px; border-color: #D3DBE7; box-shadow: none; }
.input:focus, .textarea:focus, .select select:focus { border-color: var(--tk-teal); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.tk-post-head { margin-bottom: 6px; }
.tk-post-form { max-width: 900px; }
.tk-post-section { padding: 20px 22px; }
.tk-post-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tk-post-section-head h2 { font-size: 1.15rem; font-weight: 800; }
.tk-step { width: 32px; height: 32px; border-radius: 50%; background: var(--tk-navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tk-post-submit { display: grid; gap: 8px; justify-items: start; padding: 4px 4px 20px; }
.tk-photo-ids { display: none !important; }
.tk-uploader { border: 2px dashed #CBD5E1; border-radius: 16px; padding: 12px; background: #FAFCFF; }
.tk-uploader.is-drag { border-color: var(--tk-teal); background: #F0FDFA; }
.tk-up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.tk-up-item, .tk-up-add { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }
.tk-up-item img { width: 100%; height: 100%; object-fit: cover; }
.tk-up-item.is-loading { background: #E2E8F0; display: flex; align-items: center; justify-content: center; color: var(--tk-muted); font-size: .8rem; }
.tk-up-main { position: absolute; left: 6px; bottom: 6px; background: var(--tk-accent); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.tk-up-remove, .tk-up-first { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16,26,51,.75); color: #fff; cursor: pointer; }
.tk-up-remove { right: 6px; }
.tk-up-first { left: 6px; }
.tk-up-add { border: 2px dashed #CBD5E1; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; cursor: pointer; color: var(--tk-muted); font-weight: 600; font-size: .86rem; background: #fff; }
.tk-up-add:hover { border-color: var(--tk-accent); color: var(--tk-accent-d); }
.tk-up-add i { font-size: 1.6rem; }
.tk-up-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tk-up-cam { border-style: solid; border-color: color-mix(in srgb, var(--tk-accent) 45%, white); color: var(--tk-accent-d); }
/* fereastra camerei web (Fă o poză, pe calculator) */
.tk-cam { border: 0; border-radius: 16px; padding: 16px; width: min(720px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.tk-cam::backdrop { background: rgba(16,26,51,.6); }
.tk-cam-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--tk-navy); }
.tk-cam-which { font-size: .85rem; color: var(--tk-muted); font-weight: 700; }
.tk-cam-view { position: relative; background: #0B1220; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.tk-cam-view video { width: 100%; height: 100%; object-fit: contain; transition: opacity .15s; }
.tk-cam-view video.is-mirror { transform: scaleX(-1); }
.tk-cam-msg { position: absolute; inset: auto 16px; color: #fff; text-align: center; margin: 0; }
.tk-cam-btns { justify-content: center; }
.tk-cam [hidden] { display: none !important; }
.tk-up-status { font-size: .84rem; color: var(--tk-red); min-height: 1em; margin-top: 6px; }

/* ---------------------------------------------------------------- autentificare */
.tk-login-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.tk-login { background: #fff; border-radius: 22px; box-shadow: 0 12px 44px rgba(16,26,51,.12); padding: 28px; width: 100%; max-width: 460px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.tk-login-head { text-align: center; margin-bottom: 10px; }
.tk-login-head h1 { font-size: 1.6rem; font-weight: 800; }
.tk-login-head p { color: var(--tk-muted); font-size: .9rem; }
.tk-login-links { text-align: right; font-size: .85rem; margin-top: 4px; }
.tk-sau { display: flex; align-items: center; gap: 10px; color: var(--tk-muted); font-size: .8rem; margin: 12px 0 8px; }
.tk-sau::before, .tk-sau::after { content: ""; flex: 1; height: 1px; background: var(--tk-line); }
.tk-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tk-social-btn { width: 100%; justify-content: center; font-size: .85rem !important; white-space: normal; height: auto; min-height: 2.5em; line-height: 1.2; }
.tk-social-inline { margin-top: 10px; grid-template-columns: repeat(4, 1fr); }
.tk-alt-logins { display: grid; gap: 8px; margin-top: 8px; }
.tk-login-register { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--tk-muted); display: grid; gap: 6px; }
.tk-2fa-title { font-weight: 800; margin-top: 8px; }

/* ---------------------------------------------------------------- cont / administrare */
.tk-account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.tk-account-nav { padding: 10px; display: grid; gap: 2px; position: sticky; top: calc(84px + env(safe-area-inset-top)); }
.tk-account-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--tk-text); font-size: .9rem; position: relative; }
.tk-account-nav a i { width: 18px; color: var(--tk-muted); }
.tk-account-nav a.is-on { background: color-mix(in srgb, var(--tk-accent) 13%, white); font-weight: 700; }
.tk-account-nav a.is-on i { color: var(--tk-accent-d); }
.tk-account-nav a:hover { background: var(--tk-bg); }
.tk-account-nav .tk-badge { position: static; margin-left: auto; }
.tk-account-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 14px; border-bottom: 1px solid var(--tk-line); margin-bottom: 6px; }
.tk-account-user small { display: block; color: var(--tk-muted); font-size: .78rem; word-break: break-all; }
.tk-account-main .tk-page-title { margin-top: 0; }
.tk-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h, 200) 70% 45%), hsl(calc(var(--h, 200) + 40) 70% 38%)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; font-size: .95rem; }
.tk-tabs { margin-bottom: 12px !important; }
.tk-myads { display: grid; gap: 10px; }
.tk-myad { display: flex; gap: 14px; padding: 12px; margin: 0; }
.tk-myad-img { width: 130px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: block; background: #E9EEF6; }
.tk-myad-img img { width: 100%; height: 100%; object-fit: cover; }
.tk-myad-img .tk-noimg { font-size: 1.6rem; }
.tk-myad-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tk-notifs { display: grid; gap: 8px; }
.tk-notif { display: grid; gap: 2px; margin: 0; padding: 12px 16px; color: var(--tk-text); }
.tk-notif span { color: #334155; font-size: .9rem; }
.tk-notif small { color: var(--tk-muted); font-size: .78rem; }
.tk-notif.is-unread { border-left: 4px solid var(--tk-accent); }
a.tk-notif:hover { box-shadow: var(--tk-shadow-h); color: var(--tk-text); }
.tk-security-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.tk-security-head > i { font-size: 1.5rem; color: var(--tk-teal); width: 30px; margin-top: 4px; }
.tk-security-head > div { flex: 1; }
.tk-security-head h3 { font-weight: 800; }
.tk-security-head p { color: var(--tk-muted); font-size: .88rem; }
.tk-security-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--tk-line); }
.tk-security-row small { display: block; color: var(--tk-muted); font-size: .78rem; }
.tk-recovery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.tk-recovery code { background: #fff; text-align: center; font-size: .95rem; }
.tk-totp-setup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tk-qr svg { display: block; border-radius: 10px; border: 1px solid var(--tk-line); }
.tk-totp-setup ol { flex: 1; min-width: 220px; font-size: .9rem; display: grid; gap: 6px; padding-left: 20px; }
.tk-fido-add { display: grid; gap: 8px; border-top: 1px solid var(--tk-line); padding-top: 10px; margin-top: 4px; }
.tk-danger-zone { border: 1px solid #FECACA; }
.tk-decision-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tk-decision-head small { color: var(--tk-muted); }
.tk-decision-form { border: 2px solid var(--tk-accent); }
.tk-table-wrap { overflow-x: auto; padding: 0; }
.tk-table { margin: 0 !important; font-size: .86rem; }
.tk-table th { white-space: nowrap; font-size: .78rem; color: var(--tk-muted); }
.tk-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tk-kpi { background: #fff; border-radius: 14px; box-shadow: var(--tk-shadow); padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; color: var(--tk-text); align-items: center; }
.tk-kpi i { grid-row: span 2; font-size: 1.2rem; color: var(--tk-teal); background: #E6FAF7; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tk-kpi span { font-size: .78rem; color: var(--tk-muted); }
.tk-kpi b { font-size: 1.25rem; font-weight: 800; }
a.tk-kpi:hover { box-shadow: var(--tk-shadow-h); color: var(--tk-text); }
.tk-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tk-charts .tk-panel { min-width: 0; }
/* grafic orizontal: coloană fixă pentru etichete, pe un singur rând */
.tk-charts .charts-css.bar { --labels-size: 130px; }
.tk-charts .charts-css.bar th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; justify-content: flex-start; }
.tk-mod-row { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.tk-mod-info { flex: 1; min-width: 260px; display: flex; gap: 12px; }
.tk-mod-info p { margin: 6px 0; font-size: .9rem; }
.tk-mod-info details { font-size: .85rem; margin-top: 4px; }
.tk-admin-search { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.tk-admin-search .field { flex: 1; margin: 0; }
.tk-cat-admin { padding: 6px 14px; }
.tk-cat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--tk-line); }
.tk-cat-row.is-child { padding-left: 26px; font-size: .92rem; }
.tk-words { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-brand-imgs { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.tk-brand-imgs figure { text-align: center; font-size: .78rem; color: var(--tk-muted); margin: 0; }
.tk-brand-imgs img { border-radius: 14px; box-shadow: var(--tk-shadow); background: #fff; }
.tk-brand-og img { width: 320px; }
.tk-brand-upload { display: grid; gap: 8px; max-width: 520px; }

/* ---------------------------------------------------------------- mesaje */
.tk-inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.tk-inbox-list { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 12px; max-height: calc(100vh - 120px); overflow-y: auto; position: sticky; top: calc(84px + env(safe-area-inset-top)); }
.tk-inbox-head .tk-page-title { margin: 0 0 6px; font-size: 1.4rem; }
.tk-conv { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; color: var(--tk-text); }
.tk-conv:hover { background: var(--tk-bg); color: var(--tk-text); }
.tk-conv.is-on { background: color-mix(in srgb, var(--tk-accent) 12%, white); }
.tk-conv img, .tk-conv-noimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #E9EEF6; display: flex; align-items: center; justify-content: center; color: var(--tk-muted); }
.tk-conv div { min-width: 0; display: grid; }
.tk-conv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--tk-muted); }
.tk-conv .tk-conv-ad { color: #334155; font-weight: 600; }
.tk-conv small { font-size: .72rem; color: var(--tk-muted); display: grid; justify-items: end; gap: 4px; }
.tk-conv small .tk-badge { position: static; }
.tk-conv.is-unread b { font-weight: 800; }
.tk-thread { background: #fff; border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 14px; min-height: 60vh; display: flex; flex-direction: column; }
.tk-thread .tk-empty { box-shadow: none; margin: auto; }
.tk-thread-head { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--tk-line); padding-bottom: 10px; flex-wrap: wrap; }
.tk-thread-back { display: none; font-size: 1.2rem; padding: 4px 8px; }
.tk-thread-ad { display: flex; gap: 10px; align-items: center; color: var(--tk-text); flex: 1; min-width: 0; }
.tk-thread-ad img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.tk-thread-ad div { display: grid; min-width: 0; }
.tk-thread-ad b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-thread-ad span { font-size: .84rem; color: var(--tk-muted); }
.tk-thread-user { display: flex; gap: 8px; align-items: center; color: var(--tk-text); font-weight: 600; }
.tk-thread-user .tk-avatar { width: 32px; height: 32px; font-size: .75rem; }
.tk-thread-tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.tk-thread-tools .button { font-size: .8rem; height: 2em; }
.tk-messages { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 4px; max-height: 58vh; overflow-y: auto; background: linear-gradient(#F8FAFD, #F3F6FB); border-radius: 12px; }
.tk-msg { max-width: 78%; display: grid; gap: 4px; }
.tk-msg > div:first-child { padding: 10px 14px; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tk-msg p { margin: 0; white-space: pre-line; word-break: break-word; }
.tk-msg small { font-size: .7rem; color: var(--tk-muted); }
.tk-msg.is-mine { align-self: flex-end; }
.tk-msg.is-mine > div:first-child { background: var(--tk-navy); color: #fff; border-bottom-right-radius: 4px; }
.tk-msg.is-mine small { color: #A9B7CC; }
.tk-msg.is-theirs { align-self: flex-start; }
.tk-msg.is-theirs > div:first-child { background: #fff; border-bottom-left-radius: 4px; }
.tk-msg-system { text-align: center; font-size: .78rem; color: var(--tk-muted); }
.tk-msg-system span { background: #E8EEF6; padding: 4px 12px; border-radius: 999px; }
.tk-swap-card { background: rgba(20,184,166,.12); border-radius: 12px; padding: 8px; margin-bottom: 8px; display: grid; gap: 6px; }
.tk-msg.is-mine .tk-swap-card { background: rgba(255,255,255,.1); }
.tk-swap-card a { display: flex; gap: 8px; align-items: center; color: inherit; }
.tk-swap-card img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.tk-swap-card div { display: grid; font-size: .86rem; }
.tk-reply { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; }
.tk-reply .field { flex: 1; margin: 0; }
.tk-review-form { margin: 12px 0 0; background: #FFFBF3; }

/* ---------------------------------------------------------------- profil, recenzii, favorite */
.tk-profile-head { display: flex; gap: 16px; align-items: flex-start; }
.tk-profile-head .tk-avatar { width: 72px; height: 72px; font-size: 1.5rem; }
.tk-profile-head h1 { font-size: 1.6rem; font-weight: 800; }
.tk-trader-mini { margin-top: 12px; font-size: .86rem; color: var(--tk-muted); border-top: 1px solid var(--tk-line); padding-top: 10px; }
.tk-reviews { display: grid; gap: 10px; }
.tk-review { margin: 0 0 10px; }
.tk-review-head { display: flex; gap: 10px; align-items: center; }
.tk-review-head > div { flex: 1; }
.tk-review-head small { display: block; color: var(--tk-muted); font-size: .78rem; }
.tk-review p { margin-top: 8px; }
.tk-review blockquote { background: var(--tk-bg); border-left: 3px solid var(--tk-teal); padding: 8px 12px; border-radius: 8px; margin-top: 8px; font-size: .9rem; }
.tk-stars { color: #F5A524; font-size: .82rem; letter-spacing: 1px; white-space: nowrap; }
.tk-saved { display: grid; gap: 8px; }
.tk-saved-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; flex-wrap: wrap; }
.tk-saved-name { color: var(--tk-text); display: grid; }
.tk-saved-name small { color: var(--tk-muted); font-size: .76rem; }
.tk-saved-tools { display: flex; gap: 10px; align-items: center; }
.tk-allcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tk-allcats-root { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--tk-text); margin-bottom: 8px; }
.tk-allcats-root small, .tk-allcats li small { color: var(--tk-muted); font-weight: 400; font-size: .76rem; }
.tk-allcats ul { display: grid; gap: 2px; }
.tk-allcats li a { color: #334155; font-size: .9rem; }

/* ---------------------------------------------------------------- legal */
.tk-legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.tk-legal-nav { position: sticky; top: calc(84px + env(safe-area-inset-top)); padding: 12px; }
.tk-legal-nav nav { display: grid; gap: 2px; }
.tk-legal-nav h4 { font-weight: 800; margin: 0 8px 6px; }
.tk-legal-nav a { padding: 7px 10px; border-radius: 8px; color: var(--tk-text); font-size: .88rem; }
.tk-legal-nav a.is-on { background: color-mix(in srgb, var(--tk-teal) 14%, white); font-weight: 700; }
.tk-legal-nav a:hover { background: var(--tk-bg); }
.tk-legal-doc { padding: 26px 30px; }
.tk-legal-head h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.4px; }
.tk-prose { line-height: 1.7; max-width: 860px; }
.tk-prose h2 { font-size: 1.2rem; font-weight: 800; margin: 22px 0 8px; }
.tk-prose h3 { font-size: 1.02rem; font-weight: 700; margin: 16px 0 6px; }
.tk-prose p { margin: 8px 0; }
.tk-prose ul, .tk-prose ol { padding-left: 22px; margin: 8px 0; }
.tk-prose ul { list-style: disc; }
.tk-prose ol { list-style: decimal; }
.tk-prose table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .9rem; }
.tk-prose th, .tk-prose td { border: 1px solid var(--tk-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.tk-prose th { background: var(--tk-bg); }
.tk-versions { margin-top: 24px; font-size: .88rem; }
.tk-legal-prompt { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #EEF9FF; border: 1px solid #BAE6FD; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.tk-legal-prompt-text { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 260px; }
.tk-legal-prompt-text i { font-size: 1.4rem; color: var(--tk-blue); margin-top: 2px; }
.tk-legal-prompt-text p { font-size: .88rem; margin: 2px 0 0; }
.tk-report-form { max-width: 760px; }
.tk-report-target { background: var(--tk-bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: .9rem; }
.tk-report-done { text-align: center; max-width: 640px; margin: 20px auto; padding: 34px; }
.tk-report-done > i { font-size: 3rem; color: var(--tk-green); }
.tk-report-done h1 { font-size: 1.5rem; font-weight: 800; margin: 8px 0; }
.tk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.tk-stat { margin: 0; display: grid; gap: 4px; }
.tk-stat b { font-size: 1.6rem; font-weight: 800; color: var(--tk-navy); font-family: Outfit, sans-serif; }
.tk-stat span { font-size: .82rem; color: var(--tk-muted); }
.tk-bar-cell { width: 34%; }
.tk-bar { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--tk-teal), var(--tk-cyan)); min-width: 2px; }

/* ---------------------------------------------------------------- promovare */
.tk-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tk-promo-card { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin: 0; }
.tk-promo-card i { font-size: 1.8rem; color: var(--tk-accent); }
.tk-promo-card h3 { font-weight: 800; font-size: 1.1rem; margin: 6px 0; }
.tk-promo-card p { font-size: .88rem; color: var(--tk-muted); }
.tk-pay-box { max-width: 520px; }
.tk-price-big { font-size: 2rem; font-weight: 800; font-family: Outfit, sans-serif; }

/* ---------------------------------------------------------------- stări goale */
.tk-empty { text-align: center; padding: 48px 16px; background: var(--tk-card); border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); }
.tk-empty i { font-size: 2.8rem; color: var(--tk-teal); margin-bottom: 12px; }
.tk-empty-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.tk-empty p { color: var(--tk-muted); max-width: 520px; margin: 0 auto; }
.tk-empty .button { margin-top: 16px; }
.tk-empty-small { padding: 24px 10px; box-shadow: none; }
.notification.is-success[style*="fixed"], .notification.is-danger[style*="fixed"] { border-radius: 14px; max-width: min(420px, calc(100vw - 40px)); bottom: 84px !important; }

/* ---------------------------------------------------------------- subsol */
.tk-footer { background: var(--tk-navy); color: #B8C5D9; margin-top: 36px; padding-bottom: 24px; }
.tk-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding: 32px 16px 20px; }
.tk-footer-brand p { font-size: .88rem; margin: 10px 0; color: #9FB0C8; }
.tk-footer-cols h4 { color: #fff; font-weight: 700; margin-bottom: 10px; }
.tk-footer-cols a:not(.tk-logo) { display: block; color: #B8C5D9; font-size: .88rem; padding: 3px 0; }
.tk-footer-cols a:hover { color: var(--tk-accent); }
.tk-install { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; }
.tk-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; color: #8D9CB4; }
.tk-footer-bottom a { color: #FFB066; }
.tk-bottomnav { display: none; }

/* ---------------------------------------------------------------- banner cookie */
.tk-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 860px; margin: 0 auto; background: #fff; color: var(--tk-text); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tk-cookie[hidden] { display: none; }
.tk-cookie-text { flex: 1; min-width: 260px; font-size: .86rem; }
.tk-cookie-text p { margin: 4px 0 8px; color: #334155; }
.tk-cookie-text i { color: var(--tk-accent); }
.tk-cookie-text label { font-size: .84rem; margin-right: 14px; }
.tk-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-cookie-btns .button { font-weight: 700; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .tk-search .tk-search-where { display: none; }
  .tk-action > span:not(.tk-avatar) { display: none; }
  .tk-ad-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  /* minmax(0, 1fr): coloana unică se poate îngusta sub lățimea conținutului (tabele, butoane lungi) — fără ea pagina iese din ecran */
  .tk-search-layout, .tk-ad-layout, .tk-account, .tk-legal, .tk-inbox, .tk-hero { grid-template-columns: minmax(0, 1fr); }
  .tk-search-side, .tk-ad-side, .tk-account-nav, .tk-legal-nav, .tk-inbox-list { position: static; max-height: none; }
  .tk-filters-toggle:not([open]) { padding-bottom: 0; }
  .tk-hero { padding: 24px 20px; }
  .tk-hero-art { display: none; }
  .tk-howto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-account-user { grid-column: 1 / -1; }
  .tk-charts { grid-template-columns: minmax(0, 1fr); }
  .tk-footer-cols { grid-template-columns: 1fr 1fr; }
  .tk-inbox.has-open .tk-inbox-list { display: none; }
  .tk-inbox:not(.has-open) .tk-thread { display: none; }
  .tk-thread-back { display: inline-block; }
}
@media (max-width: 720px) {
  .tk-header-inner { flex-wrap: wrap; gap: 10px; }
  .tk-logo span { font-size: 1.35rem; }
  .tk-logo img { width: 38px; height: 38px; }
  .tk-search { order: 3; flex-basis: 100%; max-width: none; }
  .tk-search-btn span { display: none; }
  .tk-search-btn i { display: inline; }
  .tk-actions .tk-action:not(.tk-dropdown .tk-action) { display: none; }
  .tk-post-btn { display: none; }
  .tk-header { position: sticky; }
  .tk-content { padding: 12px 12px calc(90px + env(safe-area-inset-bottom)); }
  .tk-form-grid, .tk-form-grid-3 { grid-template-columns: 1fr; }
  .tk-grid, .tk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tk-card-body { padding: 8px 10px 10px; }
  .tk-card-price { font-size: 1.05rem; }
  .tk-card-seller { display: none; }
  .tk-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tk-cat-name { overflow-wrap: anywhere; hyphens: auto; }
  .tk-cat { padding: 12px 6px; }
  .tk-cat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .tk-cat small { display: none; }
  .tk-page-title { font-size: 1.4rem; }
  .tk-ad-title { font-size: 1.3rem; }
  .tk-ad-price { font-size: 1.6rem; }
  .tk-myad-img { width: 96px; }
  .tk-social-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-login { padding: 20px 16px; border-radius: 18px; }
  .tk-alt-logins .button { white-space: normal; height: auto; min-height: 2.5em; }
  .tk-share-menu { max-width: calc(100vw - 24px); left: auto; right: 0; }
  .tk-legal-doc { padding: 18px; }
  .tk-msg { max-width: 92%; }
  .tk-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tk-footer-cols { grid-template-columns: 1fr; }
  .tk-cookie { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .notification.is-success[style*="fixed"], .notification.is-danger[style*="fixed"] { left: 12px; right: 12px !important; bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .tk-bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
    border-top: 1px solid var(--tk-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .tk-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tk-muted); font-size: .7rem; position: relative; }
  .tk-bottomnav a i { font-size: 1.2rem; }
  .tk-bottomnav a.is-active { color: var(--tk-accent-d); font-weight: 700; }
  .tk-bottomnav .tk-badge { right: calc(50% - 22px); top: -4px; }
  .tk-bottomnav .tk-nav-post i { background: var(--tk-accent); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-top: -18px; box-shadow: 0 6px 16px rgba(240,138,36,.45); border: 3px solid #fff; }
}

/* selectoarele Bulma din formularele HTML proprii (filtre, ordonare) își iau înălțimea din conținut */
.tk-filters .select, .tk-sort .select { height: auto; }
.tk-filters .select select { width: 100%; }
.tk-filters .select:not(.is-multiple)::after { margin-top: -.45em; }
.tk-filters .select { width: 100%; max-width: 100%; }
/* filtrul se încadrează în lățimea coloanei (fără bară orizontală): padding inclus în lățime, câmpurile se pot îngusta */
.tk-search-side { overflow-x: hidden; }
.tk-filters fieldset { min-width: 0; }
.tk-filters select, .tk-filters input, .tk-filters .input { box-sizing: border-box; max-width: 100%; min-width: 0; }
.tk-range .input { width: 100%; }
.tk-filters .button.is-fullwidth { box-sizing: border-box; width: 100%; max-width: 100%; }

/* aliniere în grilele de formular: toate câmpurile au etichetă deasupra (Ui.field); căsuțele de bifat și butoanele
   puse lângă un câmp se aliniază cu câmpul, nu cu eticheta lui; spațiere identică pe toate coloanele */
.tk-form-grid { align-items: stretch; }
.tk-form-grid > .field { display: flex; flex-direction: column; justify-content: flex-end; }
.tk-form-grid > .field > .label { margin-bottom: .4em; }
.tk-form-grid > .field, .tk-form-grid > .foxy-checkbox, .tk-form-grid > .checkbox { margin-bottom: .75rem !important; }
.tk-form-grid > .foxy-checkbox, .tk-form-grid > label.checkbox, .tk-form-grid > .switch { align-self: end; padding-bottom: .55rem; }
.tk-reply > .field, .tk-admin-search > .field { margin-bottom: 0 !important; }
.tk-form .foxy-checkbox { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; }
.tk-form .foxy-checkbox input { margin-top: 4px; flex-shrink: 0; }
/* butoanele dintr-un formular își păstrează lățimea naturală (grila .tk-form le-ar întinde pe tot rândul) */
.tk-form > .button, .tk-form > button { justify-self: start; }
.tk-form > .button.is-fullwidth, .tk-form > button.is-fullwidth, .tk-login > .button { justify-self: stretch; }
.tk-fido-add .button { justify-self: start; }

/* traducerea anunțului („Tradu în …”) */
.tk-translate { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 4px; }
.tk-translate[hidden] { display: none; }
.tk-translate .button { gap: 6px; color: #3730A3; background: #EEF2FF; border: 1px solid #C7D2FE; }
.tk-translate .button:hover { background: #E0E7FF; }
.tk-translate.is-busy .button { opacity: .7; pointer-events: none; }
.tk-translate-note { font-size: .78rem; color: var(--tk-muted); }
.tk-translate-google { font-size: .82rem; font-weight: 600; }
.tk-translate.is-translated .tk-translate-note { font-style: italic; }

/* selectorul limbii interfeței (antet) */
.tk-lang .tk-action span { font-weight: 800; font-size: .78rem; letter-spacing: .4px; }
.tk-lang-menu { min-width: 190px; max-height: 70vh; overflow-y: auto; }
.tk-lang-menu a { display: block; padding: 7px 12px; border-radius: 8px; color: inherit; }
.tk-lang-menu a:hover { background: #F1F5F9; }
.tk-lang-menu a.is-on { font-weight: 800; color: var(--tk-accent); }
.tk-lang-fixed { margin: 0 0 10px; }

/* plasă de siguranță: niciun element nu mai poate lăți pagina pe telefon (clip nu creează container de derulare, deci antetul lipicios funcționează) */
.tk-app { overflow-x: clip; }
.tk-scroll-x { overflow-x: auto; }
.tk-charts > .tk-panel { overflow-x: auto; min-width: 0; }

/* meniul lateral pliabil pe telefon (cont, administrare): bara cu secțiunea curentă; meniul apare la atingere */
.tk-nav-toggle-wrap { display: none; }
.tk-nav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: #fff; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16,26,51,.08); font: inherit; font-weight: 700; color: var(--tk-navy); text-align: left; cursor: pointer; }
.tk-nav-toggle-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--tk-accent) 14%, white); color: var(--tk-accent-d); }
.tk-nav-toggle-text { min-width: 0; line-height: 1.25; }
.tk-nav-toggle-text small { display: block; font-weight: 500; font-size: .75rem; color: var(--tk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-nav-toggle .tk-badge { position: static; margin-left: auto; }
.tk-nav-toggle-ch { margin-left: auto; color: var(--tk-muted); transition: transform .2s; }
.tk-nav-toggle .tk-badge + .tk-nav-toggle-ch { margin-left: 4px; }
.tk-nav-toggle[aria-expanded="true"] .tk-nav-toggle-ch { transform: rotate(180deg); }
@media (max-width: 900px) {
  .tk-nav-toggle-wrap { display: block; }
  .tk-account-nav:not(.is-open) { display: none; }
}

/* formularul de autentificare înghețat după încercări greșite (numărătoare inversă în troker.js) */
.tk-countdown { display: block; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tk-login.is-frozen .field, .tk-login.is-frozen .foxy-checkbox, .tk-login.is-frozen > .button,
.tk-login.is-frozen .tk-social, .tk-login.is-frozen .tk-alt-logins { opacity: .45; pointer-events: none; filter: grayscale(.6); transition: opacity .2s; }

/* butonul „Instalează aplicația”: [hidden] trebuie respectat (Bulma .button își pune propriul display) */
[data-tk-install][hidden] { display: none !important; }
/* pașii de instalare pe iPhone / iPad (dialogul din troker.js) */
.tk-install-help { width: min(440px, calc(100vw - 32px)); color: var(--tk-text); }
.tk-install-help p { margin: 4px 0 10px; color: var(--tk-muted); }
.tk-install-steps { margin: 0 0 14px 1.2em; display: grid; gap: 10px; }
.tk-install-ic { color: #007AFF; margin: 0 2px; font-size: 1.05em; }

/* aplicația instalată pe iPhone / iPad (bara de stare translucidă, viewport-fit=cover): antetul își face loc sub bara de
   stare și sub decupajul ecranului, altfel căutarea apare sub zona translucidă; în browser env(...) e 0, deci nimic nu se schimbă */
.tk-header { padding-top: env(safe-area-inset-top); }
.tk-header .tk-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
