/* ==========================================================
   Markt24Plus — Reference UI 2026-09-22
   Visual-only layer. No application logic is changed here.
   ========================================================== */
:root{
  --ref-ink:#102041;
  --ref-muted:#61708d;
  --ref-blue:#2468ff;
  --ref-purple:#7457ff;
  --ref-line:#e3e8f2;
  --ref-soft:#f5f8fd;
  --ref-shadow:0 12px 28px rgba(35,54,96,.08);
}
*{box-sizing:border-box}
html{zoom:1!important;font-size:100%!important;background:#fff!important}
body{background:#fff!important;color:var(--ref-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
a{text-decoration:none}

/* ---------- Header: same geometry logged-in and logged-out ---------- */
.market-header{
  position:sticky!important;top:0!important;z-index:1000!important;
  background:rgba(255,255,255,.97)!important;border-bottom:1px solid #edf0f5!important;
  box-shadow:0 1px 0 rgba(16,32,65,.02)!important;backdrop-filter:blur(16px)!important;
}
.header-shell{
  width:min(1320px,calc(100% - 48px))!important;max-width:1320px!important;height:64px!important;
  margin:0 auto!important;padding:0!important;display:grid!important;
  grid-template-columns:190px minmax(480px,1fr) auto!important;align-items:center!important;gap:22px!important;
}
.brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;color:var(--ref-ink)!important}
.brand-logo{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:9px!important;filter:drop-shadow(0 5px 8px rgba(71,79,255,.18))}
.brand-title{display:flex!important;align-items:baseline!important;white-space:nowrap!important;font-size:22px!important;font-weight:900!important;letter-spacing:-.7px!important;line-height:1!important}
.brand-title>span:first-child{color:#233252!important}.brand-title>span:last-child{color:#4f63ff!important}
.header-search{
  height:42px!important;min-height:42px!important;display:grid!important;
  grid-template-columns:34px minmax(150px,1.2fr) minmax(140px,.72fr) 98px 108px!important;
  align-items:center!important;gap:0!important;background:#fff!important;border:1px solid #dfe5ef!important;
  border-radius:12px!important;box-shadow:0 4px 13px rgba(35,54,96,.05)!important;overflow:hidden!important;max-width:none!important;
}
.header-search>span{display:grid!important;place-items:center!important;color:#65728c!important;height:100%!important}
.header-search>span .ico{width:17px!important;height:17px!important}
.header-search input,.header-search select{
  height:100%!important;min-width:0!important;border:0!important;background:transparent!important;outline:0!important;
  font-size:12px!important;color:#2e3b57!important;padding:0 12px!important;border-radius:0!important;box-shadow:none!important;
}
.header-search .location-input{border-left:1px solid #e8ecf3!important}
.header-search .radius-select{border-left:1px solid #e8ecf3!important;padding:0 8px!important;color:#53607a!important}
.header-search .search-icon-submit{
  width:108px!important;min-width:108px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  border:0!important;border-radius:0 11px 11px 0!important;background:#0d2148!important;color:#fff!important;font-size:12px!important;font-weight:850!important;
  box-shadow:none!important;padding:0 15px!important;cursor:pointer!important;
}
.header-search .search-icon-submit:hover{background:#142d5a!important;color:#fff!important}
.header-search .search-icon-submit .ico{width:17px!important;height:17px!important}
.header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;white-space:nowrap!important}
.header-actions .plain-link{font-size:12px!important;font-weight:800!important;color:#1f2d49!important;padding:10px 5px!important}
.header-actions .sell-btn{
  min-height:38px!important;border:0!important;border-radius:12px!important;padding:0 17px!important;
  display:inline-flex!important;align-items:center!important;gap:7px!important;background:linear-gradient(135deg,#5f6dff,#7354ff)!important;
  color:#fff!important;font-size:11px!important;font-weight:850!important;box-shadow:0 7px 16px rgba(94,84,255,.24)!important;
}
.header-actions .sell-btn .ico{width:16px!important}.header-actions .icon-btn{width:38px!important;height:38px!important;border:0!important;background:transparent!important;color:#182849!important;box-shadow:none!important}
.header-actions .icon-btn:hover{background:#f3f6fb!important}.account-chip{height:38px!important;border:0!important;background:#fff!important;box-shadow:none!important;padding:0 4px!important;font-size:11px!important;font-weight:800!important}
.avatar-sm{width:30px!important;height:30px!important;background:#eef0ff!important;color:#5b57e8!important;font-weight:850!important}

/* ---------- Page geometry ---------- */
.page-shell{width:min(1320px,calc(100% - 48px))!important;max-width:1320px!important;margin:0 auto!important;padding:0!important;min-height:calc(100vh - 64px)!important}
body.route-home .page-shell{overflow:visible!important}
body.layout-user-wide .page-shell,body.layout-admin-wide .page-shell{width:calc(100% - 32px)!important;max-width:1680px!important}

/* ---------- Exact homepage hero ---------- */
.reference-hero{
  height:242px!important;min-height:242px!important;margin:0!important;border-radius:0!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:46% 54%!important;background:linear-gradient(90deg,#f7faff 0%,#fbfcff 51%,#f4f7ff 100%)!important;
  position:relative!important;box-shadow:none!important;border:0!important;
}
.reference-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 35% 6%,rgba(102,111,255,.08),transparent 31%),radial-gradient(circle at 68% 70%,rgba(124,93,255,.08),transparent 35%);pointer-events:none}
.reference-hero-copy{position:relative;z-index:2;padding:26px 22px 18px 34px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.reference-hero .eyebrow{font-size:9px!important;letter-spacing:.18em!important;font-weight:900!important;color:#7080a3!important;margin-bottom:8px!important}
.reference-hero h1{font-size:40px!important;line-height:.98!important;letter-spacing:-1.8px!important;margin:0!important;color:#0f1e3d!important;font-weight:900!important;max-width:540px!important}
.reference-hero h1 span{background:linear-gradient(90deg,#4868ff 0%,#7359ff 85%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.reference-hero p{max-width:465px!important;margin:10px 0 15px!important;color:#5e6e8d!important;font-size:14px!important;line-height:1.45!important;font-weight:500!important}
.reference-benefits{display:flex!important;align-items:center!important;gap:28px!important;margin-top:2px!important}
.reference-benefit{display:grid!important;grid-template-columns:34px auto!important;align-items:center!important;gap:9px!important;min-width:0!important}
.reference-benefit-icon{width:34px!important;height:34px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#eaf0ff!important;color:#2468ff!important;font-size:18px!important}
.reference-benefit-icon .ico{width:18px!important;height:18px!important}
.reference-benefit b{display:block!important;font-size:11px!important;color:#162745!important;line-height:1.15!important}.reference-benefit small{display:block!important;margin-top:2px!important;color:#61708d!important;font-size:9px!important;white-space:nowrap!important}
.reference-hero-media{position:relative!important;z-index:1!important;height:100%!important;overflow:hidden!important}
.reference-hero-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}

/* ---------- Home sections ---------- */
.category-section-home,.listing-section{margin-top:14px!important}
.section-head{margin-bottom:10px!important;align-items:flex-end!important}.section-head .eyebrow{font-size:8px!important;letter-spacing:.18em!important;color:#8090ac!important}.section-head h2{font-size:20px!important;line-height:1.1!important;letter-spacing:-.5px!important;color:#11213f!important}.section-head>a{font-size:10px!important;color:#385cff!important;font-weight:850!important}.results-count{font-size:10px!important;color:#7f8aa0!important}

/* first row 5 tiles, second row 6 tiles – matching the reference */
@media (min-width:1180px){
  .category-grid-hover{display:flex!important;flex-wrap:wrap!important;gap:9px!important;overflow:visible!important}
  .category-grid-hover .category-tile-wrap{flex:0 0 calc((100% - 36px)/5)!important;width:calc((100% - 36px)/5)!important}
  .category-grid-hover .category-tile-wrap:nth-child(n+6){flex-basis:calc((100% - 45px)/6)!important;width:calc((100% - 45px)/6)!important}
}
.category-tile{min-height:56px!important;height:56px!important;border-radius:10px!important;padding:8px 10px!important;gap:9px!important;border:1px solid #e1e6ef!important;background:#fff!important;box-shadow:0 4px 12px rgba(38,52,88,.035)!important}
.category-tile:hover{transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(38,52,88,.09)!important;border-color:#d7def0!important}
.category-icon{width:34px!important;height:34px!important;border-radius:10px!important;font-size:18px!important;border:0!important;background:#f3f6ff!important;flex:0 0 34px!important}
.category-tile b{font-size:11px!important;color:#1b2a46!important;line-height:1.1!important}.category-tile small{font-size:8.5px!important;color:#6c7890!important;margin-top:2px!important;max-width:135px!important}.category-tile .arrow{font-size:15px!important;color:#6c7b98!important}.age-pill{font-size:7px!important;padding:2px 4px!important}

.listing-section{margin-top:18px!important}.listing-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:11px!important}
.listing-card{border-radius:10px!important;border:1px solid #e0e6ef!important;box-shadow:0 4px 14px rgba(37,52,90,.045)!important;background:#fff!important}.listing-card:hover{transform:translateY(-2px)!important;box-shadow:0 12px 26px rgba(37,52,90,.10)!important}
.listing-photo{height:128px!important;background:#eef2f8!important}.heart-form{right:7px!important;top:7px!important}.heart-btn{width:29px!important;height:29px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(37,52,90,.12)!important;box-shadow:none!important}.heart-btn .ico{width:15px!important;height:15px!important}
.listing-info{padding:9px 10px 8px!important}.listing-meta-top{font-size:7.5px!important;letter-spacing:.02em!important;color:#8190aa!important}.listing-info h3{font-size:11px!important;line-height:1.25!important;min-height:0!important;margin:5px 0 4px!important;color:#132342!important}.listing-info>strong{font-size:15px!important;line-height:1!important;color:#101f3c!important}.listing-place{font-size:9px!important;margin:5px 0!important;color:#73809a!important}.seller-mini{font-size:8.5px!important;padding-top:6px!important;border-top:0!important;gap:5px!important}.avatar-xs{width:19px!important;height:19px!important;font-size:8px!important}.verified{width:13px!important;height:13px!important;font-size:8px!important}

/* exact light trust strip from the reference */
.trust-strip{margin:18px calc(50% - 50vw) 0!important;padding:12px max(24px,calc((100vw - 1320px)/2))!important;border-radius:0!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;background:#f2f6ff!important;color:#142544!important;border-top:1px solid #e9eef8!important;border-bottom:1px solid #e9eef8!important}
.trust-strip>div{display:grid!important;grid-template-columns:40px 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:10px!important;justify-self:stretch!important;text-align:left!important;padding:0 28px!important;border-right:1px solid #e3e9f4!important}.trust-strip>div:last-child{border-right:0!important}.trust-strip span{grid-row:1/3!important;width:36px!important;height:36px!important;border-radius:50%!important;background:#e5ecff!important;color:#3764ff!important;display:grid!important;place-items:center!important;font-size:18px!important}.trust-strip b{font-size:10px!important;color:#1b2a47!important}.trust-strip small{font-size:8.5px!important;color:#65738e!important}

/* ---------- Global light footer ---------- */
.site-footer{display:block!important;visibility:visible!important;opacity:1!important;background:#fff!important;color:#41506c!important;border-top:1px solid #e7ebf2!important;margin:0!important;padding:14px 0 18px!important;min-height:0!important}
.footer-grid{width:min(1320px,calc(100% - 48px))!important;max-width:1320px!important;margin:0 auto!important;display:grid!important;grid-template-columns:2.1fr 1fr 1fr 1fr 1fr!important;gap:38px!important;padding:0!important}.footer-grid>div{min-width:0!important}.footer-brand{margin:0 0 5px!important}.footer-grid p{font-size:9px!important;color:#697690!important;line-height:1.45!important;max-width:280px!important}.footer-grid h4{margin:0 0 6px!important;font-size:10px!important;color:#182745!important}.footer-grid a{display:block!important;color:#64718b!important;font-size:9px!important;line-height:1.65!important}.footer-grid a:hover{color:#375dff!important}.footer-social{display:flex!important;align-items:flex-start!important;justify-content:flex-end!important;gap:9px!important}.footer-social span{width:24px!important;height:24px!important;border:1px solid #e0e5ee!important;border-radius:50%!important;display:grid!important;place-items:center!important;color:#263b68!important;font-size:10px!important;font-weight:850!important;background:#fff!important}.footer-bottom{width:min(1320px,calc(100% - 48px))!important;max-width:1320px!important;margin:9px auto 0!important;padding:9px 0 0!important;border-top:0!important;display:flex!important;justify-content:space-between!important;color:#8792a7!important;font-size:8px!important}
.home-footer-inline{display:none!important}

/* ---------- Filters / forms / detail pages: same visual language ---------- */
.filter-bar,.form-card,.dash-card,.admin-card,.table-card,.price-card,.profile-card,.listing-detail-card,.chat-panel,.offer-card,.support-card{background:#fff!important;border:1px solid #e2e7f0!important;border-radius:14px!important;box-shadow:0 6px 20px rgba(35,54,96,.05)!important}
.btn-main{background:linear-gradient(135deg,#4868ff,#7359ff)!important;border:0!important;border-radius:10px!important;box-shadow:0 6px 14px rgba(78,92,255,.18)!important}.btn-soft{border-radius:10px!important;border-color:#dfe5ef!important;background:#fff!important;color:#34415b!important}
input,select,textarea{border-color:#dfe5ee!important;border-radius:9px!important;box-shadow:none!important}input:focus,select:focus,textarea:focus{border-color:#8da1ff!important;box-shadow:0 0 0 3px rgba(65,91,255,.09)!important}

/* ---------- Personal dashboard ---------- */
.dashboard-layout{width:100%!important;display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;padding:18px 0 26px!important}.dashboard-sidebar{position:relative!important;width:auto!important;min-width:0!important}.dashboard-sidebar-inner{position:sticky!important;top:82px!important;max-height:calc(100vh - 98px)!important;overflow:auto!important;background:#fff!important;border:1px solid #e2e7f0!important;border-radius:14px!important;padding:10px!important;box-shadow:0 6px 18px rgba(35,54,96,.045)!important}.dashboard-sidebar a{border-radius:9px!important;font-size:11px!important;min-height:38px!important}.dashboard-sidebar a.active{background:#eef2ff!important;color:#315fff!important}.dashboard-main{min-width:0!important;width:100%!important}.page-heading{margin:0 0 14px!important}.page-heading h1{font-size:28px!important;letter-spacing:-.8px!important;color:#132342!important}.page-heading p{color:#65728d!important;font-size:12px!important}.kpi-card{border:1px solid #e2e7f0!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 16px rgba(35,54,96,.04)!important}

/* ---------- Admin ---------- */
.admin-layout{display:grid!important;grid-template-columns:245px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;padding:18px 0 28px!important}.admin-sidebar{position:sticky!important;top:82px!important;max-height:calc(100vh - 98px)!important;overflow:auto!important;border:1px solid #e2e7f0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 18px rgba(35,54,96,.045)!important;padding:12px!important}.admin-sidebar a{border-radius:9px!important;font-size:11px!important}.admin-sidebar a.active{background:#eef2ff!important;color:#315fff!important}.admin-main{min-width:0!important;width:100%!important}.admin-topbar{background:transparent!important;border:0!important;padding:0 0 14px!important}.admin-topbar h1{font-size:28px!important;color:#132342!important}.admin-kpi,.admin-card,.table-card{border-color:#e2e7f0!important}.pro-table{font-size:10px!important}.pro-table th{background:#f7f9fd!important;color:#62708b!important;font-size:8px!important;letter-spacing:.06em!important}.pro-table td{border-color:#edf0f5!important}

/* ---------- Auth ---------- */
.auth-body{background:#f5f8fd!important}.auth-page{min-height:100vh!important;display:grid!important;place-items:center!important;padding:28px!important}.auth-shell{width:min(1050px,100%)!important;min-height:590px!important;display:grid!important;grid-template-columns:1fr .92fr!important;border:1px solid #e1e6ef!important;border-radius:22px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 20px 60px rgba(35,54,96,.10)!important}.auth-panel{padding:42px 48px!important}.auth-copy{position:static!important;margin:58px 0 24px!important}.auth-copy .eyebrow{font-size:9px!important}.auth-copy h1{position:static!important;font-size:34px!important;line-height:1.05!important;letter-spacing:-1px!important;margin:8px 0 12px!important}.auth-copy p{position:static!important;font-size:13px!important;line-height:1.55!important;margin:0!important}.auth-aside{background:linear-gradient(145deg,#eef3ff,#f7f4ff)!important}

/* ---------- Responsive ---------- */
@media(max-width:1180px){
  .header-shell{width:calc(100% - 28px)!important;grid-template-columns:165px minmax(360px,1fr) auto!important;gap:12px!important}.brand-title{font-size:19px!important}.header-search{grid-template-columns:30px minmax(120px,1fr) minmax(110px,.65fr) 78px 88px!important}.header-search .search-icon-submit{width:88px!important;min-width:88px!important}.header-actions .sell-btn{padding:0 12px!important}.hide-tablet{display:none!important}
  .page-shell{width:calc(100% - 28px)!important}.reference-hero{grid-template-columns:50% 50%!important}.reference-hero h1{font-size:35px!important}.reference-benefits{gap:14px!important}.reference-benefit small{display:none!important}.listing-grid{grid-template-columns:repeat(4,1fr)!important}
  .footer-grid,.footer-bottom{width:calc(100% - 28px)!important}.dashboard-layout,.admin-layout{grid-template-columns:210px minmax(0,1fr)!important}
}
@media(max-width:900px){
  .header-shell{height:auto!important;min-height:62px!important;display:flex!important;flex-wrap:wrap!important;padding:8px 0!important}.brand{order:1!important}.header-actions{order:2!important;margin-left:auto!important}.header-search{order:3!important;flex:1 0 100%!important;width:100%!important}.reference-hero{height:auto!important;grid-template-columns:1fr!important}.reference-hero-copy{padding:28px!important}.reference-hero-media{height:225px!important}.reference-benefits{flex-wrap:wrap!important}.category-grid-hover{display:grid!important;grid-template-columns:repeat(3,1fr)!important}.category-grid-hover .category-tile-wrap{width:auto!important;flex:auto!important}.listing-grid{grid-template-columns:repeat(3,1fr)!important}.trust-strip{grid-template-columns:1fr!important}.trust-strip>div{border-right:0!important;border-bottom:1px solid #e3e9f4!important;padding:8px 0!important}.trust-strip>div:last-child{border-bottom:0!important}.footer-grid{grid-template-columns:2fr 1fr 1fr!important}.footer-grid>div:nth-child(4),.footer-grid>div:nth-child(5){margin-top:8px!important}.dashboard-layout,.admin-layout{grid-template-columns:1fr!important}.dashboard-sidebar,.admin-sidebar{position:relative!important;top:auto!important;max-height:none!important}.dashboard-sidebar-inner{position:relative!important;top:auto!important;max-height:none!important;display:flex!important;overflow:auto!important;white-space:nowrap!important}.dashboard-sidebar-inner .sidebar-label,.dashboard-sidebar-inner .sidebar-sep{display:none!important}.dashboard-sidebar a{flex:0 0 auto!important}.admin-sidebar{display:flex!important;gap:5px!important;overflow:auto!important;white-space:nowrap!important}.admin-sidebar .admin-brand,.admin-sidebar .sidebar-label,.admin-sidebar .sidebar-sep{display:none!important}.admin-sidebar a{flex:0 0 auto!important}
}
@media(max-width:700px){
  .header-shell{width:calc(100% - 20px)!important}.header-actions .plain-link{display:none!important}.header-actions .guest-icon-btn{display:none!important}.header-actions .sell-btn{height:36px!important;min-height:36px!important}.header-search{grid-template-columns:30px 1fr 1fr 72px 45px!important}.header-search .search-icon-submit{width:45px!important;min-width:45px!important;padding:0!important}.header-search .search-icon-submit span{display:none!important}.page-shell{width:calc(100% - 20px)!important}.reference-hero-copy{padding:22px 14px!important}.reference-hero h1{font-size:31px!important}.reference-hero p{font-size:13px!important}.reference-hero-media{height:190px!important}.reference-benefits{gap:10px!important}.reference-benefit{grid-template-columns:30px auto!important}.reference-benefit-icon{width:30px!important;height:30px!important}.category-grid-hover{grid-template-columns:repeat(2,1fr)!important}.category-tile{height:60px!important}.listing-grid{grid-template-columns:repeat(2,1fr)!important}.listing-photo{height:120px!important}.footer-grid{grid-template-columns:1fr 1fr!important;gap:20px!important}.footer-grid>div:first-child{grid-column:1/-1!important}.footer-bottom{display:block!important;text-align:center!important}.footer-bottom span{display:block!important;margin-top:3px!important}.auth-shell{grid-template-columns:1fr!important}.auth-aside{display:none!important}.auth-panel{padding:28px!important}.auth-copy{margin:36px 0 22px!important}
}
