:root {
  --brand: #4f46e5;
  --brand-strong: #3730a3;
  --brand-soft: #eef2ff;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #f2f4f7;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --transition: 180ms ease;
  --tint-danger: #fef2f2;
  --tint-warn: #fffbeb;
  --tint-ok: #f0fdf4;
  --tint-info: #eff6ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.berater {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface-2);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.berater.menu-open { overflow: hidden; }
body.berater img { max-width: 100%; height: auto; }
body.berater select, body.berater input, body.berater textarea { max-width: 100%; }
label > select, label > input, label > textarea { min-width: 0; }
body.berater a { color: inherit; text-decoration: none; }
body.berater button, body.berater input, body.berater select, body.berater textarea { font: inherit; }
body.berater button, body.berater select { cursor: pointer; }
body.berater svg { display: block; width: 1.25em; height: 1.25em; fill: currentColor; }
body.berater :focus-visible { outline: 3px solid rgba(79, 70, 229, .28); outline-offset: 2px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only, .title_hide { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 10000; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; color: #fff !important; background: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.button, .btn, .btn-border {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.button:hover, .btn:hover, .btn-border:hover { transform: translateY(-1px); }
.button--primary, .btn { color: #fff !important; background: var(--brand); box-shadow: 0 8px 18px rgba(79, 70, 229, .18); }
.button--primary:hover, .btn:hover { background: var(--brand-strong); box-shadow: 0 10px 24px rgba(79, 70, 229, .26); }
.button--accent { color: #fff !important; background: var(--accent); box-shadow: 0 9px 20px rgba(194, 65, 12, .24); }
.button--accent:hover { background: var(--accent-strong); }
.button--soft, .btn-border { color: var(--ink) !important; border-color: var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.button--soft:hover, .btn-border:hover { color: var(--brand) !important; border-color: #c7d2fe; background: var(--brand-soft); }
.button--block { width: 100%; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand) !important; font-weight: 750; }
.text-link:hover { color: var(--brand-strong) !important; }

.site-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(228, 231, 236, .85); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.topbar { min-height: 34px; color: #d7dcff; background: #202044; }
.topbar__inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__tagline { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.language-switch { display: inline-flex; align-items: center; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.language-switch button { min-width: 35px; height: 26px; padding: 0 7px; color: #d9ddff; border: 0; border-radius: 7px; background: transparent; font-size: 11px; font-weight: 850; }
.language-switch button:hover, .language-switch button.is-active { color: #1f2247; background: var(--surface); }
.header-main { display: flex; min-height: 78px; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.brand__mark { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; color: #fff; border-radius: 13px; background: linear-gradient(145deg, #6d5dfc, #3730a3); box-shadow: 0 10px 24px rgba(79, 70, 229, .25); }
.brand__mark svg { width: 27px; height: 27px; }
.brand__copy { display: grid; line-height: 1; }
.brand__copy b { font-size: 21px; letter-spacing: -.03em; }
.brand__copy small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 10px 12px; border-radius: 10px; color: #475467; font-size: 14px; font-weight: 700; }
.desktop-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button--post svg { width: 18px; height: 18px; }
.mobile-menu-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu__inner { display: grid; gap: 5px; padding-block: 12px 18px; }
.mobile-menu__inner a { padding: 12px; border-radius: 10px; font-weight: 720; }
.mobile-menu__inner a:hover { background: var(--brand-soft); color: var(--brand); }

#login_pane { margin: 0; padding: 0; list-style: none; }
#login_pane > li { position: relative; }
#login_pane .btn-border { min-height: 42px; padding: 8px 13px; }
#login_pane .pm_num { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 6px; color: #fff; border-radius: 20px; background: var(--accent); font-size: 10px; }
.dropdown-form { position: absolute; z-index: 1200; top: calc(100% + 12px); right: 0; display: none; width: min(360px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.dropdown.open .dropdown-form, .dropdown:hover .dropdown-form, .dropdown-form:focus-within { display: block; }
.login_form, .login_pane__menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.login_form li { position: relative; }
.login_form label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.login_form input { width: 100%; height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.login_input-btn button { width: 100%; margin-top: 10px; }
.login_form__foot, .login_pane__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.login_pane__info { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.login_pane__info .avatar .cover { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background-position: center; background-size: cover; font-size: 0; }
.login_pane__menu a { display: flex; padding: 9px 10px; justify-content: space-between; border-radius: 9px; background: var(--surface-2); }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 12% 10%, rgba(165, 180, 252, .45), transparent 31%), radial-gradient(circle at 88% 20%, rgba(249, 115, 22, .3), transparent 28%), linear-gradient(135deg, #302d76 0%, #4f46e5 54%, #6158de 100%); }
.hero::before, .hero::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.hero::before { width: 480px; height: 480px; right: -160px; bottom: -300px; }
.hero::after { width: 260px; height: 260px; left: -130px; top: -100px; }
.hero__inner { position: relative; z-index: 1; display: grid; min-height: 430px; align-content: center; padding-block: 68px 58px; }
.hero__copy { max-width: 820px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #f8bd8e; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.055em; }
.hero__copy > p { max-width: 750px; margin: 20px 0 0; color: #e8e9ff; font-size: clamp(16px, 2vw, 20px); }
.hero-search { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(170px, .8fr) minmax(170px, .8fr) auto; gap: 8px; margin-top: 34px; padding: 8px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 54px rgba(18, 20, 61, .25); }
.search-field { display: flex; min-width: 0; align-items: center; gap: 10px; padding-inline: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.search-field svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); }
.search-field input, .search-field select { width: 100%; min-width: 0; height: 48px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; }
.hero-search .button { min-width: 132px; border-radius: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 17px; color: #e8e9ff; font-size: 12px; font-weight: 700; }

.section { padding-block: 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h2, .market-toolbar h2, .trust-card h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.categories-section { background: var(--surface); }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card { display: grid; min-height: 114px; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.category-card:hover { transform: translateY(-3px); border-color: #c7d2fe; box-shadow: var(--shadow-md); }
.category-card__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; }
.category-card__icon svg { width: 25px; height: 25px; }
.category-card span:nth-child(2) { display: grid; min-width: 0; }
.category-card b { overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; }
.category-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.category-card i { color: var(--muted-2); font-style: normal; font-weight: 900; }
.category-card--violet .category-card__icon { color: #6d28d9; background: #f3e8ff; }
.category-card--blue .category-card__icon { color: #2563eb; background: #dbeafe; }
.category-card--emerald .category-card__icon { color: #047857; background: #d1fae5; }
.category-card--orange .category-card__icon { color: #c2410c; background: #ffedd5; }
.category-card--pink .category-card__icon { color: #be185d; background: #fce7f3; }
.category-card--teal .category-card__icon { color: #0f766e; background: #ccfbf1; }
.category-card--indigo .category-card__icon { color: #4338ca; background: #e0e7ff; }
.category-card--amber .category-card__icon { color: #b45309; background: #fef3c7; }

.main-content { min-height: 460px; padding-block: 54px 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.045em; }
.page-heading p { max-width: 760px; color: var(--muted); }
.market-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.market-toolbar h2 { font-size: clamp(26px, 3vw, 36px); }
.market-toolbar p { margin: 7px 0 0; color: var(--muted); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.toolbar-actions svg { width: 18px; height: 18px; }
.filter-toggle { display: none; }
.sort-select select { min-height: 44px; padding: 9px 34px 9px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.market-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start; gap: 24px; }
.market-filters { position: sticky; top: 132px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.filter-head h3 { margin: 0; font-size: 18px; }
.filter-head button { padding: 0; color: var(--brand); border: 0; background: transparent; font-size: 12px; font-weight: 800; }
.market-filters form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.market-filters label { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.market-filters label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.market-filters label > * { min-width: 0; max-width: 100%; }
.market-filters input, .market-filters select { width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
.market-filters input:focus, .market-filters select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); outline: 0; }
.filter-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.filter-range > * { min-width: 0; }
.listing-area { min-width: 0; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.ad-card { position: relative; display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.ad-card:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: var(--shadow-md); }
.ad-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #eef2ff, #f2f4f7); }@supports not (aspect-ratio: 4 / 3){
  .ad-card__media { height: 0; padding-top: 75%; }
  .ad-card__media img, .ad-card__media .xfimagethumb { position: absolute; inset: 0; }
}
.ad-card__media img, .ad-card__media .xfimagethumb { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.ad-card:hover .ad-card__media img { transform: scale(1.035); }
.ad-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted-2); }
.ad-card__placeholder svg { width: 44px; height: 44px; }
.ad-card__badge a { color: inherit; text-decoration: none; }
.ad-card__badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 9px; color: #fff; border-radius: 8px; background: rgba(23, 32, 51, .84); backdrop-filter: blur(8px); font-size: 10px; font-weight: 850; letter-spacing: .03em; }
.ad-card__favorite { position: absolute; z-index: 3; top: 11px; right: 11px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); }
.ad-card__favorite span { display: grid; place-items: center; }
.ad-card__favorite svg { width: 20px; height: 20px; }
.ad-card__favorite:hover { color: var(--danger); }
.ad-card__body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.ad-card__category { margin-bottom: 7px; color: var(--brand); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ad-card__title { display: -webkit-box; min-height: 44px; margin: 0; overflow: hidden; font-size: 16px; line-height: 1.35; letter-spacing: -.015em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ad-card__title a:hover { color: var(--brand); }
.ad-card__price { margin-top: 10px; color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.ad-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.ad-card__location { display: inline-flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad-card__location svg { flex: 0 0 auto; width: 14px; height: 14px; }
.ad-card__date { white-space: nowrap; }
.ad-card__summary { display: none; }
.ad-card__admin { position: absolute; z-index: 4; right: 12px; bottom: 12px; }
.ad-card__admin a { display: inline-flex; padding: 5px 8px; color: #fff; border-radius: 7px; background: var(--ink); font-size: 11px; }

.content-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.content-card--page { padding: clamp(20px, 4vw, 42px); }
.content-card--page .box, .content-card--page .box_in { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.info, .berrors, .information { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #fed7aa; border-radius: 12px; color: #9a3412; background: #fff7ed; }
.navigation { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.navigation a, .navigation span { display: inline-grid; min-width: 40px; height: 40px; place-items: center; margin: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.navigation span { color: #fff; border-color: var(--brand); background: var(--brand); }

.trust-section { padding-top: 0; }
.trust-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 28px; color: #dfe2ff; border-radius: var(--radius-lg); background: linear-gradient(135deg, #202044, #302d76); box-shadow: var(--shadow-lg); }
.trust-card__icon { display: grid; width: 58px; height: 58px; place-items: center; color: #fff; border-radius: 18px; background: rgba(255, 255, 255, .12); }
.trust-card__icon svg { width: 32px; height: 32px; }
.trust-card h2 { color: #fff; font-size: 23px; }
.trust-card p { margin: 7px 0 0; font-size: 14px; }

.site-footer { color: #d0d5dd; background: #111827; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 46px; padding-block: 58px 42px; }
.brand--footer { color: #fff !important; }
.brand--footer .brand__copy small { color: var(--muted-2); }
.footer-brand > p { max-width: 330px; margin: 18px 0 0; color: var(--muted-2); font-size: 14px; }
.footer-grid h3 { margin: 5px 0 16px; color: #fff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-link-button { width: fit-content; padding: 0; color: var(--muted-2); border: 0; background: transparent; font-size: 13px; text-align: left; }
.footer-grid a:hover, .footer-link-button:hover { color: #fff; }
.footer-bottom { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #344054; color: var(--muted-2); font-size: 12px; }
.language-switch--footer { background: #202938; }
.mobile-bottom-nav { display: none; }
.cookie-banner { position: fixed; z-index: 3000; right: 20px; bottom: 20px; display: flex; width: min(590px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.cookie-banner[hidden] { display: none; }
.cookie-banner b { display: block; margin-bottom: 4px; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: 12px; }
.cookie-banner > div:last-child { display: flex; flex: 0 0 auto; gap: 8px; }

/* Страница объявления */
.ad-detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 24px; }
.ad-detail__main { min-width: 0; }
.ad-detail__header { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.ad-detail__gallery, .ad-detail__content, .seller-card, .safety-card, .related-section { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.ad-detail__gallery { overflow: hidden; }
.ad-gallery__stage { display: flex; min-height: 460px; align-items: center; justify-content: center; overflow: hidden; background: #eef0f5; }
.ad-gallery__stage img { width: auto; height: auto; max-width: 100%; max-height: 640px; object-fit: contain; }
.ad-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px; }
.ad-gallery__thumbs img { width: 82px; height: 64px; object-fit: cover; border: 2px solid transparent; border-radius: 9px; }
.ad-gallery__thumbs img:hover, .ad-gallery__thumbs img.is-active { border-color: var(--brand); }
.ad-detail__content { margin-top: 18px; padding: clamp(20px, 4vw, 34px); }
.ad-detail__breadcrumb { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.ad-detail__title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.04em; }
.ad-detail__price { margin-top: 16px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.04em; }
.ad-detail__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.ad-detail__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ad-detail__meta svg { width: 15px; height: 15px; }
.ad-detail__section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.ad-detail__section h2 { margin: 0 0 16px; font-size: 21px; }
.ad-detail__description { color: var(--ink); line-height: 1.75; overflow-wrap: anywhere; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.spec-item { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1fr); gap: 10px; padding: 13px 14px; background: var(--surface); }
.spec-item dt { color: var(--muted); font-size: 12px; }
.spec-item dd { margin: 0; font-size: 13px; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.ad-detail__sidebar { position: sticky; top: 132px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.seller-card { padding: 22px; }
.seller-card__head { display: flex; align-items: center; gap: 13px; }
.seller-card__avatar { display: grid; width: 54px; height: 54px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.seller-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-card__head b { display: block; font-size: 16px; }
.seller-card__head small { color: var(--muted); }
.seller-card__actions { display: grid; gap: 9px; margin-top: 18px; }
.seller-card__actions .button { width: 100%; }
.safety-card { padding: 18px; color: #92400e; border-color: #fed7aa; background: #fff7ed; }
.safety-card h3 { margin: 0; font-size: 15px; }
.safety-card p { margin: 8px 0 0; font-size: 12px; }
.ad-detail__tools { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ad-detail__tools a, .ad-detail__tools span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.comments { margin-top: 24px; }
.comments .box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment .text { overflow-wrap: anywhere; }

/* Подача объявления */
.add-ad-shell { max-width: 940px; margin-inline: auto; }
.add-ad-head { margin-bottom: 24px; text-align: center; }
.add-ad-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; }
.add-ad-head p { margin: 8px 0 0; color: var(--muted); }
.add-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 24px; }
.add-progress__item { position: relative; display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.add-progress__item::before { position: absolute; z-index: 0; top: 17px; right: 50%; left: -50%; height: 2px; content: ""; background: var(--line); }
.add-progress__item:first-child::before { display: none; }
.add-progress__num { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.add-progress__item.is-active, .add-progress__item.is-done { color: var(--brand); }
.add-progress__item.is-active .add-progress__num, .add-progress__item.is-done .add-progress__num { color: #fff; border-color: var(--brand); background: var(--brand); }
.add-progress__item.is-done::before, .add-progress__item.is-active::before { background: var(--brand); }
.add-ad-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form-section { padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-section__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.form-section__icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--brand); border-radius: 12px; background: var(--brand-soft); }
.form-section__icon svg { width: 22px; height: 22px; }
.form-section h2 { margin: 0; font-size: 20px; }
.form-section__head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field, .form-group, .xfield-row { min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field > label, .form-group > label, .xfield-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 780; }
.form-field input, .form-field select, .form-field textarea, .add-ad-form .wide, .add-ad-form input[type="text"], .add-ad-form input[type="url"], .add-ad-form input[type="number"], .add-ad-form input[type="tel"], .add-ad-form select, .add-ad-form textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition);
}
.add-ad-form textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .add-ad-form input:focus, .add-ad-form select:focus, .add-ad-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); outline: 0; }
.form-hint, .xfieldsnote { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.form-required { color: var(--danger); }
.xfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.xfields > div, .xfields > li, .xfields > tr { min-width: 0; }
.xfields .xfield-row[data-wide="true"], .xfields .xfield-gallery { grid-column: 1 / -1; }
.xfield-gallery, .xfieldimagegallery { min-height: 170px; padding: 18px; border: 2px dashed #c7d2fe; border-radius: 13px; background: var(--brand-soft); }
.add-form-actions { position: sticky; z-index: 20; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-lg); backdrop-filter: blur(15px); }
.add-form-actions .button, .add-form-actions button { min-width: 160px; }
.editor-panel, .bb-editor, .wysibb { border-radius: 11px !important; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; }
.form-consent input { flex: 0 0 auto; margin-top: 3px; }

/* Кабинет и системные формы */
.ui-form, .addform .ui-form { margin: 0; padding: 0; list-style: none; }
.ui-form > li { margin-bottom: 16px; }
.ui-form input, .ui-form select, .ui-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.form_submit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.form_submit button { min-height: 46px; }
.avatar { overflow: hidden; border-radius: 50%; }
.userinfo, .profile, .pm-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }@media (max-width: 1100px){
  .desktop-nav { display: none; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-search .button { min-height: 52px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
}@media (max-width: 860px){
  .topbar__tagline { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-main { min-height: 68px; }
  .header-actions #login_pane { display: none; }
  .button--post { padding-inline: 13px; }
  .mobile-menu-toggle { display: inline-grid; }
  .hero__inner { min-height: auto; padding-block: 52px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-toolbar { align-items: center; }
  .filter-toggle { display: inline-flex; }
  .market-layout { grid-template-columns: 1fr; }
  .market-filters { position: fixed; z-index: 2000; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); overflow-y: auto; transform: translateX(110%); border: 0; border-radius: 0; box-shadow: var(--shadow-lg); transition: transform 230ms ease; }
  .market-filters.is-open { transform: translateX(0); }
  .ad-detail { grid-template-columns: 1fr; }
  .ad-detail__sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .ad-gallery__stage { min-height: 390px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; }
}

/* Mobile: title/price/city and contact CTA before gallery */
@media (max-width: 900px) {
  .ad-detail { display: flex; flex-direction: column; }
  .ad-detail__main { display: flex; flex-direction: column; }
  .ad-detail__header { order: 1; }
  .ad-detail__sidebar { order: 2; }
  .ad-detail__gallery { order: 3; }
  .ad-detail__video { order: 4; }
  .ad-detail__content { order: 5; margin-top: 18px; }
  .ad-detail__sidebar .seller-rating,
  .ad-detail__sidebar .share-card { display: none; }
}@media (max-width: 680px){
  body.berater { padding-bottom: 72px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar__tagline { font-size: 10px; }
  .language-switch button { min-width: 31px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__copy b { font-size: 19px; }
  .header-main { gap: 10px; }
  .button--post { width: 44px; height: 44px; padding: 0; overflow: hidden; font-size: 0; }
  .button--post svg { width: 22px; height: 22px; }
  .hero h1 { font-size: clamp(36px, 11vw, 49px); }
  .hero__copy > p { font-size: 15px; }
  .hero-search { grid-template-columns: 1fr; margin-top: 25px; }
  .search-field { min-height: 54px; }
  .hero__trust { gap: 10px; }
  .section { padding-block: 45px; }
  .section-heading { align-items: center; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 88px; }
  .main-content { padding-block: 36px 50px; }
  .market-toolbar { align-items: flex-start; }
  .market-toolbar p { display: none; }
  .toolbar-actions .sort-select { display: none; }
  .listing-grid { grid-template-columns: 1fr; }
  .ad-card { display: grid; min-height: 132px; grid-template-columns: 132px minmax(0, 1fr); }
  .ad-card__media { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .ad-card__body { padding: 13px; }
  .ad-card__title { min-height: auto; font-size: 14px; }
  .ad-card__price { margin-top: 7px; font-size: 18px; }
  .ad-card__category { display: none; }
  .ad-card__meta { padding-top: 9px; }
  .ad-card__date { display: none; }
  .ad-card__badge { top: 8px; left: 8px; }
  .ad-card__favorite { top: 7px; right: auto; left: 88px; width: 34px; height: 34px; }
  .trust-card { grid-template-columns: auto 1fr; padding: 22px; }
  .trust-card .button { grid-column: 1 / -1; width: 100%; }
  .trust-card h2 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-block: 42px 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { padding-block: 18px; }
  .mobile-bottom-nav { position: fixed; z-index: 1800; right: 0; bottom: 0; left: 0; display: grid; min-height: 67px; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 24px rgba(16, 24, 40, .08); backdrop-filter: blur(16px); }
  body.berater { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav a { display: grid; justify-items: center; align-content: end; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 600; text-decoration: none; min-width: 0; }
  .mobile-bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav svg { width: 21px; height: 21px; }
  .mobile-bottom-nav__post { align-self: end; }
  .mobile-bottom-nav__post svg { width: 44px; height: 44px; margin-top: -26px; padding: 11px; color: #fff; border-radius: 15px; background: var(--brand); box-shadow: 0 10px 25px rgba(79, 70, 229, .32); }
  .cookie-banner { right: 12px; bottom: 82px; width: calc(100% - 24px); align-items: stretch; flex-direction: column; }
  .cookie-banner > div:last-child { display: grid; grid-template-columns: 1fr auto; }
  .ad-detail__sidebar { grid-template-columns: 1fr; }
  .ad-gallery__stage { min-height: 280px; }
  .ad-detail__content { padding: 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .form-grid, .xfields { grid-template-columns: 1fr; }
  .form-field--full, .xfields .xfield-row[data-wide="true"], .xfields .xfield-gallery { grid-column: auto; }
  .add-progress__item span:last-child { display: none; }
  .add-form-actions { bottom: 80px; }
  .add-form-actions .button, .add-form-actions button { min-width: 0; flex: 1; }
}@media (max-width: 430px){
  .topbar__tagline { max-width: 190px; }
  .brand__copy small { display: none; }
  .section-heading .text-link { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .filter-range { grid-template-columns: 1fr; }
}@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Интеграционные стили для реальной разметки DLE */
.account-trigger { gap: 8px; }
.account-trigger__avatar { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background-color: var(--brand-soft); background-position: center; background-size: cover; }
.login-form-title { display: grid; margin-bottom: 16px; }
.login-form-title b { font-size: 20px; }
.login-form-title small, .login_pane__info small { display: block; color: var(--muted); font-size: 11px; }
.login_pane__admin { margin-left: auto; }
.login_pane__admin a { padding: 5px 7px; color: var(--brand); border-radius: 7px; background: var(--brand-soft); font-size: 10px; font-weight: 800; }
.xfieldsrow { display: grid; min-width: 0; grid-template-columns: 1fr; align-content: start; }
.xfieldsrow .xfieldscolleft { margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 780; }
.xfieldsrow .xfieldscolright { min-width: 0; }
.xfieldsrow .xfieldscolright > input[type="text"], .xfieldsrow .xfieldscolright > select, .xfieldsrow .xfieldscolright > textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface); }
.xfieldsrow .form-check-label { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.xfieldsrow .form-check-input { width: 18px; height: 18px; flex: 0 0 auto; }
.xfieldsrow .xfieldsnote { margin-top: 6px; color: var(--muted); font-size: 11px; }
.xfield-gallery .xfieldscolright { min-height: 170px; padding: 18px; border: 2px dashed #c7d2fe; border-radius: 13px; background: var(--brand-soft); }
.xfield-gallery .qq-upload-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 14px; color: #fff; border-radius: 10px; background: var(--brand); }
.ad-gallery__thumbs button { flex: 0 0 auto; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: transparent; }
.ad-gallery__thumbs button.is-active { border-color: var(--brand); }
.ad-gallery__thumbs button img { display: block; width: 82px; height: 64px; object-fit: cover; }
.ad-card__badge--second { top: 45px; }
.advanced-fields { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.advanced-fields summary { padding: 13px 15px; font-size: 13px; font-weight: 780; }
.advanced-fields > div { padding: 0 15px 15px; }
.cookie-dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; }
.cookie-dialog::backdrop { background: rgba(17, 24, 39, .62); backdrop-filter: blur(3px); }
.cookie-dialog__card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.cookie-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.cookie-dialog__head b { font-size: 22px; }
.cookie-dialog__head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-option span { display: grid; }
.cookie-option small { margin-top: 3px; color: var(--muted); }
.cookie-option input { width: 20px; height: 20px; }
.cookie-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }@media (max-width: 860px){
  body.filters-open::after { position: fixed; z-index: 1900; inset: 0; content: ""; background: rgba(17, 24, 39, .46); }
}@media (max-width: 680px){
  .cookie-dialog__card { padding: 18px; }
  .cookie-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-dialog__actions .button { width: 100%; }
}

/* Личный кабинет */
.account-page { display: grid; gap: 20px; }
.account-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff 0%, #f4f3ff 100%); box-shadow: var(--shadow-sm); }
.account-avatar { width: 82px; height: 82px; overflow: hidden; border: 4px solid #fff; border-radius: 24px; background: var(--brand-soft); box-shadow: var(--shadow-md); }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-identity h1 { margin: 0; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.04em; }
.account-identity p { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-dot--online { background: var(--success); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
.account-actions { display: flex; align-items: center; gap: 9px; }
.account-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.account-tabs a { flex: 0 0 auto; padding: 10px 14px; color: var(--muted); border-radius: 9px; font-size: 13px; font-weight: 750; }
.account-tabs a:hover, .account-tabs a.is-active { color: var(--brand); background: var(--brand-soft); }
.account-panel { display: grid; gap: 18px; }
.account-panel[hidden] { display: none; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.account-stats > div { display: grid; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.account-stats strong { font-size: 30px; letter-spacing: -.04em; }
.account-stats span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.account-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.account-card h2 { margin: 0 0 17px; font-size: 20px; }
.account-card dl { display: grid; gap: 12px; margin: 0; }
.account-card dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-card dt { color: var(--muted); font-size: 12px; }
.account-card dd { margin: 0; font-size: 13px; font-weight: 720; text-align: right; }
.account-about { color: var(--ink); line-height: 1.7; }
.account-signature { margin-top: 18px; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.account-settings { display: grid; gap: 18px; }
.muted { color: var(--muted); }@media (max-width: 760px){
  .account-hero { grid-template-columns: auto 1fr; }
  .account-actions { grid-column: 1 / -1; }
  .account-actions .button { flex: 1; }
  .account-grid { grid-template-columns: 1fr; }
}@media (max-width: 520px){
  .account-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .account-identity p { justify-content: center; }
  .account-avatar { width: 74px; height: 74px; }
  .account-stats { grid-template-columns: 1fr; }
}

/* Стандартная сортировка DLE */
.sort-select form { margin: 0; }
ul.sort { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); list-style: none; }
ul.sort li { margin: 0; }
ul.sort a { display: block; padding: 7px 9px; color: var(--muted); border-radius: 8px; font-size: 10px; font-weight: 760; white-space: nowrap; }
ul.sort a:hover, ul.sort li.asc a, ul.sort li.desc a { color: var(--brand); background: var(--brand-soft); }@media (max-width: 860px){
  .sort-select { display: none; }
}

/* Phase 7: listing facets, live filters and privacy-aware map */
.listing-facet[hidden] { display: none !important; }
.filter-status { min-height: 1.4em; margin: 10px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.map-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.map-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.map-card__head small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.map-card__head h3 { margin: 0; font-size: 1.05rem; }
.map-card__head > svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; fill: var(--brand); background: var(--brand-soft); }
.map-card__privacy { margin: 0 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.map-card__actions { display: grid; gap: 10px; }
.map-card__actions .text-link { justify-self: center; font-size: .82rem; }
.map-card__canvas { overflow: hidden; min-height: 260px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface-2); }
.map-card__canvas iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-card__canvas[hidden] { display: none; }@media (max-width: 720px){
  .map-card { padding: 16px; }
  .map-card__canvas, .map-card__canvas iframe { min-height: 240px; height: 240px; }
}

body.berater [hidden] { display: none !important; }

.account-tabs > .account-news-link { display: contents; }
.account-tabs > .account-news-link > a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; color: var(--muted); border-radius: 10px; font-weight: 750; }
.account-tabs > .account-news-link > a:hover { color: var(--brand); background: var(--brand-soft); }

.account-settings, .account-settings .form-grid, .account-settings .form-field { min-width: 0; }
.account-settings select, .account-settings .timezoneselect { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.account-settings { overflow: hidden; }

/* Legal and trust pages */
.legal-page { width: min(100% - 32px, 980px); margin: 32px auto 64px; }
.legal-page > article { display: grid; gap: 18px; }
.legal-page > article > section, .legal-hero, .legal-callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.legal-hero { background: linear-gradient(135deg, #eef2ff 0%, #ffffff 58%, #ecfeff 100%); }
.legal-hero h1 { margin: 8px 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.legal-page h2 { margin: 0 0 10px; font-size: clamp(20px, 3vw, 26px); line-height: 1.25; }
.legal-page p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.legal-page p + p { margin-top: 12px; }
.legal-page strong { color: var(--text); }
.legal-page a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }@media (max-width: 640px){
  .legal-page { width: min(100% - 20px, 980px); margin-top: 18px; }
  .legal-page > article > section, .legal-hero, .legal-callout { padding: 20px; border-radius: 18px; }
}

/* Empty marketplace categories */
.listing-empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 260px;
  padding: clamp(32px, 6vw, 64px) 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), var(--brand-soft));
}
.listing-empty-state h3 { margin: 0; color: var(--ink); font-size: clamp(1.25rem, 3vw, 1.6rem); }
.listing-empty-state p { max-width: 520px; margin: 0 0 8px; color: var(--muted); line-height: 1.65; }

/* Compact cookie banner on small screens */
@media (max-width: 640px) {
  .cookie-banner { right: 8px; left: 8px; bottom: 70px; width: auto; padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .cookie-banner p { font-size: 11px; }
  .cookie-banner > div:last-child { gap: 6px; }
  .cookie-banner .btn, .cookie-banner button { padding: 6px 10px; font-size: 12px; }
}

/* ===== Responsive layer: tablets & phones ===== */

/* Never allow horizontal page overflow */
html, body { overflow-x: clip; }
img, video { max-width: 100%; height: auto; }
.dle-content iframe, .shortstory iframe, .fullstory iframe, .box iframe { max-width: 100%; }

/* Footer: brand + 4 link columns */
@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 30px; }
}@media (max-width: 1024px) and (min-width: 681px){
  .footer-grid { grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:last-child { grid-column: auto; }
}@media (max-width: 680px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 36px 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
}@media (max-width: 460px){
  .footer-grid { grid-template-columns: 1fr; }
}

/* iOS: inputs < 16px trigger page zoom on focus */
@media (max-width: 680px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Wide tables scroll sideways instead of breaking layout */
@media (max-width: 860px) {
  .container table, .page_form table, .box table, .shortstory table, .fullstory table {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .container table > *, .page_form table > *, .box table > *, .shortstory table > *, .fullstory table > * { display: revert; }
}

/* Comfortable tap targets on touch devices */
@media (pointer: coarse) {
  .mobile-bottom-nav a { min-height: 48px; }
  .desktop-nav a, .mobile-menu a { min-height: 44px; display: flex; align-items: center; }
}

/* Search page (search.tpl) — modern card layout */
.hb-search__simple { display: grid; gap: 14px; }
.hb-search__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-search__block { min-width: 0; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hb-search__block legend { padding: 0 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.hb-search__block--wide { grid-column: 1 / -1; }
.hb-search__field input[type="text"], .hb-search__field input:not([type]) { width: 100%; min-width: 0; }
.hb-search__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink); font-size: 14px; }
.hb-search__row select { max-width: 100%; }
.hb-search__cats { display: grid; max-height: 300px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; margin-top: 4px; overflow-y: auto; font-size: 14px; }
.hb-search__cats label, .hb-search__cats div { min-width: 0; overflow-wrap: anywhere; }
.hb-search__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hb-search__actions .button, .hb-search__actions input[type="button"], .hb-search__actions input[type="reset"] { min-height: 44px; }
.searchtable fieldset { min-width: 0; }@media (max-width: 680px){
  .hb-search__grid { grid-template-columns: 1fr; }
  .hb-search__cats { grid-template-columns: 1fr 1fr; max-height: 240px; }
  .hb-search__actions > * { flex: 1; }
}

/* Stats page (stats.tpl) */
.hb-stats__period { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.hb-stats__chip { display: grid; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hb-stats__chip b { color: var(--brand); font-size: 13px; }
.hb-stats__chip span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.hb-stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hb-stats__card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hb-stats__card h5 { margin: 0 0 10px; color: var(--ink); font-size: 14px; }
.hb-stats__card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb-stats__card li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13.5px; }
.hb-stats__card li b { color: var(--ink); }
.table_top_users { overflow-x: auto; }
.table_top_users table { min-width: 480px; }@media (max-width: 680px){
  .hb-stats__period, .hb-stats__grid { grid-template-columns: 1fr; }
}


/* ===== Dark theme ===== */
[data-theme="dark"] {
  --brand: #818cf8;
  --brand-strong: #a5b4fc;
  --brand-soft: #1e1b4b;
  --accent: #fb923c;
  --accent-strong: #fdba74;
  --ink: #e8eaf2;
  --muted: #a3abc0;
  --muted-2: #7d86a0;
  --line: #2a3040;
  --line-strong: #3a4154;
  --surface: #161b28;
  --surface-2: #0f1420;
  --surface-3: #1d2434;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --tint-danger: #3a1518;
  --tint-warn: #33260c;
  --tint-ok: #0f2a1d;
  --tint-info: #16233f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
  color-scheme: dark;
}
[data-theme="dark"] body.berater { background: var(--surface-2); color: var(--ink); }
[data-theme="dark"] .hero, [data-theme="dark"] .brand__mark { filter: none; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--surface-3); color: var(--ink); border-color: var(--line-strong);
}
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: var(--muted-2); }
[data-theme="dark"] .mobile-bottom-nav { background: rgba(15, 20, 32, .96); border-top-color: var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .4); }
[data-theme="dark"] .mobile-bottom-nav a { color: var(--muted); }
[data-theme="dark"] .mobile-bottom-nav a:active, [data-theme="dark"] .mobile-bottom-nav a:hover { color: var(--ink); }
[data-theme="dark"] .button--primary, [data-theme="dark"] .btn.primary { color: #0f1420; }
[data-theme="dark"] #login_pane .guest-auth-actions { background: var(--surface); border-color: var(--line-strong); }
[data-theme="dark"] code { background: var(--surface-3); }

/* ===== Theme toggle ===== */
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle .moon { display:none; }
[data-theme="dark"] .theme-toggle .sun { display:none; }
[data-theme="dark"] .theme-toggle .moon { display:block; }

/* ===== Notification bell ===== */
.hb-bell { position:relative; display:none; width:40px; height:40px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); }
.hb-bell.on { display:inline-flex; }
.hb-bell__count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:var(--danger); color:#fff; font-size:.68rem; font-weight:700; display:none; align-items:center; justify-content:center; line-height:1; }
.hb-bell__count.on { display:flex; }
.hb-bell-panel { position:absolute; top:calc(100% + 8px); right:0; width:min(340px, calc(100vw - 32px)); background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); z-index:600; overflow:hidden; }
.hb-bell-panel[hidden] { display:none; }
.hb-bell-panel h4 { margin:0; padding:12px 16px; font-size:.88rem; border-bottom:1px solid var(--line); }
.hb-bell-panel .hb-note { display:block; padding:10px 16px; font-size:.83rem; color:var(--ink); border-bottom:1px solid var(--line); }
.hb-bell-panel .hb-note:hover { background:var(--surface-3); }
.hb-bell-panel .hb-note small { display:block; color:var(--muted); margin-top:2px; }
.hb-bell-panel .hb-note.unread { background:var(--brand-soft); }
.hb-bell-panel .hb-bell-empty { padding:16px; text-align:center; color:var(--muted); font-size:.83rem; }
.hb-bell-wrap { position:relative; }

/* ===== Quick filter chips ===== */
.chip-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.chip-row .chip { display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-size:.82rem; color:var(--ink); transition:var(--transition); }
.chip-row .chip:hover { border-color:var(--brand); color:var(--brand); }

/* ===== Seller badges ===== */
.seller-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.seller-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px; font-size:.75rem; background:var(--surface-3); color:var(--muted); border:1px solid var(--line); }
.seller-badge.gold { background:#fef3c7; color:#92400e; border-color:#fde68a; }
[data-theme="dark"] .seller-badge.gold { background:#3a2f0d; color:#fcd34d; border-color:#57501a; }

/* ===== Similar searches ===== */
.similar-searches { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.similar-searches a { font-size:.8rem; color:var(--muted); border:1px dashed var(--line-strong); border-radius:999px; padding:5px 12px; }
.similar-searches a:hover { color:var(--brand); border-color:var(--brand); }

/* ===== Seasonal snow ===== */
.hb-snow { position:fixed; top:-10px; z-index:9999; pointer-events:none; color:#fff; text-shadow:0 0 4px rgba(120,140,255,.6); animation:hbSnowFall linear infinite; }
[data-theme="dark"] .hb-snow { color:#c7d2fe; }@keyframes hbSnowFall{ to { transform:translateY(105vh) rotate(360deg); } }

/* ===== Draft notice ===== */
.hb-draft-note { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); background:var(--surface); border:1px solid var(--line-strong); border-radius:12px; padding:10px 18px; font-size:.85rem; box-shadow:var(--shadow-md); z-index:800; display:flex; gap:12px; align-items:center; }
.hb-draft-note button { border:0; background:var(--brand-soft); color:var(--brand-strong); border-radius:8px; padding:5px 12px; font-size:.8rem; }
/* Kapnula visual system — loaded after the legacy Berater stylesheet. */
:root {
  --brand: #2563eb;
  --brand-strong: #194fc6;
  --brand-soft: #eaf2ff;
  --accent: #ff6b4a;
  --accent-strong: #e65334;
  --bay-teal: #13b8a6;
  --bay-teal-strong: #0e8f83;
  --haupt-navy: #102a43;
  --haupt-navy-2: #0b2035;
  --ink: #162033;
  --muted: #637083;
  --muted-2: #8794a5;
  --line: #d9e3ec;
  --line-strong: #c4d1dc;
  --surface: #ffffff;
  --surface-2: #f3f7fa;
  --surface-3: #eaf1f6;
  --success: #178a6b;
  --danger: #d83b3b;
  --warning: #b85c14;
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, .06);
  --shadow-md: 0 14px 34px rgba(16, 42, 67, .10);
  --shadow-lg: 0 28px 70px rgba(7, 27, 45, .16);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --transition: 180ms ease;
}

body.hauptbay {
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(19, 184, 166, .08), transparent 25rem),
    var(--surface-2);
}

body.hauptbay::selection { color: #fff; background: var(--brand); }
body.hauptbay :focus-visible { outline: 3px solid rgba(37, 99, 235, .30); outline-offset: 3px; }
body.hauptbay a, body.hauptbay button { -webkit-tap-highlight-color: transparent; }

.hauptbay .button,
.hauptbay .btn,
.hauptbay .btn-border {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
}
.hauptbay .button--primary,
.hauptbay .btn {
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .20);
}
.hauptbay .button--primary:hover,
.hauptbay .btn:hover { background: var(--brand-strong); box-shadow: 0 14px 28px rgba(37, 99, 235, .26); }
.hauptbay .button--accent,
.hauptbay .button--post { color: #fff !important; background: var(--accent); box-shadow: 0 10px 22px rgba(255, 107, 74, .24); }
.hauptbay .button--accent:hover,
.hauptbay .button--post:hover { background: var(--accent-strong); box-shadow: 0 14px 30px rgba(255, 107, 74, .30); }
.hauptbay .button--soft,
.hauptbay .btn-border { border-color: var(--line); background: rgba(255, 255, 255, .94); }
.hauptbay .button--soft:hover,
.hauptbay .btn-border:hover { color: var(--brand) !important; border-color: rgba(37, 99, 235, .35); background: var(--brand-soft); }

/* Header */
.hauptbay .site-header {
  border-bottom-color: rgba(217, 227, 236, .82);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(16, 42, 67, .02);
  backdrop-filter: blur(20px) saturate(155%);
}
.hauptbay .topbar { color: #cfe0eb; background: var(--haupt-navy-2); }
.hauptbay .topbar__tagline { letter-spacing: .02em; }
.hauptbay .language-switch { border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .06); }
.hauptbay .language-switch button, .hauptbay .language-switch a { color: #d7e4ec; text-decoration:none; }
.hauptbay .language-switch button:hover, .hauptbay .language-switch a:hover,
.hauptbay .language-switch button.is-active, .hauptbay .language-switch a.is-active { color: var(--haupt-navy); background: var(--surface); }
.hauptbay .header-main { min-height: 82px; gap: 38px; }
.hauptbay .brand { gap: 12px; }
.hauptbay .brand__mark {
  width: 46px;
  height: 46px;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 20px rgba(16, 42, 67, .16);
}
.hauptbay .brand__mark img { display: block; width: 46px; height: 46px; }
.hauptbay .brand__copy b { color: var(--haupt-navy); font-size: 23px; font-weight: 900; letter-spacing: -.045em; }
.hauptbay .brand__copy small {
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.hauptbay .desktop-nav { gap: 3px; }
.hauptbay .desktop-nav a { padding: 10px 13px; color: #425269; border-radius: 12px; }
.hauptbay .desktop-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.hauptbay .icon-button { border-color: var(--line); border-radius: 14px; }
.hauptbay #login_pane .pm_num { background: var(--accent); }
.hauptbay .dropdown-form { border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }

/* Hero */
.hauptbay .hero {
  isolation: isolate;
  min-height: 520px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(37, 99, 235, .58), transparent 33%),
    radial-gradient(circle at 88% 28%, rgba(19, 184, 166, .38), transparent 31%),
    linear-gradient(132deg, #0b2035 0%, #102a43 52%, #123d56 100%);
}
.hauptbay .hero::before {
  width: 560px;
  height: 560px;
  right: -230px;
  bottom: -390px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 145px rgba(255, 255, 255, .018);
}
.hauptbay .hero::after {
  width: 280px;
  height: 280px;
  left: -165px;
  top: -150px;
  border-color: rgba(19, 184, 166, .28);
  box-shadow: 0 0 0 55px rgba(19, 184, 166, .035);
}
.hauptbay .hero__inner { min-height: 520px; padding-block: 76px 54px; }
.hauptbay .hero__copy { max-width: 860px; }
.hauptbay .hero .eyebrow {
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #aaf2e8;
  border: 1px solid rgba(19, 184, 166, .34);
  border-radius: 999px;
  background: rgba(19, 184, 166, .10);
  letter-spacing: .11em;
}
.hauptbay .hero h1 { max-width: 850px; font-size: clamp(42px, 5.25vw, 70px); letter-spacing: -.058em; }
.hauptbay .hero__copy > p { max-width: 780px; color: #d7e5ee; font-size: clamp(17px, 2vw, 21px); }
.hauptbay .hero-search {
  gap: 6px;
  max-width: 1180px;
  margin-top: 36px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(1, 15, 27, .34);
}
.hauptbay .search-field { padding-inline: 15px; border-right-color: var(--line); }
.hauptbay .search-field svg { color: var(--brand); }
.hauptbay .search-field input,
.hauptbay .search-field select { height: 54px; }
.hauptbay .hero-search .button { min-width: 138px; min-height: 54px; border-radius: 16px; }
.hauptbay .hero__trust { gap: 14px 22px; margin-top: 18px; color: #d7e5ee; }
.hauptbay .hero__trust > span { display: inline-flex; align-items: center; gap: 7px; }
.hauptbay .hero__trust svg { width: 16px; height: 16px; color: #72e0d4; }
.hauptbay .hero__signals {
  display: grid;
  width: fit-content;
  grid-template-columns: repeat(3, minmax(150px, auto));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
}
.hauptbay .hero__signals div { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; background: rgba(8, 31, 49, .48); }
.hauptbay .hero__signals strong { color: #fff; font-size: 18px; }
.hauptbay .hero__signals span { color: #c7d7e2; font-size: 11px; font-weight: 700; }

/* Categories */
.hauptbay .section { padding-block: 56px; }
.hauptbay .categories-section {
  background:
    linear-gradient(180deg, #fff 0%, #fff 70%, #f8fbfd 100%);
}
.hauptbay .section-heading { margin-bottom: 28px; }
.hauptbay .section-heading h2,
.hauptbay .market-toolbar h2,
.hauptbay .trust-card h2 { color: var(--haupt-navy); }
.hauptbay .eyebrow { color: var(--bay-teal-strong); }
.hauptbay .category-grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.hauptbay .category-card {
  min-height: 64px;
  padding: 12px 14px;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 42, 67, .04);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hauptbay .category-card::after {
  position: absolute;
  inset: auto 14px 0 14px;
  height: 2px;
  content: "";
  border-radius: 2px 2px 0 0;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity var(--transition), transform var(--transition);
}
.hauptbay .category-card { position: relative; }
.hauptbay .category-card:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, .28); box-shadow: 0 4px 12px rgba(37,99,235,.1); }
.hauptbay .category-card:hover::after { opacity: 1; transform: scaleX(1); }
.hauptbay .category-card__icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.hauptbay .category-card__icon svg { width: 20px; height: 20px; }
.hauptbay .category-card b { font-size: .95rem; }
.hauptbay .category-card small { font-size: .75rem; }
.hauptbay .category-card > span > b, .hauptbay .category-card > span > small { display: block; line-height: 1.3; }
.hauptbay .category-card > i { font-size: .8rem; opacity: .4; }

.hauptbay .category-card--rose .category-card__icon { color: #be185d; background: #fff1f5; }
.hauptbay .category-card--cyan .category-card__icon { color: #0e7490; background: #ecfeff; }
.hauptbay .category-card--slate .category-card__icon { color: #475569; background: var(--surface-3); }
.hauptbay .category-card--lime .category-card__icon { color: #65a30d; background: #f7fee7; }
.hauptbay .category-card--violet .category-card__icon,
.hauptbay .category-card--indigo .category-card__icon { color: var(--brand); background: var(--brand-soft); }
.hauptbay .category-card--emerald .category-card__icon,
.hauptbay .category-card--teal .category-card__icon { color: var(--bay-teal-strong); background: #dff8f4; }
.hauptbay .category-card--orange .category-card__icon,
.hauptbay .category-card--amber .category-card__icon,
.hauptbay .category-card--pink .category-card__icon { color: #d95132; background: #fff0eb; }

/* Marketplace */
.hauptbay .main-content { padding-block: 60px 78px; }
.hauptbay .market-toolbar { margin-bottom: 28px; }
.hauptbay .market-layout { grid-template-columns: 284px minmax(0, 1fr); gap: 24px; }
.hauptbay .market-filters {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(16, 42, 67, .06);
}
.hauptbay .market-filters::-webkit-scrollbar { width: 5px; }
.hauptbay .market-filters::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.hauptbay .filter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.hauptbay .filter-head h3 { font-size: .95rem; font-weight: 800; margin: 0; }
.hauptbay .filter-head button { font-size: .75rem; color: #ef4444; font-weight: 700; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hauptbay .market-filters form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hauptbay .market-filters .button--block { white-space: nowrap; min-height: 44px; font-size: .9rem; }
.hauptbay .market-filters label { display: grid; gap: 5px; font-size: .8rem; font-weight: 600; color: #475569; letter-spacing: 0; }
.hauptbay .market-filters input,
.hauptbay .market-filters select,
.hauptbay .login_form input {
  border-color: var(--line-strong);
  border-radius: 10px;
  min-height: 42px;
  font-size: .88rem;
  padding: 8px 12px;
}
.hauptbay .market-filters input:focus,
.hauptbay .market-filters select:focus,
.hauptbay .login_form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); outline: 0; }
.hauptbay .filter-range { gap: 8px; }
.hauptbay .filter-advanced-link { font-size: .8rem; }
.hauptbay .filter-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity .25s; }
.hauptbay .filter-backdrop.is-open { opacity: 1; pointer-events: auto; }
.hauptbay .listing-grid { gap: 20px; }
.hauptbay .ad-card {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 42, 67, .06);
  overflow: hidden;
}
.hauptbay .ad-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .25); box-shadow: 0 8px 24px rgba(37,99,235,.12); }
.hauptbay .ad-card__media { background: linear-gradient(145deg, #eaf2ff, #eef7f6); aspect-ratio: 16 / 10; }
.hauptbay .ad-card__media img { transition: transform .4s ease; }
.hauptbay .ad-card:hover .ad-card__media img { transform: scale(1.04); }
.hauptbay .ad-card__badge { border-radius: 8px; background: rgba(16, 42, 67, .88); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hauptbay .ad-card__favorite { color: var(--haupt-navy); }
.hauptbay .ad-card__body { padding: 14px 16px 16px; }
.hauptbay .ad-card__category { color: var(--bay-teal-strong); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.hauptbay .ad-card__title { font-size: 15px; line-height: 1.4; min-height: 42px; }
.hauptbay .ad-card__title a { color: var(--haupt-navy); }
.hauptbay .ad-card__title a:hover { color: var(--brand); }
.hauptbay .ad-card__price { color: var(--haupt-navy); font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-top: 8px; }
.hauptbay .ad-card__summary { display: block; margin-top: 6px; color: #64748b; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hauptbay .ad-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; font-size: 11px; color: #64748b; }
.hauptbay .ad-card__location { font-weight: 600; color: #475569; display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hauptbay .ad-card__location svg { flex-shrink: 0; width: 13px; height: 13px; color: #94a3b8; }
.hauptbay .ad-card__location a { color: #475569; text-decoration: none; }
.hauptbay .ad-card__location a:hover { color: #2563eb; }
.hauptbay .ad-card__date { color: #94a3b8; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.hauptbay .listing-facet { display: none !important; }

/* TV and large screen optimization */
@media (min-width: 1920px) {
  .hauptbay .ad-card__title { font-size: 17px; }
  .hauptbay .ad-card__price { font-size: 24px; }
  .hauptbay .ad-card__body { padding: 18px 20px 20px; }
  .hauptbay .ad-card__category { font-size: 12px; }
  .hauptbay .ad-card__summary { font-size: 14px; }
  .hauptbay .ad-card__meta { font-size: 13px; }
  .hauptbay .ad-card__location svg { width: 16px; height: 16px; }
}

/* Auto/TV browsers — no hover, larger touch targets */
@media (hover: none), tv {
  .hauptbay .ad-card:hover { transform: none; }
  .hauptbay .ad-card__location { font-size: 13px; padding: 2px 0; }
  .hauptbay .ad-card__date { font-size: 13px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hauptbay .ad-card:hover { transform: none; }
  .hauptbay .ad-card:hover .ad-card__media img { transform: none; }
}
.hauptbay .content-card { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(16, 42, 67, .06); }
.hauptbay .page-heading h1 { color: var(--haupt-navy); }
.hauptbay .navigation span { border-color: var(--brand); background: var(--brand); }

/* Detail and forms */
.hauptbay .ad-detail__gallery,
.hauptbay .ad-detail__content,
.hauptbay .seller-card,
.hauptbay .safety-card,
.hauptbay .related-section,
.hauptbay .form-section { border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.hauptbay .ad-detail__title,
.hauptbay .ad-detail__price,
.hauptbay .add-ad-head h1 { color: var(--haupt-navy); }
.hauptbay .seller-card__avatar,
.hauptbay .form-section__icon { color: var(--brand); background: var(--brand-soft); }
.hauptbay .safety-card { color: #7a4517; border-color: #f6d6b6; background: #fff8f1; }
.hauptbay .add-progress__item.is-active,
.hauptbay .add-progress__item.is-done { color: var(--brand); }
.hauptbay .add-progress__item.is-active .add-progress__num,
.hauptbay .add-progress__item.is-done .add-progress__num { border-color: var(--brand); background: var(--brand); }
.hauptbay .add-progress__item.is-done::before,
.hauptbay .add-progress__item.is-active::before { background: var(--brand); }

/* Trust */
.hauptbay .trust-section { padding-top: 0; }
.hauptbay .trust-card {
  gap: 24px;
  padding: 32px;
  color: #dbe9ef;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .42), transparent 31%),
    linear-gradient(135deg, var(--haupt-navy-2), #123d56 68%, #0d5f65);
  box-shadow: 0 24px 60px rgba(7, 27, 45, .20);
}
.hauptbay .trust-card__icon { color: #dff8f4; background: rgba(19, 184, 166, .18); }
.hauptbay .trust-card h2 { color: #fff; }
.hauptbay .trust-card .button--soft { color: var(--haupt-navy) !important; border-color: rgba(255, 255, 255, .24); }

/* Footer */
.hauptbay .site-footer { color: #cbd9e3; background: #091c2d; }
.hauptbay .footer-grid { gap: 50px; padding-block: 64px 44px; }
.hauptbay .brand--footer .brand__copy b { color: #fff; }
.hauptbay .brand--footer .brand__copy small { color: #a9bdca; }
.hauptbay .footer-brand > p { color: #a9bdca; }
.hauptbay .footer-brand__note { margin-top: 10px !important; color: #8098a8 !important; font-size: 12px !important; }
.hauptbay .footer-grid h3 { letter-spacing: .07em; }
.hauptbay .footer-grid a,
.hauptbay .footer-link-button { color: #a9bdca; }
.hauptbay .footer-grid a:hover,
.hauptbay .footer-link-button:hover { color: #fff; }
.hauptbay .footer-bottom { border-top-color: rgba(203, 217, 227, .16); color: #8098a8; }
.hauptbay .language-switch--footer { background: rgba(255, 255, 255, .06); }

/* Cookie notice */
.hauptbay .cookie-banner {
  position: fixed;
  z-index: 2600;
  right: 50%;
  bottom: 18px;
  width: min(900px, calc(100% - 32px));
  padding: 15px 16px;
  border-color: rgba(196, 209, 220, .92);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 65px rgba(7, 27, 45, .22);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}
.hauptbay .cookie-banner__icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; color: var(--bay-teal-strong); border-radius: 14px; background: #dff8f4; }
.hauptbay .cookie-banner__icon svg { width: 23px; height: 23px; }
.hauptbay .cookie-banner__copy { min-width: 0; }
.hauptbay .cookie-banner__copy b { color: var(--haupt-navy); }
.hauptbay .cookie-banner__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.hauptbay .cookie-banner .button { min-height: 42px; }

/* Static and legal content */
.hauptbay .page-static .content-card--page { max-width: 960px; margin-inline: auto; }
.hauptbay .content-card--page h1,
.hauptbay .content-card--page h2,
.hauptbay .content-card--page h3 { color: var(--haupt-navy); }
.hauptbay .content-card--page h2 { margin-top: 1.8em; }
.hauptbay .content-card--page p,
.hauptbay .content-card--page li { color: #39485b; }
.hauptbay .content-card--page a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.hauptbay .content-card--page table { width: 100%; border-collapse: collapse; }
.hauptbay .content-card--page th,
.hauptbay .content-card--page td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.hauptbay .content-card--page th { color: var(--haupt-navy); background: var(--surface-2); }

/* Mobile navigation */
.hauptbay .mobile-menu { border-top-color: var(--line); }
.hauptbay .mobile-menu__inner a:hover { color: var(--brand); background: var(--brand-soft); }
.hauptbay .mobile-bottom-nav { border-top-color: var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); }
[data-theme="dark"] .hauptbay .mobile-bottom-nav { background: rgba(15, 20, 32, .96); }
.hauptbay .mobile-bottom-nav__post { color: var(--brand); }@media (max-width: 1100px){
  .hauptbay .header-main { gap: 22px; }
  .hauptbay .desktop-nav a { padding-inline: 9px; }
  .hauptbay .brand__copy small { max-width: 145px; }
  .hauptbay .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hauptbay .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}@media (max-width: 860px){
  .hauptbay .topbar__tagline { display: block; max-width: calc(100% - 128px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .desktop-nav { display: none; }
  .hauptbay .mobile-menu-toggle { display: inline-grid; }
  .hauptbay .header-main { min-height: 74px; }
  .hauptbay .hero { min-height: 0; }
  .hauptbay .hero__inner { min-height: 0; padding-block: 62px 48px; }
  .hauptbay .hero-search { grid-template-columns: 1fr 1fr; }
  .hauptbay .search-field--query { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hauptbay .hero-search .button { grid-column: 1 / -1; }
  .hauptbay .hero__signals { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hauptbay .hero__signals div { justify-content: center; }
  .hauptbay .market-layout { grid-template-columns: 1fr; }
  .hauptbay .market-filters { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 90vw); z-index: 2000; transform: translateX(105%); transition: transform .25s ease; max-height: 100vh; border-radius: 0; }
  .hauptbay .market-filters.is-open { transform: translateX(0); }
  .hauptbay .filter-toggle { display: inline-flex; }
  .hauptbay .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hauptbay .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hauptbay .footer-grid > div:last-child { grid-column: 2 / -1; }
}@media (max-width: 680px){
  .hauptbay .container { width: min(calc(100% - 28px), var(--container)); }
  .hauptbay .topbar { min-height: 32px; }
  .hauptbay .topbar__inner { min-height: 32px; }
  .hauptbay .topbar__tagline { font-size: 10px; }
  .hauptbay .header-main { min-height: 66px; gap: 12px; }
  .hauptbay .brand__mark,
  .hauptbay .brand__mark img { width: 40px; height: 40px; }
  .hauptbay .brand__copy b { font-size: 20px; }
  .hauptbay .brand__copy small { display: none; }
  .hauptbay .header-actions { gap: 7px; }
  .hauptbay .button--post { display: none; }
  .hauptbay .hero__inner { padding-block: 50px 42px; }
  .hauptbay .hero .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .hauptbay .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hauptbay .hero__copy > p { margin-top: 16px; font-size: 16px; }
  .hauptbay .hero-search { grid-template-columns: 1fr; margin-top: 28px; padding: 6px; border-radius: 18px; }
  .hauptbay .search-field,
  .hauptbay .search-field--query { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .hauptbay .hero-search .button { grid-column: 1; }
  .hauptbay .hero__trust { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hauptbay .hero__signals { grid-template-columns: 1fr; gap: 0; }
  .hauptbay .hero__signals div { justify-content: flex-start; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hauptbay .hero__signals div:last-child { border-bottom: 0; }
  .hauptbay .section { padding-block: 40px; }
  .hauptbay .section-heading { align-items: flex-start; }
  .hauptbay .section-heading .text-link { display: none; }
  .hauptbay .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hauptbay .category-card { min-height: 56px; }
  .hauptbay .market-toolbar { align-items: flex-start; }
  .hauptbay .toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .hauptbay .listing-grid { grid-template-columns: 1fr; }
  .hauptbay .ad-card { display: flex; flex-direction: row; align-items: stretch; min-height: 118px; }
  .hauptbay .ad-card__media { position: relative; flex: 0 0 118px; width: 118px; aspect-ratio: auto; height: auto; min-height: 118px; align-self: stretch; }
  .hauptbay .ad-card__media img,
  .hauptbay .ad-card__media .xfimagethumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hauptbay .ad-card__body { flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
  .hauptbay .ad-card__title { min-height: auto; font-size: 15px; -webkit-line-clamp: 2; }
  .hauptbay .ad-card__price { margin-top: 6px; font-size: 17px; }
  .hauptbay .ad-card__summary { display: none; }
  .hauptbay .ad-card__meta { padding-top: 8px; }
  .hauptbay .ad-card__badge { top: 8px; left: 8px; font-size: 10px; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .ad-card__badge--second { top: 34px; }
  .hauptbay .ad-card__favorite { top: 8px; right: auto; left: 80px; width: 32px; height: 32px; }
  .hauptbay .ad-card__author-rating { margin-top: 8px; }
  .hauptbay .ad-card__author-rating .seller-chip,
  .hauptbay .ad-card__author-rating a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .hb-compare-btn { margin-top: 8px; font-size: .74rem; padding: 6px 9px; }
  .hauptbay .trust-card { grid-template-columns: 1fr; padding: 26px; }
  .hauptbay .trust-card .button { width: 100%; }
  .hauptbay .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .hauptbay .footer-brand { grid-column: 1 / -1; }
  .hauptbay .footer-grid > div:last-child { grid-column: auto; }
  .hauptbay .footer-bottom { min-height: 92px; padding-bottom: 72px; flex-direction: column; justify-content: center; text-align: center; }
  .hauptbay .cookie-banner { right: 12px; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; align-items: flex-start; gap: 12px; padding: 14px; }
  .hauptbay .cookie-banner__icon { width: 38px; height: 38px; }
  .hauptbay .cookie-banner__actions { flex-direction: column; }
  .hauptbay .cookie-banner__actions .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .hauptbay .mobile-bottom-nav { display: grid; }
}@media (max-width: 430px){
  .hauptbay .topbar__tagline { display: none; }
  .hauptbay .topbar__inner { justify-content: flex-end; }
  .hauptbay .brand__copy b { font-size: 19px; }
  .hauptbay .header-actions #login_pane .btn-border { max-width: 94px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hauptbay .hero h1 { font-size: 36px; }
  .hauptbay .footer-grid { grid-template-columns: 1fr; }
  .hauptbay .footer-grid > div:last-child { grid-column: 1; }
  .hauptbay .cookie-banner { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr; }
  .hauptbay .cookie-banner__actions { grid-column: 1 / -1; flex-direction: row; }
  .hauptbay .cookie-banner__actions .button:first-child { flex: 1; }
}@media (prefers-reduced-motion: reduce){
  .hauptbay *,
  .hauptbay *::before,
  .hauptbay *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Authentication and registration */
.hauptbay .auth-shell {
  display: grid;
  max-width: 1080px;
  min-height: 650px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(7, 27, 45, .14);
}
.hauptbay .auth-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  color: #d9e7ef;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, .52), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(19, 184, 166, .34), transparent 33%),
    linear-gradient(145deg, #0b2035, #123d56);
}
.hauptbay .auth-intro::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, .025);
}
.hauptbay .auth-intro > * { position: relative; z-index: 1; }
.hauptbay .auth-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; margin-bottom: 48px; color: #fff !important; }
.hauptbay .auth-brand img { width: 54px; height: 54px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18)); }
.hauptbay .auth-brand span { display: grid; line-height: 1; }
.hauptbay .auth-brand b { font-size: 24px; letter-spacing: -.04em; }
.hauptbay .auth-brand small { margin-top: 5px; color: #aac0cd; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hauptbay .auth-intro .eyebrow { color: #8ee8de; }
.hauptbay .auth-intro h1 { max-width: 460px; margin: 0; color: #fff; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.06; letter-spacing: -.05em; }
.hauptbay .auth-intro > p { max-width: 480px; margin: 18px 0 0; color: #ccdae3; font-size: 16px; }
.hauptbay .auth-benefits { display: grid; gap: 13px; margin: 30px 0 0; padding: 0; list-style: none; }
.hauptbay .auth-benefits li { display: flex; align-items: center; gap: 10px; color: #e7f1f5; font-size: 13px; }
.hauptbay .auth-benefits li > span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #073d3a; border-radius: 50%; background: #70e0d3; font-size: 12px; font-weight: 900; }
.hauptbay .auth-trust { display: flex; align-items: flex-start; gap: 10px; margin-top: 40px; padding-top: 24px; color: #aac0cd; border-top: 1px solid rgba(255, 255, 255, .13); font-size: 11px; }
.hauptbay .auth-trust svg { width: 18px; height: 18px; flex: 0 0 auto; color: #70e0d3; }
.hauptbay .auth-card { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 58px); background: var(--surface); }
.hauptbay .auth-card__head { margin-bottom: 26px; }
.hauptbay .auth-card__head .eyebrow { margin-bottom: 8px; }
.hauptbay .auth-card__head h2 { margin: 0; color: var(--haupt-navy); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.hauptbay .auth-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; margin: 0; padding: 0; list-style: none; }
.hauptbay .auth-fields .form-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.hauptbay .auth-fields label { color: #34465a; font-size: 12px; font-weight: 800; }
.hauptbay .auth-fields input,
.hauptbay .auth-fields textarea,
.hauptbay .auth-fields select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hauptbay .auth-fields textarea { min-height: 120px; resize: vertical; }
.hauptbay .auth-fields input:focus,
.hauptbay .auth-fields textarea:focus,
.hauptbay .auth-fields select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .11); outline: 0; }
.hauptbay .auth-fields .login_check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hauptbay .auth-fields .login_check .button { min-height: 48px; }
.hauptbay .auth-legal { margin: 22px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hauptbay .auth-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.hauptbay .auth-help a { color: var(--brand); font-weight: 800; }
.hauptbay .login-form-title { display: grid; margin-bottom: 18px; }
.hauptbay .login-form-title b { color: var(--haupt-navy); font-size: 23px; }
.hauptbay .login-form-title small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }@media (max-width: 820px){
  .hauptbay .auth-shell { grid-template-columns: 1fr; }
  .hauptbay .auth-intro { min-height: 390px; }
  .hauptbay .auth-brand { margin-bottom: 34px; }
}@media (max-width: 520px){
  .hauptbay .auth-shell { margin-inline: -2px; border-radius: 22px; }
  .hauptbay .auth-intro,
  .hauptbay .auth-card { padding: 28px 22px; }
  .hauptbay .auth-intro { min-height: 350px; }
  .hauptbay .auth-brand { margin-bottom: 26px; }
  .hauptbay .auth-intro h1 { font-size: 34px; }
  .hauptbay .auth-fields .login_check { grid-template-columns: 1fr; }
}

/* ===== Kapnula legal and trust pages ===== */
.hauptbay .legal-page{max-width:1180px;margin:0 auto;padding:32px 20px 72px;color:var(--ink)}
.hauptbay .legal-hero{position:relative;overflow:hidden;padding:44px clamp(24px,5vw,64px);border-radius:30px;background:linear-gradient(135deg,#102a43 0%,#173f65 58%,#126b70 100%);color:#fff;box-shadow:0 24px 54px rgba(16,42,67,.18)}
.hauptbay .legal-hero:after{content:"";position:absolute;right:-80px;top:-110px;width:290px;height:290px;border-radius:50%;background:radial-gradient(circle,rgba(19,184,166,.42),rgba(19,184,166,0) 68%);pointer-events:none}
.hauptbay .legal-hero--safety{background:linear-gradient(135deg,#102a43 0%,#163d5d 52%,#0c6d64 100%)}
.hauptbay .legal-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:13px;padding:7px 11px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.08);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.hauptbay .legal-hero h1{max-width:820px;margin:0 0 14px;font-size:clamp(34px,5vw,60px);line-height:1.03;letter-spacing:-.035em;color:#fff}
.hauptbay .legal-hero>p{max-width:800px;margin:0;color:rgba(255,255,255,.82);font-size:clamp(16px,2vw,19px);line-height:1.65}
.hauptbay .legal-meta{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:24px;color:rgba(255,255,255,.68);font-size:13px}
.hauptbay .legal-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:34px;margin-top:34px;align-items:start}
.hauptbay .legal-toc{position:sticky;top:100px;display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid #dbe7ef;border-radius:20px;background: var(--surface);box-shadow:0 12px 32px rgba(16,42,67,.07)}
.hauptbay .legal-toc strong{padding:5px 9px 10px;color:#102a43;font-size:14px}
.hauptbay .legal-toc a{padding:9px;border-radius:10px;color:#486581;font-size:13px;font-weight:700;text-decoration:none;transition:.18s ease}
.hauptbay .legal-toc a:hover{background:#eaf8f6;color:#087c70;transform:translateX(2px)}
.hauptbay .legal-content{min-width:0}
.hauptbay .legal-section{scroll-margin-top:110px;padding:30px 32px;margin-bottom:16px;border:1px solid #dfe9f0;border-radius:22px;background: var(--surface);box-shadow:0 12px 30px rgba(16,42,67,.055)}
.hauptbay .legal-section h2{margin:0 0 14px;color:#102a43;font-size:clamp(22px,3vw,29px);line-height:1.18;letter-spacing:-.02em}
.hauptbay .legal-section h3{color:#173f65}
.hauptbay .legal-section p,.hauptbay .legal-section li{color:#40566a;font-size:15px;line-height:1.78}
.hauptbay .legal-section a{color:#0a7f75;font-weight:750;text-decoration-thickness:1px;text-underline-offset:3px}
.hauptbay .legal-section ul,.hauptbay .legal-section ol{padding-left:22px}
.hauptbay .legal-contact-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0;padding:20px;border-radius:17px;background:#f3f7fa;border:1px solid #dce8ef}
.hauptbay .legal-contact-card p{margin:0}
.hauptbay .legal-note{margin:22px 0;padding:20px 22px;border-radius:17px;border-left:4px solid #13b8a6;background:#eaf8f6;color:#214f53}
.hauptbay .legal-note strong{display:block;margin-bottom:5px;color:#0a7068}
.hauptbay .legal-note p{margin:0;line-height:1.65}
.hauptbay .legal-note--warning{border-left-color:#ff6b4a;background:#fff3ef;color:#6b352b}
.hauptbay .legal-note--warning strong{color:#b33d27}
.hauptbay .legal-table-wrap{overflow-x:auto;margin:18px 0;border:1px solid #dfe9f0;border-radius:15px}
.hauptbay .legal-table-wrap table{width:100%;border-collapse:collapse;background:#fff}
.hauptbay .legal-table-wrap th,.hauptbay .legal-table-wrap td{padding:14px 16px;border-bottom:1px solid #e5edf2;text-align:left;vertical-align:top;font-size:14px;line-height:1.55}
.hauptbay .legal-table-wrap th{background:#f3f7fa;color:#102a43}
.hauptbay .legal-table-wrap tr:last-child td{border-bottom:0}
.hauptbay .legal-translation{margin-top:20px;border:1px solid #dfe9f0;border-radius:20px;background: var(--surface);overflow:hidden}
.hauptbay .legal-translation summary{padding:18px 22px;cursor:pointer;color:#102a43;font-weight:850;list-style-position:inside;background:#f7fafc}
.hauptbay .legal-translation__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:24px}
.hauptbay .legal-translation__grid h3{margin:0 0 9px;color:#173f65}
.hauptbay .legal-translation__grid p{margin:0;color:#486581;line-height:1.7}
.hauptbay .legal-page .safety-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hauptbay .legal-page .safety-card{position:relative;padding:22px;border:1px solid #dfe9f0;border-radius:17px;background:linear-gradient(180deg,#fff,#f7fafc);box-shadow:none;color:inherit}
.hauptbay .legal-page .safety-card>span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#102a43;color:#fff;font-weight:900;font-size:12px}
.hauptbay .legal-page .safety-card h3{margin:13px 0 7px;font-size:18px}
.hauptbay .legal-page .safety-card p{margin:0;font-size:14px;line-height:1.65}
.hauptbay .legal-checklist{list-style:none;padding-left:0!important}
.hauptbay .legal-checklist li{position:relative;padding:12px 14px 12px 42px;margin:8px 0;border-radius:13px;background:#f3f8fa}
.hauptbay .legal-checklist li:before{content:"✓";position:absolute;left:15px;top:12px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#13b8a6;color:#fff;font-size:12px;font-weight:900}
.hauptbay .legal-checklist--warning li:before{content:"!";background:#ff6b4a}
.hauptbay .safety-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.hauptbay .rule-section{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px}
.hauptbay .rule-number{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#2563eb,#13b8a6);color:#fff;font-size:13px;font-weight:900;box-shadow:0 10px 22px rgba(37,99,235,.2)}
.hauptbay .rule-section h2{margin-top:6px}@media(max-width:900px){.hauptbay .legal-layout{grid-template-columns:1fr}.hauptbay .legal-toc{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hauptbay .legal-toc strong{grid-column:1/-1}.hauptbay .legal-contact-card{grid-template-columns:1fr}}@media(max-width:640px){.hauptbay .legal-page{padding:18px 12px 54px}.hauptbay .legal-hero{padding:31px 22px;border-radius:23px}.hauptbay .legal-layout{gap:20px;margin-top:20px}.hauptbay .legal-toc{grid-template-columns:1fr;padding:12px}.hauptbay .legal-section{padding:22px 18px;border-radius:17px}.hauptbay .legal-translation__grid,.hauptbay .legal-page .safety-grid{grid-template-columns:1fr}.hauptbay .rule-section{grid-template-columns:42px minmax(0,1fr);gap:12px}.hauptbay .rule-number{width:40px;height:40px;border-radius:12px}.hauptbay .safety-actions .btn{width:100%;justify-content:center}}

/* ===== PWA / Mobile enhancements ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  .hauptbay .site-header,
  .hauptbay .footer,
  .hauptbay .pwa-bottom-nav { padding-bottom: max(env(safe-area-inset-bottom), 8px); }
  body.hauptbay { padding-bottom: env(safe-area-inset-bottom); }
}

/* ===== Fallback for older car browsers (no CSS Grid) ===== */
@supports not (display: grid) {
  .hauptbay .listing-grid { display: flex; flex-wrap: wrap; }
  .hauptbay .ad-card { width: calc(33.333% - 16px); margin: 8px; }
  .hauptbay .footer-grid { display: flex; flex-wrap: wrap; }
  .hauptbay .footer-grid > div { width: 25%; min-width: 200px; }
}@supports not (display: flex){
  .hauptbay .listing-grid { display: block; }
  .hauptbay .ad-card { width: 100%; margin: 0 0 16px; display: block; }
}
.hauptbay .pwa-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;gap:0;padding:6px max(env(safe-area-inset-left),8px) max(env(safe-area-inset-bottom),8px) max(env(safe-area-inset-right),8px);background: var(--surface);border-top:1px solid #d8e3ee;box-shadow:0 -8px 22px rgba(15,52,96,.10)}
.hauptbay .pwa-bottom-nav__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;padding:0;list-style:none}
.hauptbay .pwa-bottom-nav__list a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;padding:6px 4px;color:#215987;text-decoration:none;font-size:11px;line-height:1.2;text-align:center}
.hauptbay .pwa-bottom-nav__list a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8}
.hauptbay .pwa-bottom-nav__list a.is-active{color:#1f6fb2;font-weight:700}@media (display-mode: standalone),(display-mode: minimal-ui){
  .hauptbay .pwa-bottom-nav{display:block}
  .hauptbay .mobile-bottom-nav{display:none !important}
  body.hauptbay{padding-bottom:64px}
}
.hauptbay .pwa-install-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:60;display:none;gap:10px;align-items:center;width:min(440px,calc(100vw - 24px));padding:12px 14px;border-radius:14px;background:#102a43;color:#fff;box-shadow:0 16px 36px rgba(15,52,96,.30)}
.hauptbay .pwa-install-banner.is-visible{display:flex}
body.hauptbay:has(.pwa-install-banner.is-visible){padding-bottom:120px}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])){padding-bottom:160px}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])) .pwa-install-banner{bottom:calc(170px + env(safe-area-inset-bottom, 0px))}
body.hauptbay:has(.cookie-banner:not([hidden]):not([hidden=""])) .back-to-top{bottom:calc(150px + env(safe-area-inset-bottom, 0px))}
.hauptbay .pwa-install-banner__copy{flex:1;min-width:0;font-size:13px;line-height:1.4}
.hauptbay .pwa-install-banner__copy b{display:block;font-size:14px;margin-bottom:2px}
.hauptbay .pwa-install-banner button{border:0;border-radius:9px;padding:8px 14px;background:#1f6fb2;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hauptbay .pwa-install-banner__close{background:transparent;color:#9bb3c9;padding:6px 8px}

/* Push notification opt-in prompt */
.hauptbay .push-prompt{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:65;display:none;gap:10px;align-items:center;width:min(440px,calc(100vw - 24px));padding:12px 14px;border-radius:14px;background:#102a43;color:#fff;box-shadow:0 16px 36px rgba(15,52,96,.30)}
.hauptbay .push-prompt:not([hidden]){display:flex}
.hauptbay .push-prompt__icon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:rgba(19,184,166,.18);color:#13b8a6}
.hauptbay .push-prompt__icon svg{width:20px;height:20px}
.hauptbay .push-prompt__copy{flex:1;min-width:0;font-size:13px;line-height:1.4}
.hauptbay .push-prompt__copy b{display:block;font-size:14px;margin-bottom:2px}
.hauptbay .push-prompt__actions{display:flex;flex:0 0 auto;gap:8px}
.hauptbay .push-prompt .button{min-height:38px;padding:0 12px;font-size:.85rem}

/* Mobile: raise prompts above bottom nav (67px + safe-area) */
@media (max-width: 900px) {
  .hauptbay .push-prompt,
  .hauptbay .pwa-install-banner { bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 10px); z-index: 1700; }
  body.hauptbay:has(.push-prompt:not([hidden])) .mobile-bottom-nav,
  body.hauptbay:has(.pwa-install-banner.is-visible) .mobile-bottom-nav { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
}@media (max-width: 680px){
  .hauptbay .push-prompt,
  .hauptbay .pwa-install-banner { bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 8px); width: calc(100vw - 16px); }
  .hauptbay .push-prompt { flex-direction: column; text-align: center; }
  .hauptbay .push-prompt__actions { flex-direction: column; width: 100%; }
  .hauptbay .push-prompt .button { width: 100%; }
}@media (max-width: 430px){
  .hauptbay .push-prompt { width: calc(100vw - 12px); }
}

/* ===== DLE 21.0: oEmbed error block + dynamic field buttons ===== */
.dlemedia-oembed-error {
    color: #555;
    background: #f0f0f0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

.btn.bg-light {
    color: #333;
    background-color: #eae9e9;
    text-shadow: none;
    box-shadow: none;
}
.btn.bg-light.remove-dynamic-item {
    color: #ef5350;
}

/* ===== Large screen optimization (TV, Tesla, 4K monitors) ===== */
@media (min-width: 1500px) {
  .hauptbay .container { width: min(calc(100% - 60px), 1440px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hauptbay .hero__copy h1 { font-size: clamp(40px, 4vw, 64px); }
  .hauptbay .ad-card { padding: 16px; }
  .hauptbay .ad-card__title { font-size: 1.05rem; }
}@media (min-width: 1920px){
  .hauptbay .container { width: min(calc(100% - 80px), 1640px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.hauptbay { font-size: 17px; }
}@media (min-width: 2560px){
  .hauptbay .container { width: min(calc(100% - 100px), 1920px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.hauptbay { font-size: 18px; }
}@media (min-width: 3840px){
  .hauptbay .container { width: min(calc(100% - 120px), 2560px); }
  .hauptbay .listing-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  body.hauptbay { font-size: 20px; }
}

/* ===== TV remote navigation (focus-visible for D-pad) ===== */
@media (tv) {
  .hauptbay :focus-visible {
    outline: 4px solid #1f6fb2;
    outline-offset: 4px;
  }
  .hauptbay .ad-card:focus-visible,
  .hauptbay .button:focus-visible,
  .hauptbay a:focus-visible {
    transform: scale(1.05);
    transition: transform 150ms ease;
  }
}

/* ===== Input zoom prevention on iOS (font-size >= 16px) ===== */
@media (max-width: 680px) {
  .hauptbay input[type="text"],
  .hauptbay input[type="email"],
  .hauptbay input[type="password"],
  .hauptbay input[type="search"],
  .hauptbay input[type="tel"],
  .hauptbay input[type="url"],
  .hauptbay input[type="number"],
  .hauptbay select,
  .hauptbay textarea {
    font-size: 16px !important;
  }
}

/* ===== Hover optimization for touch devices ===== */
@media (hover: none) {
  .hauptbay .ad-card:hover { transform: none; box-shadow: var(--shadow-md); }
  .hauptbay .button:hover { transform: none; }
}

/* ===== How it works section ===== */
.hb-howto{padding:3.5rem 0;background:#f8fafc}
.hb-howto__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:1.5rem}
.hb-howto__step{position:relative;padding:2rem 1.5rem;border:1px solid #e2e8f0;border-radius:20px;background: var(--surface);box-shadow:0 4px 12px rgba(15,23,42,.04);transition:transform .25s,box-shadow .25s}
.hb-howto__step:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(15,23,42,.08)}
.hb-howto__num{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;font-size:1.4rem;font-weight:800;margin-bottom:1rem;box-shadow:0 4px 12px rgba(37,99,235,.3)}
.hb-howto__step h3{margin:0 0 .5rem;color:#0f172a;font-size:1.15rem}
.hb-howto__step p{margin:0;color:#64748b;line-height:1.55;font-size:.95rem}

/* Seller rating */
.hauptbay .seller-rating { padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--surface); margin-top: 12px; }
.hauptbay .seller-rating__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hauptbay .seller-rating__head h3 { font-size: .9rem; font-weight: 800; margin: 0; color: #334155; }
.hauptbay .seller-rating__score { font-size: 1.1rem; }
.hauptbay .seller-rating__score strong { font-weight: 900; color: #2563eb; }
.hauptbay .seller-rating__score span { font-size: .8rem; color: #94a3b8; }
.hauptbay .seller-rating__bars { display: grid; gap: 6px; margin-bottom: 12px; }
.hauptbay .seller-rating__bar { display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 8px; font-size: .75rem; color: #64748b; }
.hauptbay .seller-rating__fill { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.hauptbay .seller-rating__fill div { height: 100%; background: #22c55e; border-radius: 3px; transition: width .3s; }
.hauptbay .seller-rating__empty { font-size: .85rem; color: #94a3b8; text-align: center; padding: 12px 0; }
.hauptbay .seller-rating__reviews { border-top: 1px solid #f1f5f9; padding-top: 12px; max-height: 200px; overflow-y: auto; }
.hauptbay .seller-rating__review { padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.hauptbay .seller-rating__review:last-child { border-bottom: 0; }
.hauptbay .seller-rating__review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hauptbay .seller-rating__review-head b { font-size: .8rem; color: #334155; }
.hauptbay .seller-rating__review-head small { font-size: .72rem; color: #94a3b8; }
.hauptbay .seller-rating__review p { font-size: .82rem; color: #475569; margin: 2px 0 0; }
[data-theme="dark"] .hauptbay .seller-rating{ background: #1e293b; border-color: #334155; }
[data-theme="dark"] .hauptbay .seller-rating__head h3{ color: #f1f5f9; }
[data-theme="dark"] .hauptbay .seller-rating__fill{ background: #334155; }
[data-theme="dark"] .hauptbay .seller-rating__reviews{ border-top-color: #334155; }

/* Author rating badge in listing cards */
.hauptbay .ad-card__author-rating { margin-top: 8px; }
.hauptbay .ad-rating-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.hauptbay .ad-rating-badge small { font-weight: 500; opacity: .7; }
.hauptbay .ad-rating-badge--excellent { background: #dcfce7; color: #15803d; }
.hauptbay .ad-rating-badge--good { background: #dbeafe; color: #1d4ed8; }
.hauptbay .ad-rating-badge--neutral { background: #fef9c3; color: #a16207; }
.hauptbay .ad-rating-badge--bad { background: #fee2e2; color: #b91c1c; }
.hauptbay .ad-rating-badge--new { background: var(--surface-3); color: #64748b; }
[data-theme="dark"] .hauptbay .ad-rating-badge--excellent{ background: #14532d; color: #86efac; }
[data-theme="dark"] .hauptbay .ad-rating-badge--good{ background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .hauptbay .ad-rating-badge--neutral{ background: #713f12; color: #fde047; }
[data-theme="dark"] .hauptbay .ad-rating-badge--bad{ background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .hauptbay .ad-rating-badge--new{ background: #334155; color: #cbd5e1; }

/* Share buttons */
.hauptbay .share-card { margin-top: 12px; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--surface); }
.hauptbay .share-card__head { font-size: .85rem; font-weight: 700; color: #334155; margin-bottom: 10px; }
.hauptbay .share-card__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hauptbay .share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; font-size: .8rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s; }
.hauptbay .share-btn:hover { transform: translateY(-1px); }
.hauptbay .share-btn--wa { background: #25d366; color: #fff; }
.hauptbay .share-btn--tg { background: #0088cc; color: #fff; }
.hauptbay .share-btn--vk { background: #4a76a8; color: #fff; }
.hauptbay .share-btn--fb { background: #1877f2; color: #fff; }
.hauptbay .share-btn--copy { background: var(--surface-3); color: #475569; }
[data-theme="dark"] .hauptbay .share-card{ background: #1e293b; border-color: #334155; }
[data-theme="dark"] .hauptbay .share-card__head{ color: #f1f5f9; }
[data-theme="dark"] .hauptbay .share-btn--copy{ background: #334155; color: #cbd5e1; }

/* ===== Popular cities ===== */
.hb-cities{padding:3.5rem 0}
.hb-cities__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem;margin-top:1.5rem}
.hauptbay .hb-city-card{display:flex;align-items:center;justify-content:center;padding:.85rem 1rem;border:1px solid #e2e8f0;border-radius:12px;background: var(--surface);color:#334155;font-weight:700;font-size:.95rem;text-decoration:none;transition:all .2s}
.hauptbay .hb-city-card:hover{border-color:#2563eb;background:#eff6ff;color:#1e40af;transform:translateY(-2px);box-shadow:0 4px 10px rgba(37,99,235,.1)}

/* ===== Services bar ===== */
.hb-services{padding:1rem 0;background: var(--surface);border-bottom:1px solid #e2e8f0}
.hb-services__bar{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:4px 0}
.hb-services__bar::-webkit-scrollbar{height:4px}
.hb-services__bar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}
.hauptbay .hb-svc-tile{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:84px;padding:10px 8px;border-radius:12px;text-decoration:none;color:#475569;background: var(--surface-2);border:1px solid transparent;transition:all .15s}
.hauptbay .hb-svc-tile:hover{background:#eff6ff;border-color:#dbeafe;color:#2563eb;transform:translateY(-1px)}
.hb-svc-tile__icon{font-size:1.5rem;line-height:1}
.hb-svc-tile__label{font-size:.72rem;font-weight:700;white-space:nowrap}

/* ===== Scroll animations ===== */
@keyframes hb-fade-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@keyframes hb-fade-in{from{opacity:0}to{opacity:1}}@keyframes hb-shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.hb-animate{opacity:0}
.hb-animate.hb-visible{animation:hb-fade-up .6s ease-out forwards}
.hb-category-card,.hb-howto__step,.hb-city-card,.ad-card,.promo-card{animation:hb-fade-up .5s ease-out both}

/* ===== Dark mode ===== */
[data-theme="dark"]{
    --brand:#818cf8;
    --brand-strong:#a5b4fc;
    --brand-soft:#1e1b4b;
    --accent:#fb923c;
    --accent-strong:#fdba74;
    --ink:#e8eaf2;
    --muted:#a3abc0;
    --muted-2:#7d86a0;
    --line:#2a3040;
    --line-strong:#3a4154;
    --surface:#161b28;
    --surface-2:#0f1420;
    --surface-3:#1d2434;
    --success:#34d399;
    --danger:#f87171;
    --warning:#fbbf24;
    --haupt-navy:#e8eaf2;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4);
    --shadow-md:0 8px 24px rgba(0,0,0,.45);
    --shadow-lg:0 20px 48px rgba(0,0,0,.55);
    color-scheme:dark;
  }
[data-theme="dark"] .hauptbay input,[data-theme="dark"] .hauptbay select,[data-theme="dark"] .hauptbay textarea{background:var(--surface-3);color:var(--ink);border-color:var(--line-strong)}
[data-theme="dark"] .hauptbay input::placeholder,[data-theme="dark"] .hauptbay textarea::placeholder{color:var(--muted-2)}
[data-theme="dark"] .hauptbay .button--primary,[data-theme="dark"] .hauptbay .btn.primary{color:#0f1420}
[data-theme="dark"] .hauptbay code{background:var(--surface-3)}
[data-theme="dark"] .hauptbay{background:#0f172a;color:#e2e8f0}
[data-theme="dark"] .hauptbay .site-header,[data-theme="dark"] .hauptbay .site-footer{background:#1e293b}
[data-theme="dark"] .hauptbay .hero{background:linear-gradient(135deg,#0f172a,#1e3a5f)}
[data-theme="dark"] .hauptbay .hero h1,[data-theme="dark"] .hauptbay .hero p{color:#f1f5f9}
[data-theme="dark"] .hauptbay .category-card,[data-theme="dark"] .hauptbay .ad-card,[data-theme="dark"] .hauptbay .promo-card{background:#1e293b;border-color:#334155;color:#e2e8f0}
[data-theme="dark"] .hauptbay .category-card b,[data-theme="dark"] .hauptbay .ad-card__title,[data-theme="dark"] .hauptbay .promo-card h3{color:#f1f5f9}
[data-theme="dark"] .hauptbay .category-card small,[data-theme="dark"] .hauptbay .ad-card__meta,[data-theme="dark"] .hauptbay .promo-card p{color:#94a3b8}
[data-theme="dark"] .hauptbay .ad-card__title a{color:#f1f5f9}
[data-theme="dark"] .hauptbay .ad-card__title a:hover{color:#93c5fd}
[data-theme="dark"] .hauptbay .ad-card__price{color:#f1f5f9}
[data-theme="dark"] .hauptbay .ad-card__summary{color:#94a3b8}
[data-theme="dark"] .hauptbay .ad-card__category{color:#93c5fd}
[data-theme="dark"] .hauptbay .ad-card__location a{color:#94a3b8}
[data-theme="dark"] .hauptbay .ad-card__location a:hover{color:#93c5fd}
[data-theme="dark"] .hauptbay .ad-card__favorite{color:#cbd5e1}
[data-theme="dark"] .hauptbay .ad-card__media{background:#0b1526}
[data-theme="dark"] .hauptbay .ad-card__meta{border-top-color:#334155}
[data-theme="dark"] .hauptbay .ad-card__date{color:#94a3b8}
[data-theme="dark"] .hauptbay .hb-howto__step{background:#1e293b;border-color:#334155}
[data-theme="dark"] .hauptbay .hb-howto__step h3{color:#f1f5f9}
[data-theme="dark"] .hauptbay .hb-howto__step p{color:#94a3b8}
[data-theme="dark"] .hauptbay .hauptbay .hb-city-card{background:#1e293b;border-color:#334155;color:#cbd5e1}
[data-theme="dark"] .hauptbay .hauptbay .hb-city-card:hover{background:#1e3a5f;border-color:#2563eb;color:#93c5fd}
[data-theme="dark"] .hauptbay .hauptbay-promo__wrap{background:#1e293b;border-color:#334155}
[data-theme="dark"] .hauptbay .hauptbay-promo__title{color:#f1f5f9}
[data-theme="dark"] .hauptbay .hauptbay-promo__text{color:#94a3b8}
[data-theme="dark"] .hauptbay .advertise-banner{background:#1e293b;border-color:#334155}
[data-theme="dark"] .hauptbay .advertise-banner h2{color:#f1f5f9}
[data-theme="dark"] .hauptbay .advertise-banner p{color:#94a3b8}
[data-theme="dark"] .hauptbay .market-filters{background:#1e293b;border-color:#334155}
[data-theme="dark"] .hauptbay .market-toolbar h2{color:#f1f5f9}
[data-theme="dark"] .hauptbay .market-toolbar p{color:#94a3b8}

/* ===== Skeleton loading for images ===== */
.hb-skeleton{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);background-size:200% 100%;animation:hb-shimmer 1.5s infinite}
[data-theme="dark"] .hb-skeleton{background:linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%);background-size:200% 100%}

/* ===== Responsive ===== */
@media(max-width:820px){
  .hb-howto__grid{grid-template-columns:1fr}
  .hb-cities__grid{grid-template-columns:repeat(2,1fr)}
}

/* ===== Voice Search ===== */
.voice-search-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:transparent;color:#1f6fb2;cursor:pointer;border-radius:50%;flex:0 0 36px;transition:background .2s}
.voice-search-btn:hover{background:#e8f1ff}
.voice-search-btn.listening{background:#fee2e2;color:#dc2626;animation:hb-pulse 1s infinite}
.voice-search-btn svg{width:20px;height:20px;fill:currentColor}
.voice-search-status{position:absolute;left:16px;top:100%;margin-top:6px;padding:6px 12px;border-radius:8px;background:#102a43;color:#fff;font-size:.8rem;line-height:1.3;box-shadow:0 8px 20px rgba(16,42,67,.25);z-index:50;max-width:min(320px,calc(100vw - 32px))}
.voice-search-status.is-error{background:#b91c1c}
.hero-search{position:relative}@keyframes hb-pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* ===== Verified Badge ===== */
.verified-badge{display:inline-flex;align-items:center;gap:2px;padding:1px 6px;border-radius:99px;background:#1d9bf0;color:#fff;font-size:.7rem;font-weight:700;vertical-align:middle;margin-left:4px}
.verified-badge svg{width:12px;height:12px;fill:currentColor}

/* ===== Vertical Feed (TikTok-style) ===== */
.hb-feed{position:fixed;inset:0;background:#000;z-index:9999;overflow-y:scroll;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch}
.hb-feed__close{position:fixed;top:16px;right:16px;z-index:10000;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;border:0;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.hb-feed__item{height:100vh;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;position:relative;background:#111}
.hb-feed__card{max-width:420px;width:100%;margin:0 auto;padding:20px}
.hb-feed__img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:16px;background:#222}
.hb-feed__info{position:absolute;bottom:60px;left:0;right:0;padding:20px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.hb-feed__title{font-size:1.1rem;font-weight:700;margin:0 0 4px}
.hb-feed__price{font-size:1.3rem;font-weight:800;color:#4ade80}
.hb-feed__nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:10000;display:flex;gap:8px}
.hb-feed__nav button{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;border:0;cursor:pointer;font-size:18px}

/* ===== Video in listing ===== */
.ad-detail__video{margin:18px 0;border-radius:14px;overflow:hidden;aspect-ratio:16/9;background:#000}
.ad-detail__video iframe{width:100%;height:100%;border:0}
.ad-detail__video video{width:100%;height:100%;object-fit:cover}


/* ===== Back to top ===== */
.back-to-top{position:fixed;bottom:20px;right:20px;z-index:9000;width:44px;height:44px;border-radius:50%;background:#1f6fb2;color:#fff;border:0;cursor:pointer;display:none;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);transition:background .2s,transform .2s}
.back-to-top:hover{background:#155896;transform:translateY(-2px)}
.back-to-top svg{width:22px;height:22px;fill:currentColor}@media (max-width: 900px){
  .back-to-top{bottom:calc(84px + env(safe-area-inset-bottom, 0px));right:14px;z-index:1700;width:40px;height:40px}
}

/* ===== Recently viewed ===== */
.recently-viewed{padding:24px 0;background: var(--surface-2);border-top:1px solid #e2e8f0}
.recently-viewed .listing-grid{grid-template-columns:repeat(4,1fr)}@media(max-width:820px){.recently-viewed .listing-grid{grid-template-columns:repeat(2,1fr)}}
/* Recently viewed — compact strip */
.recently-viewed .ad-card{flex-direction:row;align-items:stretch}
.recently-viewed .ad-card__media{width:86px;min-height:66px;aspect-ratio:auto;flex:0 0 86px}
.recently-viewed .ad-card__media img,.recently-viewed .ad-card__media .ad-card__placeholder{height:100%}
.recently-viewed .ad-card__body{padding:8px 10px;min-width:0}
.recently-viewed .ad-card__title{font-size:13px;min-height:0;line-height:1.3;-webkit-line-clamp:2}
.recently-viewed .ad-card__price{font-size:13px;font-weight:600;margin-top:3px}@media(max-width:560px){.recently-viewed .listing-grid{grid-template-columns:1fr}.recently-viewed .ad-card{display:flex;grid-template-columns:none;min-height:0}}


/* ===== Breadcrumbs schema ===== */
.breadcrumb-list{display:flex;flex-wrap:wrap;gap:4px;list-style:none;padding:0;margin:0 0 12px;font-size:.85rem}.hauptbay .seller-rating__verified { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; font-size: .68rem; font-weight: 750; color: #0e8f83; background: #dff8f4; border-radius: 20px; white-space: nowrap; }
.hb-trust-chip--vip{background:linear-gradient(135deg,#fde68a,#f59e0b);color:#78350f;box-shadow:0 0 10px rgba(245,158,11,.45)}.hb-vip-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:99px;background:linear-gradient(135deg,#fde68a,#f59e0b);color:#78350f;font-size:.72rem;font-weight:800;letter-spacing:.03em;box-shadow:0 0 12px rgba(245,158,11,.5);vertical-align:middle}.seller-card__trust{display:block;margin-top:3px;color:var(--muted,#60758a);font-size:.78rem}

/* === Google OAuth button === */
.hb-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:42px;padding:.6rem 1rem;border:1px solid #dadce0;border-radius:10px;background: var(--surface);color:#3c4043;font:inherit;font-weight:600;font-size:.95rem;text-decoration:none;cursor:pointer;transition:background .15s,box-shadow .15s}
.hb-google-btn:hover{background:#f7f8f8;box-shadow:0 1px 3px rgba(60,64,67,.15)}
.hb-google-btn svg{flex:0 0 20px;width:20px;height:20px}
.hb-or-divider{display:flex;align-items:center;gap:10px;margin:.85rem 0 .7rem;color:#8a97a8;font-size:.82rem;text-transform:lowercase}
.hb-or-divider::before,.hb-or-divider::after{content:"";flex:1;height:1px;background:#dfe6ee}
.hb-trust-chip{display:inline-flex;align-items:center;gap:4px;margin-top:6px;margin-right:6px;padding:3px 8px;border-radius:99px;background:#eaf2ff;color:#1f6fb2;font-size:.72rem;font-weight:700;white-space:nowrap}.hb-trust-chip--phone{background:#dcfce7;color:#166534}.hb-trust-chip--identity{background:#e0e7ff;color:#3730a3}.hb-trust-chip--deals{background:#fef3c7;color:#92400e}.hb-trust-chip--rating{background:#fce7f3;color:#9d174d}.seller-card__trust{display:block;margin-top:4px;color:#60758a;font-size:.82rem}
.hb-status-badge{display:inline-block;margin-left:8px;padding:3px 10px;border-radius:99px;background: var(--line);color:#334155;font-size:.75rem;font-weight:800;text-transform:uppercase;vertical-align:middle}.hb-status-badge--active{background:#dcfce7;color:#166534}.hb-status-badge--sold{background: var(--line);color:#475569}.hb-status-badge--rented{background:#dbeafe;color:#1e40af}.hb-status-badge--withdrawn{background:#fee2e2;color:#991b1b}.hb-status-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f0f9ff}.hb-status-form select{min-height:34px;padding:0 8px;border:1px solid #bfdbfe;border-radius:8px;background:#fff}.hb-status-form button{padding:6px 12px;border:0;border-radius:8px;background:#1f6fb2;color:#fff;font-weight:700;cursor:pointer}.hb-status-form__msg{font-size:.82rem;font-weight:700}

.hauptbay .hb-compare-btn{margin-top:10px;padding:6px 10px;border:1px solid #bfdbfe;border-radius:8px;background:#f0f9ff;color:#1f6fb2;font:inherit;font-size:.78rem;font-weight:800;cursor:pointer;transition:.15s}.hauptbay .hb-compare-btn:hover{background:#dbeafe}.hb-compare-btn.is-added{background:#dcfce7;border-color:#86efac;color:#166534}
.hb-compare-bar{position:fixed;bottom:0;left:0;right:0;z-index:999;display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 16px;background: var(--surface);border-top:1px solid #dbeafe;box-shadow:0 -4px 20px rgba(16,42,67,.1)}.hb-compare-bar__count{font-weight:800;color:#102a43}.hb-compare-bar__action{padding:6px 12px;border-radius:8px;background:#1f6fb2;color:#fff;font-weight:800;text-decoration:none}.hb-compare-bar__clear{padding:6px 12px;border:0;background:transparent;color:#60758a;font:inherit;cursor:pointer}
.hb-saved-search{margin-top:18px;padding-top:18px;border-top:1px dashed #dbeafe}.hb-saved-search p{margin:0 0 10px;color:#36536f;font-size:.92rem}.hb-saved-search form{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}.hb-saved-search input{min-height:42px;min-width:240px;padding:0 12px;border:1px solid #bfdbfe;border-radius:10px;font:inherit}.hb-saved-search button{padding:10px 14px;font-size:.85rem}.hb-saved-search span{font-size:.85rem;font-weight:800}
.hb-password-strength{margin-top:6px}.hb-password-strength__bar{height:8px;border-radius:99px;background: var(--line);overflow:hidden}.hb-password-strength__bar span{display:block;height:100%;width:0;transition:.2s ease;background:#ef4444}.hb-password-strength small{display:block;margin-top:4px;color:#60758a;font-size:.82rem}.hb-password-generated{display:flex;gap:8px;margin:8px 0}.hb-password-generated input{flex:1;font-family:ui-monospace,monospace}
.hb-acctype{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.72rem;font-weight:800;vertical-align:middle;margin-right:6px}
.hb-acctype--biz{background:#fef3c7;color:#92400e;border:1px solid #fde68a}
.hb-acctype--priv{background:#e0f2fe;color:#075985;border:1px solid #bae6fd}
.hb-danger-footnote{margin-top:14px;font-size:.75rem;color:#94a3b8;opacity:.75}.hb-danger-footnote a{color:#94a3b8;text-decoration:underline}.hb-danger-footnote a:hover{color:#991b1b}
#xfield_holder_forum_discuss{display:none!important}
.hb-discuss-promo{margin-top:18px}
.hb-discuss-toggle{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1.5px solid #dbeafe;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#f0fdfa);cursor:pointer;transition:150ms}
.hb-discuss-toggle:hover{border-color:#93c5fd;box-shadow:0 4px 14px rgba(59,130,246,.12)}
.hb-discuss-toggle input[type=checkbox]{width:20px;height:20px;accent-color:#1d4ed8;flex-shrink:0}
.hb-discuss-toggle__icon{font-size:1.4rem}
.hb-discuss-toggle__txt{display:flex;flex-direction:column;gap:2px}
.hb-discuss-toggle__txt b{font-size:.92rem;color:#1e3a8a}
.hb-discuss-toggle__txt small{font-size:.78rem;color:#64748b;line-height:1.35}
.hb-discuss-toggle:has(input:checked){border-color:#2563eb;background:linear-gradient(135deg,#dbeafe,#ccfbf1)}

.hb-vip-promo{padding:1.25rem 0 1.5rem}
.brands-strip{padding:40px 0}
.hauptbay-advertise{padding:0 0 56px}
.hb-vip-promo__card{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px 22px;border-radius:18px;background:linear-gradient(120deg,#78350f 0%,#b45309 45%,#f59e0b 100%);color:#fff;box-shadow:0 10px 30px rgba(180,83,9,.28);position:relative;overflow:hidden}
.hb-vip-promo__card:before{content:"";position:absolute;top:-40%;right:-5%;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.25),transparent 70%)}
.hb-vip-promo__txt b{display:block;font-size:1.08rem;margin-bottom:4px}
.hb-vip-promo__txt span{font-size:.88rem;opacity:.92;line-height:1.4;display:block;max-width:640px}
.hauptbay .hb-vip-promo__btn{flex-shrink:0;display:inline-flex;align-items:center;gap:8px;padding:11px 22px;border-radius:12px;background:#fff;color:#92400e;font-weight:800;font-size:.92rem;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .15s ease;animation:hbVipBtnGlow 2.4s ease-in-out infinite}
.hauptbay .hb-vip-promo__btn:hover{transform:translateY(-1px) scale(1.03);color:#92400e}
.hb-vip-promo__btnstar{font-style:normal;font-size:1.05rem;animation:hbVipBtnStar 2.4s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(245,158,11,.7))}@keyframes hbVipBtnGlow{0%,100%{box-shadow:0 4px 12px rgba(0,0,0,.15)}50%{box-shadow:0 4px 20px rgba(255,255,255,.55),0 0 0 4px rgba(255,255,255,.18)}}@keyframes hbVipBtnStar{0%,100%{transform:scale(1) rotate(0deg)}50%{transform:scale(1.2) rotate(18deg)}}@media(prefers-reduced-motion:reduce){.hb-vip-promo__btn,.hb-vip-promo__btnstar{animation:none}}@media(max-width:640px){.hb-vip-promo__card{flex-direction:column;align-items:flex-start}.hauptbay .hb-vip-promo__btn{width:100%;text-align:center}}

/* VIP grand-opening promo decorations (auto-removed after 2027-09-22) */
.hauptbay .hb-vip-topline{display:inline-flex;align-items:center;gap:5px;margin-left:14px;padding:3px 12px;border-radius:999px;background:linear-gradient(120deg,#f59e0b,#fbbf24);color:#451a03;font-size:.74rem;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 2px 8px rgba(245,158,11,.35);transition:transform .15s ease}
.hauptbay .hb-vip-topline:hover{transform:translateY(-1px);color:#451a03}@media(max-width:640px){.hauptbay .hb-vip-topline{margin-left:0;margin-top:6px;font-size:.7rem}}
.site-header{position:relative}
.hb-vip-stars{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.hb-vip-stars i{position:absolute;font-style:normal;color:#fbbf24;opacity:.5;text-shadow:0 0 6px rgba(251,191,36,.6);animation:hbTwinkle 3.2s ease-in-out infinite}
.hb-vip-stars i:nth-child(1){top:18%;left:6%;font-size:.8rem;animation-delay:0s}
.hb-vip-stars i:nth-child(2){top:60%;left:22%;font-size:.65rem;animation-delay:.6s}
.hb-vip-stars i:nth-child(3){top:25%;left:47%;font-size:.9rem;animation-delay:1.2s}
.hb-vip-stars i:nth-child(4){top:55%;right:28%;font-size:.7rem;animation-delay:1.8s}
.hb-vip-stars i:nth-child(5){top:20%;right:12%;font-size:.85rem;animation-delay:2.4s}
.hb-vip-stars i:nth-child(6){top:65%;right:6%;font-size:.6rem;animation-delay:3s}@keyframes hbTwinkle{0%,100%{opacity:.15;transform:scale(.7) rotate(0deg)}50%{opacity:.85;transform:scale(1.15) rotate(15deg)}}
.hb-vip-promo__spark{position:absolute;font-style:normal;color:#fde68a;text-shadow:0 0 10px rgba(253,230,138,.8);animation:hbTwinkle 2.8s ease-in-out infinite;pointer-events:none}
.hb-vip-promo__spark.s1{top:12px;left:14px;font-size:1.1rem}
.hb-vip-promo__spark.s2{top:50%;left:38%;font-size:.8rem;animation-delay:.9s}
.hb-vip-promo__spark.s3{bottom:14px;right:26%;font-size:1rem;animation-delay:1.7s}@media(prefers-reduced-motion:reduce){.hb-vip-stars i,.hb-vip-promo__spark{animation:none}}

.footer-brand__founded{font-size:.78rem;opacity:.65;margin-top:6px}
.footer-tg{display:flex;align-items:center;gap:10px;margin-top:12px;padding:8px 10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:10px;text-decoration:none;color:inherit;font-size:.82rem;transition:background .2s}
.footer-tg:hover{background:rgba(255,255,255,.15)}
.footer-tg img{border-radius:6px;flex-shrink:0}
.footer-tg b{color:#2aabee}
.share-qr{display:flex;align-items:center;gap:14px;margin-top:14px;padding-top:14px;border-top:1px dashed #e2e8f0}
.share-qr__img{width:92px;height:92px;flex-shrink:0}
.share-qr__img svg{width:100%;height:100%;border-radius:8px;display:block}
.share-qr__txt{font-size:.8rem;color:#64748b;line-height:1.45}
/* Compact "all services" footer block */
/* Services strip above footer (light, sitemap-style) */
.footer-services{padding:26px 0 22px;background:#f1f5f9;border-top:1px solid #e2e8f0}
.footer-services .footer-more__title{margin:0 0 8px;font-size:.78rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#64748b}
.footer-services .footer-more__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:2px 24px}
.footer-services .footer-more__grid a{font-size:.82rem;color:#475569;text-decoration:none;padding:4px 0;display:block}
.footer-services .footer-more__grid a:hover{color:#0f172a;text-decoration:underline}
/* tighter footer typography */
.footer-grid a{font-size:.85rem}
.footer-grid h3{font-size:.8rem;text-transform:uppercase}

/* Cheaper-similar cards (fullstory.tpl + hb_cheaper.php) */
.hb-cheaper-card{display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;text-decoration:none;color:#0f172a;transition:box-shadow .2s,border-color .2s}
.hb-cheaper-card:hover{border-color:#2563eb;box-shadow:0 6px 20px rgba(37,99,235,.12)}
.hb-cheaper-card b{font-size:.92rem;font-weight:700;line-height:1.3}
.hb-cheaper-card span{color:#166534;font-weight:800;font-size:.95rem}
.hb-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:.72rem;font-weight:700;vertical-align:middle}

/* ── Safe video embeds (youtube/vimeo whitelist) ── */
.hb-video-frame{position:relative;aspect-ratio:16/9;background:#0f172a;border-radius:14px;overflow:hidden;margin:18px 0;box-shadow:0 4px 18px rgba(15,23,42,.18)}
.hb-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hb-video-frame .hb-video-link{display:flex;align-items:center;justify-content:center;height:100%;padding:20px;color:#e2e8f0;font-size:.95rem;word-break:break-all;text-decoration:underline}

#xfield_holder_job_source,#xfield_holder_job_url,#xfield_holder_job_ref,#xfield_holder_job_company{display:none!important}

#xfield_holder_event_source,#xfield_holder_event_url,#xfield_holder_event_ref,#xfield_holder_event_date,#xfield_holder_event_time,#xfield_holder_ext_url{display:none!important}

/* ===== Dark theme: component fixes ===== */
[data-theme="dark"]{--bay-teal-strong:#2dd4bf}
[data-theme="dark"] .hb-howto{background:var(--surface-2)}
[data-theme="dark"] .hb-howto__step{border-color:var(--line)}
[data-theme="dark"] .hb-howto__step h3{color:var(--ink)}
[data-theme="dark"] .hb-howto__step p{color:var(--muted)}
[data-theme="dark"] .hauptbay .hb-city-card{border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .hauptbay .hb-city-card:hover{border-color:var(--brand);background:var(--surface-3);color:var(--brand-strong);box-shadow:0 4px 10px rgba(0,0,0,.3)}
[data-theme="dark"] .hb-services{border-bottom-color:var(--line)}
[data-theme="dark"] .safety-card{color:#fbbf24;border-color:var(--line-strong);background:rgba(251,146,60,.10)}
[data-theme="dark"] .safety-card h3{color:#fde68a}
[data-theme="dark"] .safety-card p{color:var(--muted)}
[data-theme="dark"] .hauptbay .filter-head{border-bottom-color:var(--line)}
[data-theme="dark"] .hauptbay .share-card{border-color:var(--line)}
[data-theme="dark"] .hb-status-badge{color:var(--ink)}
[data-theme="dark"] .hb-status-badge--active{background:#14532d;color:#86efac}
[data-theme="dark"] .hb-status-badge--sold{background:var(--surface-3);color:var(--muted)}
[data-theme="dark"] .hb-status-badge--rented{background:#1e3a8a;color:#93c5fd}
[data-theme="dark"] .hb-status-badge--withdrawn{background:#7f1d1d;color:#fca5a5}
[data-theme="dark"] .hb-status-form{border-color:var(--line);background:var(--surface-3)}
[data-theme="dark"] .hb-status-form select{border-color:var(--line-strong);background:var(--surface-2);color:var(--ink)}
[data-theme="dark"] .hb-cheaper-card{border-color:var(--line);background:var(--surface);color:var(--ink)}
[data-theme="dark"] .hauptbay .legal-contact-card{background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .hauptbay .legal-note--warning{background:rgba(255,107,74,.10);color:#fdba74}
[data-theme="dark"] .hauptbay .legal-table-wrap table{background:var(--surface)}
[data-theme="dark"] .hauptbay .legal-table-wrap th{background:var(--surface-3);color:var(--ink)}
[data-theme="dark"] .hauptbay .legal-table-wrap td{color:var(--muted)}
[data-theme="dark"] .hauptbay .legal-translation summary{background:var(--surface-3);color:var(--ink)}
[data-theme="dark"] .hauptbay .legal-checklist li{background:var(--surface-3);color:var(--ink)}
[data-theme="dark"] .hauptbay .category-card--teal .category-card__icon{background:rgba(19,184,166,.20)}
[data-theme="dark"] .hauptbay .category-card--rose .category-card__icon{background:rgba(190,24,93,.25)}
[data-theme="dark"] .hauptbay .category-card--lime .category-card__icon{color:#a3e635;background:rgba(101,163,13,.25)}
[data-theme="dark"] .hauptbay .category-card--pink .category-card__icon{background:rgba(217,81,50,.25)}
[data-theme="dark"] .hauptbay .cookie-banner__icon{background:rgba(19,184,166,.20)}
[data-theme="dark"] .info,[data-theme="dark"] .berrors,[data-theme="dark"] .information{color:#fbbf24;border-color:var(--line-strong);background:rgba(251,146,60,.10)}
[data-theme="dark"] .ad-detail__meta a{color:var(--brand-strong)}
[data-theme="dark"] .hauptbay .seller-rating__score span{color:var(--muted)}
[data-theme="dark"] .hauptbay .seller-rating__bar{color:var(--muted)}
[data-theme="dark"] .hauptbay .seller-rating__empty{color:var(--muted)}
[data-theme="dark"] .hauptbay .seller-rating__review{border-bottom-color:var(--line)}
[data-theme="dark"] .hauptbay .seller-rating__review-head b{color:var(--ink)}
[data-theme="dark"] .hauptbay .seller-rating__review-head small{color:var(--muted-2)}
[data-theme="dark"] .hauptbay .ad-card__meta{border-top-color:var(--line);color:var(--muted)}
[data-theme="dark"] .hauptbay .ad-card__location{color:var(--muted)}
[data-theme="dark"] .hauptbay .ad-card__location svg{color:var(--muted-2)}
[data-theme="dark"] .hauptbay .ad-card:hover{border-color:var(--brand)}
[data-theme="dark"] .hauptbay .ad-card__badge{background:rgba(15,20,32,.9)}
[data-theme="dark"] .hauptbay .cookie-banner{border-color:var(--line-strong);background:rgba(22,27,40,.97);box-shadow:0 22px 65px rgba(0,0,0,.5)}
[data-theme="dark"] .hauptbay .cookie-banner__copy{color:var(--muted)}
[data-theme="dark"] .hauptbay .cookie-banner__copy b{color:var(--ink)}
[data-theme="dark"] .navigation a{border-color:var(--line);background:var(--surface);color:var(--ink)}
[data-theme="dark"] .hauptbay .desktop-nav a{color:var(--muted)}
[data-theme="dark"] .hauptbay .desktop-nav a:hover{color:var(--brand-strong)}
[data-theme="dark"] .hauptbay .auth-fields label{color:var(--muted)}
[data-theme="dark"] .hauptbay .content-card--page li{color:var(--muted)}
[data-theme="dark"] .hauptbay .legal-toc{border-color:var(--line)}
[data-theme="dark"] .hauptbay .legal-toc strong{color:var(--ink)}
[data-theme="dark"] .hauptbay .legal-toc a{color:var(--muted)}
[data-theme="dark"] .hauptbay .legal-toc a:hover{background:var(--surface-3);color:#5eead4}
[data-theme="dark"] .hauptbay .legal-section{border-color:var(--line)}
[data-theme="dark"] .hauptbay .legal-section h2,[data-theme="dark"] .hauptbay .legal-section h3{color:var(--ink)}
[data-theme="dark"] .hauptbay .legal-section p,[data-theme="dark"] .hauptbay .legal-section li{color:var(--muted)}
[data-theme="dark"] .hauptbay .legal-page .safety-card>span{background:var(--surface-3)}
[data-theme="dark"] .hauptbay .ad-card__summary{color:var(--muted)}
[data-theme="dark"] .hauptbay .category-card--cyan .category-card__icon{color:#67e8f9;background:rgba(14,116,144,.30)}
[data-theme="dark"] .hauptbay .category-card--slate .category-card__icon{color:#cbd5e1}
[data-theme="dark"] .hauptbay .category-card--orange .category-card__icon,[data-theme="dark"] .hauptbay .category-card--amber .category-card__icon{color:#fdba74;background:rgba(217,119,50,.22)}
[data-theme="dark"] .hauptbay .category-card--emerald .category-card__icon{background:rgba(19,184,166,.20)}
[data-theme="dark"] .hauptbay .button--soft,[data-theme="dark"] .hauptbay .btn-border{background:var(--surface-3)}
[data-theme="dark"] .hauptbay .content-card--page p{color:var(--muted)}

/* ===== Pagination cleanup ===== */
.navigation .nav_ext{border:0!important;background:none!important;box-shadow:none!important;color:var(--muted);height:auto;min-width:0;width:auto;display:inline-flex;align-items:center;justify-content:center;padding:0 6px;text-indent:0!important;font-weight:700}
.page_next-prev{display:flex;gap:10px;justify-content:center;margin-bottom:12px;float:none;height:auto}
.navigation .page_prev a,.navigation .page_next a{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0;border-radius:12px}
.navigation .page_prev a:hover,.navigation .page_next a:hover{border-color:var(--brand);color:var(--brand)}
.navigation .page_prev>span,.navigation .page_next>span{opacity:.35}
.navigation .pages{display:flex;flex-wrap:wrap;justify-content:center;gap:3px}
/* Kapnula — extracted inline styles (auto-generated) */
.hbx000 { color:var(--brand) !important; }
.hbx001 { color:var(--muted) !important; }
.hbx002 { font-size:.82rem !important; }
.hbx003 { color:var(--danger) !important; }
.hbx004 { margin-bottom:16px !important; }
.hbx005 { font-size:.82rem !important; color:var(--muted) !important; }
.hbx006 { margin-top:10px !important; }
.hbx007 { font-size:2.4rem !important; margin-bottom:10px !important; }
.hbx008 { margin-top:0 !important; }
.hbx009 { margin-top:14px !important; }
.hbx010 { color:var(--brand) !important; text-decoration:none !important; }
.hbx011 { color:var(--muted-2) !important; }
.hbx012 { color:var(--warning) !important; }
.hbx013 { margin-top:18px !important; }
.hbx014 { text-align:center !important; }
.hbx015 { text-align:center !important; color:var(--muted) !important; }
.hbx016 { background:var(--brand-soft) !important; color:var(--brand-strong) !important; }
.hbx017 { background:var(--tint-success) !important; color:var(--success) !important; }
.hbx018 { font-size:.85rem !important; }
.hbx019 { text-align:right !important; }
.hbx020 { font-weight:700 !important; margin-bottom:10px !important; }
.hbx021 { margin-top:24px !important; }
.hbx022 { margin-top:30px !important; text-align:center !important; }
.hbx023 { margin-top:8px !important; }
.hbx024 { background:linear-gradient(135deg,var(--brand-soft),var(--brand)) !important; color:var(--brand-strong) !important; }
.hbx025 { background:var(--tint-danger) !important; color:var(--danger) !important; }
.hbx026 { background:var(--tint-success) !important; border-color:var(--success) !important; }
.hbx027 { background:var(--tint-warning) !important; }
.hbx028 { background:var(--tint-warning) !important; color:var(--warning) !important; }
.hbx029 { border-color:var(--brand-soft) !important; background:var(--brand-soft) !important; }
.hbx030 { color:inherit !important; }
.hbx031 { color:var(--brand) !important; font-weight:600 !important; }
.hbx032 { color:var(--ink) !important; }
.hbx033 { color:var(--muted-2) !important; font-size:.88rem !important; }
.hbx034 { color:var(--muted-2) !important; font-weight:600 !important; font-size:.8rem !important; }
.hbx035 { color:var(--success) !important; }
.hbx036 { cursor:pointer !important; font-weight:600 !important; font-size:.88rem !important; }
.hbx037 { font-size:.75rem !important; }
.hbx038 { font-size:.78rem !important; }
.hbx039 { font-size:.78rem !important; margin-top:8px !important; }
.hbx040 { font-size:1.4rem !important; }
.hbx041 { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
.hbx042 { justify-content:space-between !important; }
.hbx043 { margin-bottom:14px !important; }
.hbx044 { margin-top:6px !important; }
.hbx045 { margin-top:8px !important; font-size:.8rem !important; }
.hbx046 { white-space:nowrap !important; }
.hbx047 { --stat-color:var(--danger) !important; }
.hbx048 { background:linear-gradient(135deg,var(--brand-soft),var(--brand)) !important; color:var(--brand) !important; }
.hbx049 { background:linear-gradient(135deg,var(--tint-warning),var(--warning)) !important; color:var(--warning) !important; }
.hbx050 { background:none !important; border:none !important; color:var(--success) !important; cursor:pointer !important; font-size:.8rem !important; }
.hbx051 { background:var(--brand) !important; }
.hbx052 { background:var(--danger) !important; }
.hbx053 { background:var(--danger) !important; color:var(--surface) !important; }
.hbx054 { background:var(--success) !important; }
.hbx055 { background:var(--tint-danger) !important; color:var(--danger) !important; border-color:var(--danger) !important; }
.hbx056 { background:var(--tint-info) !important; color:var(--brand) !important; }
.hbx057 { background:var(--tint-success) !important; border-color:var(--tint-success) !important; }
.hbx058 { background:var(--tint-success) !important; color:var(--success) !important; margin-left:1rem !important; }
.hbx059 { background:var(--tint-warning) !important; color:var(--danger) !important; }
.hbx060 { background:var(--warning) !important; color:var(--surface) !important; }
.hbx061 { background:var(--warning) !important; color:var(--surface) !important; border-color:var(--warning) !important; }
.hbx062 { border-collapse:collapse !important; font-size:.93rem !important; }
.hbx063 { border-color:var(--danger) !important; background:var(--tint-danger) !important; }
.hbx064 { border-color:var(--warning) !important; background:var(--tint-warn) !important; }
.hbx065 { border-color:var(--warning) !important; background:var(--tint-warning) !important; }
.hbx066 { border-top:1px solid var(--line) !important; margin-top:12px !important; padding-top:16px !important; }
.hbx067 { border:2px solid var(--tint-success) !important; background:var(--tint-ok) !important; }
.hbx068 { color: var(--success) !important; }
.hbx069 { color:inherit !important; text-decoration:none !important; }
.hbx070 { color:rgba(255,255,255,.85) !important; font-size:.82rem !important; }
.hbx071 { color:var(--brand) !important; font-weight:700 !important; }
.hbx072 { color:var(--danger) !important; margin-top:8px !important; border-top:1px solid var(--line) !important; padding-top:12px !important; }
.hbx073 { color:var(--muted) !important; font-size:.82rem !important; margin-top:2px !important; }
.hbx074 { color:var(--muted) !important; font-size:.85rem !important; }
.hbx075 { color:var(--muted) !important; font-size:.92rem !important; line-height:1.7 !important; }
.hbx076 { color:var(--muted) !important; font-size:.9rem !important; }
.hbx077 { color:var(--muted) !important; margin-top:-6px !important; }
.hbx078 { color:var(--muted-2) !important; font-weight:600 !important; }
.hbx079 { color:var(--warning) !important; font-size:1rem !important; }
.hbx080 { color:var(--warning) !important; font-weight:700 !important; }
.hbx081 { color:var(--warning) !important; font-weight:800 !important; }
.hbx082 { color:var(--warning) !important; text-decoration:none !important; font-weight:600 !important; }
.hbx083 { cursor:pointer !important; font-size:.8rem !important; color:var(--muted-2) !important; font-weight:600 !important; list-style:none !important; }
.hbx084 { float: right !important; }
.hbx085 { font-size:.68rem !important; }
.hbx086 { font-size:.72rem !important; color:var(--muted-2) !important; margin-top:4px !important; }
.hbx087 { font-size:.72rem !important; color:var(--muted-2) !important; margin-top:6px !important; }
.hbx088 { font-size:.74rem !important; color:var(--muted-2) !important; margin-top:6px !important; }
.hbx089 { font-size:.78rem !important; color:var(--brand) !important; margin-top:4px !important; }
.hbx090 { font-size:.78rem !important; color:var(--muted) !important; margin-top:3px !important; }
.hbx091 { font-size:.78rem !important; color:var(--muted-2) !important; font-weight:700 !important; }
.hbx092 { font-size:.78rem !important; color:var(--muted-2) !important; margin-left:8px !important; }
.hbx093 { font-size:.78rem !important; font-weight:800 !important; color:var(--muted) !important; margin-bottom:6px !important; }
.hbx094 { font-size:.82rem !important; color:var(--muted) !important; margin-right:6px !important; }
.hbx095 { font-size:.82rem !important; color:var(--muted) !important; margin-top:0 !important; }
.hbx096 { font-size:.84rem !important; color:var(--muted) !important; margin-top:6px !important; }
.hbx097 { font-size:.85rem !important; color:var(--muted) !important; }
.hbx098 { font-size:.85rem !important; color:var(--muted) !important; margin-top:0 !important; }
.hbx099 { font-size:.85rem !important; color:var(--muted) !important; margin-top:14px !important; }
.hbx100 { font-size:.85rem !important; color:var(--muted-2) !important; }
.hbx101 { font-size:.85rem !important; font-weight:600 !important; color:var(--ink) !important; }
.hbx102 { font-size:.86rem !important; color:var(--muted) !important; }
.hbx103 { font-size:.8rem !important; color:var(--muted) !important; }
.hbx104 { font-size:.8rem !important; color:var(--muted-2) !important; }
.hbx105 { font-size:.8rem !important; color:var(--muted-2) !important; margin-top:24px !important; }
.hbx106 { font-size:.8rem !important; color:var(--warning) !important; margin-top:10px !important; }
.hbx107 { font-size:.9rem !important; line-height:1.55 !important; color:var(--ink) !important; white-space:pre-wrap !important; }
.hbx108 { font-size:1.15rem !important; font-weight:700 !important; }
.hbx109 { font-size:1.1rem !important; }
.hbx110 { font-size:1.2rem !important; color:var(--brand) !important; }
.hbx111 { font-size:1.5rem !important; }
.hbx112 { font-size:1.5rem !important; margin-bottom:2px !important; }
.hbx113 { font-size:1.6rem !important; }
.hbx114 { font-size:1.8rem !important; font-weight:800 !important; color:var(--ink) !important; }
.hbx115 { font-size:2.6rem !important; }
.hbx116 { font-size:3.4rem !important; }
.hbx117 { font-weight:500 !important; color:var(--muted) !important; }
.hbx118 { font-weight:500 !important; font-size:.88rem !important; }
.hbx119 { font-weight:600 !important; }
.hbx120 { font-weight:700 !important; color:var(--muted) !important; }
.hbx121 { font-weight:700 !important; color:var(--warning) !important; }
.hbx122 { font-weight:700 !important; margin-top:6px !important; }
.hbx123 { font-weight:800 !important; }
.hbx124 { font-weight:800 !important; color:var(--ink) !important; }
.hbx125 { font-weight:900 !important; background:linear-gradient(90deg,rgba(0,102,204,.12),rgba(0,102,204,.04)) !important; border-left-color:var(--brand) !important; }
.hbx126 { list-style:none !important; }
.hbx127 { margin-bottom:10px !important; }
.hbx128 { margin-bottom:14px !important; border-left:4px solid var(--brand) !important; }
.hbx129 { margin-bottom:14px !important; border-left:4px solid var(--danger) !important; }
.hbx130 { margin-bottom:1rem !important; }
.hbx131 { margin-bottom:20px !important; font-size:.9rem !important; color:var(--muted-2) !important; }
.hbx132 { margin-left:8px !important; }
.hbx133 { margin-left:auto !important; font-weight:800 !important; }
.hbx134 { margin-top: 0 !important; }
.hbx135 { margin-top:10px !important; color:var(--muted) !important; font-size:.8rem !important; }
.hbx136 { margin-top:10px !important; font-size:.85rem !important; }
.hbx137 { margin-top:10px !important; font-size:1rem !important; }
.hbx138 { margin-top:14px !important; border-top:1px solid var(--line) !important; padding-top:12px !important; }
.hbx139 { margin-top:14px !important; font-size:.85rem !important; }
.hbx140 { margin-top:14px !important; font-size:.85rem !important; color:var(--warning) !important; }
.hbx141 { margin-top:16px !important; border-top:1px solid var(--surface-2) !important; padding-top:16px !important; }
.hbx142 { margin-top:16px !important; line-height:1.6 !important; }
.hbx143 { margin-top:1rem !important; }
.hbx144 { margin-top:20px !important; }
.hbx145 { margin-top:20px !important; }
.hbx146 { margin-top:20px !important; color:var(--muted) !important; }
.hbx147 { margin-top:22px !important; }
.hbx148 { margin-top:24px !important; color:var(--muted) !important; }
.hbx149 { margin-top:28px !important; padding-top:20px !important; border-top:2px solid var(--line) !important; }
.hbx150 { margin-top:30px !important; color:var(--muted-2) !important; font-size:.8rem !important; }
.hbx151 { margin-top:34px !important; }
.hbx152 { margin-top:36px !important; }
.hbx153 { margin-top:3px !important; }
.hbx154 { margin-top:3px !important; flex-shrink:0 !important; }
.hbx155 { margin-top:6px !important; font-size:.85rem !important; }
.hbx156 { margin-top:8px !important; font-size:.85rem !important; }
.hbx157 { margin-top:8px !important; font-size:.88rem !important; color:var(--warning) !important; line-height:1.6 !important; }
.hbx158 { overflow-x:auto !important; }
.hbx159 { text-align:center !important; color:var(--muted) !important; font-style:italic !important; }
.hbx160 { white-space:pre-wrap !important; }
.hbx161 { white-space:pre-wrap !important; color:var(--muted) !important; }
.hbx162 { word-break:break-all !important; }


/* ══════════ DLE component reskin — unified design system ══════════ */

/* ── Generic cards: .box / .box_in / .story ── */
.box, .com_list div.comment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.box > .heading {
  padding: 1.1rem 1.25rem;
  margin: 0;
  text-transform: none;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.box > .heading .hnum { font-size: .7em; color: var(--muted-2); margin-left: .5em; }
.box_in { padding: 1.25rem; }
.story .box_in > .text { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.story .box_in > .text:after { content:""; display:block; clear:both; }
.story .box_in > .text > img[style*="left"], .story .box_in > .text > .highslide img[style*="left"] { margin: 4px 1rem 1rem 0; border-radius: var(--radius-sm); }
.story .box_in > .text > img[style*="right"], .story .box_in > .text > .highslide img[style*="right"] { margin: 4px 0 1rem 1rem; border-radius: var(--radius-sm); }
.story .box_in > .text img { max-width:100%; height:auto; border-radius: var(--radius-sm); }

/* ── Alerts: .berrors ── */
.berrors {
  background: var(--tint-warn, #fffbeb);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  color: var(--ink);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
}
.berrors a { color: var(--brand); text-decoration: underline; }

/* ── Buttons (legacy .btn/.bbcodes/.btn-border) ── */
.btn, .bbcodes, .btn-border {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px;
  padding: .5em 1.2em;
  border: 0 none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-shadow: none;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 22%, transparent);
  text-decoration: none !important;
  cursor: pointer;
  transition: all var(--transition);
}
.btn:hover, .bbcodes:hover, .btn-border:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}
.bbcodes.cancelchanges { background: var(--muted-2); }
.bbcodes.cancelchanges:hover { background: var(--muted); }

/* ── Forms: ui-form / form-group / combo ── */
ul.ui-form { list-style:none; padding:0; margin:0; }
ul.ui-form > li { margin-bottom: 1rem; }
ul.ui-form > li:last-child { margin-bottom: 0; }
.form-group { margin-bottom: 1rem; }
.form-group > label { display:block; margin-bottom:.45em; font-weight:600; color:var(--ink); font-size:.92rem; }
.form-group.combo:after { content:""; display:table; clear:both; }
.form-group.combo > .combo_field { width:50%; float:left; box-sizing:border-box; }
.form-group.combo > .combo_field:last-child { padding-left:.5rem; }
.form-group.combo > .combo_field:first-child { padding-right:.5rem; }
@media (max-width:520px){ .form-group.combo > .combo_field{ width:100%; float:none; padding:0!important; } }

.wide, .bb-editor textarea, .ui-dialog textarea, select#category, .timezoneselect, .twofactorselect, .quick-edit-text { width:100%!important; }
.ui-form input[type=text], .ui-form input[type=email], .ui-form input[type=password],
.ui-form input[type=number], .ui-form input[type=url], .ui-form input[type=tel],
.ui-form textarea, .ui-form select,
.form-group input[type=text], .form-group input[type=email], .form-group input[type=password],
.form-group input[type=url], .form-group input[type=tel],
.form-group textarea, .form-group select,
input.wide, textarea.wide, select.wide {
  width:100%; box-sizing:border-box;
  padding:.8em 1em;
  border:1.5px solid var(--line-strong);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  transition:border-color var(--transition), box-shadow var(--transition);
}
.ui-form input:focus, .ui-form textarea:focus, .ui-form select:focus,
.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
input.wide:focus, textarea.wide:focus, select.wide:focus {
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
[data-theme="dark"] .ui-form input, [data-theme="dark"] .ui-form textarea, [data-theme="dark"] .ui-form select,
[data-theme="dark"] .form-group input, [data-theme="dark"] .form-group textarea, [data-theme="dark"] .form-group select,
[data-theme="dark"] input.wide, [data-theme="dark"] textarea.wide {
  background: var(--surface-3); border-color: var(--line); color: var(--ink);
}

/* ── Comments ── */
#dle-comments-list { width:100%; overflow:hidden; }
.comments-tree-list { list-style:none; padding:0; margin:0; }
#dle-comments-list .comments-tree-list > li > .comments-tree-list { padding-left: 2rem; }
#dle-comments-list .comments-tree-list > li .comments-tree-list > li { padding-left: 1.25rem; }
.com_list div.comment {
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.comments-tree-list > li > ol > li .comment { padding: 1rem 0; border:0; box-shadow:none; }
.comments-tree-list li ol li .comment { border:0; box-shadow:none; }
.comments-tree-list > li > ol > li .comment:after { display:none; }
.comments-tree-list > li > ol > li .comment:before { display:none; }
.comment .avatar { float:left; margin-right:.9rem; position:relative; }
.avatar { display:inline-block; }
.avatar .cover {
  width:4rem; height:4rem; border-radius:50%;
  white-space:nowrap; text-indent:-9999px; display:inline-block;
  background-color: var(--surface-3);
}
.comment .avatar .cover { width:2.75rem; height:2.75rem; }
.cover { background-position:50% 50%; background-repeat:no-repeat; background-size:cover; }
.com_online {
  position:absolute; left:100%; top:50%; margin:-.25rem 0 0 -.4rem;
  width:.55rem; height:.55rem; overflow:hidden; text-indent:-9999px;
  background: var(--success); border:2px solid var(--surface); border-radius:50%;
}
.com_info { margin-bottom:.5rem; }
.com_info:after { content:""; display:block; clear:both; }
.com_user { float:left; margin:.35rem .9rem 0 0; }
.com_user .name { color:var(--ink); font-weight:700; }
.comment .meta { display:inline; }
.comment .meta .left { margin-top:.35rem; }
.comment .meta > ul.left > li { margin-right:.6em; }
.comment .meta .left a {
  display:inline-block; width:1.5em; height:1.5em; vertical-align:middle;
  padding:.15em; box-sizing:border-box;
}
.comment .meta .left .reply a { width:auto; vertical-align:baseline; }
.comment .meta .left .icon { fill:var(--muted); margin:0; }
.comment .meta .left a:hover .icon { fill:var(--brand); }
.comment .meta .left a .icon-reply, .comment .meta .left a .icon-coms { fill:var(--brand)!important; margin-right:.35em; }
.comment .icon-bad { width:1.1em; height:1.1em; }
.comment .icon-cross { width:.85em; height:.85em; }
.comment .meta .rate { float:right; }
.mass_comments_action { text-align:right; border-top:1px solid var(--line); padding:.9rem 0 0; }
.mass_comments_action > select { margin-left:.75em; }
.com_content > .title { margin-top:.9rem; }
.com_content > .text { font-size:1rem; color:var(--ink); }
.comments-user-profile { font-weight:700; cursor:pointer; color:var(--brand); }
input[type="text"].comments_author_field { width:100%; margin-bottom:.7em; }

/* ── Rating ── */
.story_tools > .rate { float:left; }
.story_tools .rate_stars { margin-top:.4em; }
.rate_like > a, .rate_like-dislike {
  float:left;
  display:inline-flex; align-items:center; gap:.35em;
  padding:.42em .85em;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:var(--surface);
  font-weight:700;
  color:var(--muted);
  text-decoration:none!important;
  transition:all var(--transition);
}
.rate_like > a:hover { border-color:var(--brand); color:var(--brand); }
.rate_like .icon { width:1.05em; height:1em; }
.rate_like-dislike > a { display:inline-flex; width:1.6em; height:1.6em; text-align:center; align-items:center; justify-content:center; }
.rate_like-dislike > a .icon { width:.95em; height:1em; fill:var(--muted-2); }
.rate_like-dislike > a:hover .icon { fill:var(--brand); }
.rate_like-dislike .ratingplus { color:var(--success); }
.rate_like-dislike .ratingminus { color:var(--danger); }
.rate_like-dislike > span { margin:0 .3em; }

/* ── Quote / spoiler ── */
.title_quote, .title_spoiler, .text_spoiler, .quote, blockquote {
  padding:.8rem 1rem;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
}
.title_quote { border-left:3px solid var(--brand); font-weight:700; margin-top:4px; border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.quote, blockquote { border-left:3px solid var(--brand); }
.title_spoiler {
  margin-top:4px; font-weight:600; cursor:pointer;
  background:var(--brand-soft); color:var(--brand-strong); border-color:var(--brand-soft);
}
.title_spoiler img, .title_spoiler svg { vertical-align:middle; margin:-2px .5em 0 0; width:1.1em; height:1.1em; }
.text_spoiler { margin-bottom:4px; border-top:0; display:none; }

/* ── Poll / vote ── */
.voteprogress, .pollprogress {
  height:8px; overflow:hidden; margin:.5rem 0 .9rem;
  background:var(--surface-3); border-radius:999px;
}
.voteprogress span, .pollprogress span {
  display:block; height:8px; text-indent:-9999px; overflow:hidden;
  background:var(--brand); border-radius:999px;
}
.voteprogress .vote2, .pollprogress .poll2 { background:var(--danger); }
.voteprogress .vote3, .pollprogress .poll3 { background:var(--success); }
.voteprogress .vote4, .pollprogress .poll4 { background:var(--warning); }
.voteprogress .vote5, .pollprogress .poll5 { background:var(--accent); }
.vote_list { margin:1.25rem 0; }
.vote_list .vote, .vote_list .pollanswer { margin:.6em 0 .3em; }
.vote_list .vote > input, .vote_list .pollanswer > input { display:none; }
.vote_list .vote > input + label:before, .vote_list .pollanswer > input + label:before {
  content:""; display:inline-block; width:10px; height:10px;
  border:3px solid var(--line-strong); background:var(--surface);
  margin:-2px .55em 0 0; vertical-align:middle; cursor:pointer; border-radius:4px;
  transition:all var(--transition);
}
.vote_list .vote > input[type=radio] + label:before, .vote_list .pollanswer > input[type=radio] + label:before { border-radius:50%; }
.vote_list .vote > input + label:hover:before, .vote_list .pollanswer > input + label:hover:before { border-color:var(--brand); }
.vote_list .vote > input:checked + label:before, .vote_list .pollanswer > input:checked + label:before { background:var(--brand); border-color:var(--brand); }
.vote_more { font-size:.9em; margin:-.5em 0 1em; }
.vote_votes, .pollallvotes { font-size:.9em; color:var(--muted); }
.btn-border .icon-votes { width:1.1em; height:1em; vertical-align:middle; }
#dlevotespopupcontent { height:auto!important; overflow:visible!important; }

/* ── PM (private messages) ── */
.pm-box { margin-bottom:1.25rem; }
#pm-menu { margin-bottom:1.25rem; }
#pm-menu:after { content:""; clear:both; display:block; }
#pm-menu a {
  display:inline-block; float:left;
  color:var(--muted); padding:.6rem 1.1rem;
  border-radius:999px; border:2px solid transparent;
  text-decoration:none!important; font-weight:600;
  transition:all var(--transition);
}
#pm-menu a:hover, #pm-menu a.active { border-color:var(--brand); color:var(--brand); }
.pm_status { padding:1rem 1.25rem; background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-sm); }
.pm_progress_bar { background:var(--surface-3); margin-bottom:.7rem; border-radius:999px; overflow:hidden; }
.pm_progress_bar span { display:block; height:8px; font-size:0; background:var(--brand); border-radius:999px; }
table.pm, table.userstop { width:100%; margin-bottom:0; border-collapse:collapse; }
.userstop td, .pm td.pm_list, .pm th.pm_head { border-bottom:1px solid var(--line); padding:.9em .7em; }
.userstop thead td, .pm td.pm_head, .pm th {
  border-bottom:2px solid var(--line-strong); font-weight:700; color:var(--ink);
  text-align:left; white-space:nowrap;
}
.pm th.pm_checkbox { text-align:center; }
table.pm select { width:13em; }
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor:pointer; }
.pm_list.pm_icon svg { width:1.4em; height:1.4em; vertical-align:middle; }
.pm_list.pm_icon.pm-unread-image { color:var(--brand); }
.pm_list.pm_icon.pm-reply-image { color:var(--success); }
.pm_list.pm_icon.pm-read-image { color:var(--muted-2); }
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon { border-bottom:none; }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user { color:var(--muted); font-size:.85em; }
.pm tbody > tr:hover { background:var(--surface-2); }
.pm_navigation { margin-top:1rem; }
.pm_navigation .navigation { display:inline-flex; gap:.35rem; background:transparent; padding:0; }
.pm_navigation .navigation a, .pm_navigation .navigation span {
  min-width:2.4rem; padding:.55em .7em; text-align:center;
  border-radius:var(--radius-sm); border:1px solid var(--line);
  background:var(--surface); color:var(--ink); text-decoration:none;
}
.pm_navigation .navigation span { background:var(--brand); color:#fff; border-color:var(--brand); }
.pm_navigation .navigation a:hover { border-color:var(--brand); color:var(--brand); }
.pm_num {
  font-size:.7em; background:var(--danger); color:#fff;
  border-radius:999px; min-width:1.4em; height:1.4em; line-height:1.4em;
  padding:0 .35em; text-align:center; vertical-align:middle; display:inline-block;
}
.login_pane__info .avatar { margin:.8em 0; }

/* ── Add-comment form / editors ── */
.addcomment { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.addcomment .plus_icon { display:none; }
.addcomment .box_in { padding:1.25rem; }
.addcomment h3 { margin:0 0 .9rem; color:var(--ink); }
#comment-editor .bb-editor textarea { padding:.8em; padding-bottom:45px; min-height:180px; }
.addpm #comment-editor .bb-editor textarea { min-height:300px; }
.bb-editor textarea {
  box-sizing:border-box; padding:.8em;
  border:1.5px solid var(--line-strong); border-radius:var(--radius-sm);
  background:var(--surface); color:var(--ink);
  width:100%; box-shadow:none; transition:border-color var(--transition);
}
.bb-editor textarea:focus { border-color:var(--brand)!important; outline:none; box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent); }
.wseditor { border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--line-strong); }
.wseditor .tox-tinymce { border:none; }
#dlefastreplycomments .wseditor { margin-bottom:.6rem; }
.dlecomments-editor .tox .tox-toolbar__primary, .dlefastedit-editor .tox .tox-toolbar__primary { border-top:0; box-shadow:none; }
.mobilewseditor .tox:not(.tox-tinymce-inline) .tox-editor-header { border-bottom:1px solid var(--line); }
.dlepopupnewsedit .wseditor { border:none; }
textarea.ajaxwysiwygeditor, textarea.wysiwygeditor, .dleaddcomments-editor.wseditor textarea { visibility:hidden; }
textarea.ajaxwysiwygeditor, .dleaddcomments-editor.wseditor textarea { height:260px; }
.wseditor table, .bb-editor table { margin:0; }
.xfieldimagegallery, .comments-image-gallery { margin:0; padding:0; list-style:none; clear:both; }
.xfieldimagegallery li, .comments-image-gallery li { list-style:none; margin:0; padding:0; }
.xfieldimagegallery li img, .comments-image-gallery li img {
  float:left; margin:0 .6rem .6rem 0; width:90px; height:90px;
  border:3px solid var(--surface); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm); transition:box-shadow var(--transition);
}
.xfieldimagegallery li img:hover, .comments-image-gallery li img:hover { box-shadow:var(--shadow-md); }
#dlefastreplycomments { padding:0 0 10px; }
#dle-comments-list > .comments-tree-list > li .comments-tree-list > li #dlefastreplycomments { padding:0 0 10px; }

/* ── Search suggestions ── */
#searchsuggestions {
  z-index:2200; width:20em; max-width:92vw;
  border-radius:var(--radius-sm);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg);
  font-size:.92em; box-sizing:border-box; overflow:hidden;
}
#searchsuggestions a, #searchsuggestions span.notfound {
  display:block; padding:.9rem 1.1rem; text-decoration:none;
  border-bottom:1px solid var(--line);
}
#searchsuggestions a:last-child { border-bottom:0; }
#searchsuggestions a { color:var(--ink); }
#searchsuggestions a:hover { background:var(--brand-soft); color:var(--brand-strong); }
#searchsuggestions a span { display:block; cursor:pointer; }
#searchsuggestions span.searchheading { display:block; font-weight:700; margin-bottom:.2em; }
#searchsuggestions span.seperator { display:block; }
#searchsuggestions span.seperator a { padding:.6rem 0; text-align:center; border:0; background:transparent; color:var(--muted); }
#searchsuggestions span.notfound { padding:.9rem 1.1rem; color:var(--muted); }
#searchsuggestions .break { display:none; }

/* ── Pagination ── */
.navigation { margin:1.6rem 0; }
.navigation:after { content:""; display:block; clear:both; }
.pages span, .pages a:hover, .page_next-prev {
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-sm); box-shadow:var(--shadow-sm);
}
.page_next-prev { float:right; height:2.6em; }
.page_next-prev * { float:left; }
.page_next-prev .icon { width:2.2em; height:1.4em; fill:var(--muted-2); }
.page_next-prev > span > a:hover .icon { fill:var(--brand); }
.page_next-prev > span > * { float:left; padding:.55em .85em; }
.page_next > span, .page_prev > span { opacity:.5; }
.splitnewsnavigation { margin-top:1.5rem; padding-top:1.5rem; font-weight:700; border-top:1px solid var(--line); }
.splitnewsnavigation > a, .splitnewsnavigation > span { padding:.5em .8em; }

/* ── Informer / meta / grey ── */
.informer_list { list-style:none; margin:0; padding:0; }
.informer_list:after { content:""; display:block; clear:both; }
.informer_list li { margin-bottom:1.4rem; }
.informer_list li .title { font-weight:700; margin-bottom:.7em; }
.informer_list li .title a { display:block; color:var(--ink); }
.informer_list li .title a:hover { color:var(--brand); }
.meta a, .speedbar a, .tag_list a, .vote_more a, .story_tools .category a { color:var(--brand); }
.grey { color:var(--muted); }
.grey a { color:inherit; }
.grey a:hover { color:var(--ink); }
.grey .icon { fill:var(--muted); }

/* ── Misc layout ── */
.showfull .comments, .showfull #content .box { float:none; }
.showfull .comments, .showfull #content .next-prev a { float:none; }
.carousel-inner > .item > .cover { width:100%; position:absolute; left:0; top:0; bottom:0; }
#combo-tools .pagetools_in { height:100px; transition:all .3s ease .2s; }
#combo-tools.active > .pagetools_in { margin-top:-3.8em; }
.page_form__form .form-group label { color:var(--muted); }
.page_form__form .form-group input[type=text], .page_form__form .form-group input[type=password],
.page_form__form .form-group input[type=email], .page_form__form .form-group textarea,
.page_form__form .form-group select, .page_form__form .c-captcha input { font-size:1em; height:auto; min-height:48px; line-height:1.4; }
.page_form__form .form-group textarea { height:auto; }
.page_form__form ul.ui-form > li { margin-bottom:1.1rem; }
td.search .bbcodes { margin:0!important; }
#votes .btn-border { padding-left:.8em; padding-right:.8em; }
.userinfo_top .avatar { position:absolute; }
.userinfo .avatar { position:absolute; float:left; margin:0 0 0 -6em; }
.userinfo .avatar .cover { width:4rem; height:4rem; }
