/* Milfa.pl V1.3.5.1 — High-contrast layout repair. Loaded after existing styles. */
/* Restricted to violet mode and known Milfa frontend component classes. */
body.milfa-theme-violet .v6-home .v6-hero,
html[data-milfa-theme-v211="violet"] .v6-home .v6-hero {
  background:linear-gradient(112deg,#24163a 0%,#281641 53%,#23152f 100%)!important;
  border:1px solid #8d68ac!important;
  box-shadow:0 14px 42px rgba(9,4,24,.32)!important;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
  min-height:430px!important;
}
body.milfa-theme-violet .v6-home .v6-hero-copy {position:relative!important;z-index:3!important;max-width:100%!important;padding:38px clamp(22px,4vw,55px)!important;align-self:center!important}
body.milfa-theme-violet .v6-home .v6-hero-copy h1 {color:#ffffff!important;text-shadow:none!important;line-height:1.04!important;font-size:clamp(36px,4.2vw,69px)!important;letter-spacing:-1.2px!important}
body.milfa-theme-violet .v6-home .v6-hero-copy h1 span {color:#ff9ee3!important;-webkit-text-fill-color:#ff9ee3!important;background:none!important;text-shadow:none!important}
body.milfa-theme-violet .v6-home .v6-hero-copy p {color:#f1e8f7!important;font-size:clamp(15px,1.2vw,18px)!important;line-height:1.6!important;max-width:570px!important}
body.milfa-theme-violet .v6-home .v6-hero-image {min-width:0!important;background:#261a36!important;overflow:hidden!important}
body.milfa-theme-violet .v6-home .v6-hero-image img {object-fit:cover!important;object-position:78% center!important;filter:contrast(1.05) saturate(1.02)!important}
body.milfa-theme-violet .v6-home .v6-hero-image:after {background:linear-gradient(90deg,#281641 0%,rgba(40,22,65,.28) 18%,transparent 40%)!important}
body.milfa-theme-violet .v6-home .v6-hero-backdrop {background:transparent!important}
body.milfa-theme-violet .v6-home .v6-hero-trust span {background:#37274e!important;border:1px solid #977db2!important;color:#fff6ff!important}
body.milfa-theme-violet .v6-home .section-title h1,
body.milfa-theme-violet .v6-home .section-title h2,
body.milfa-theme-violet .v6-home .section-title h3,
body.milfa-theme-violet .v6-home .section-title strong,
body.milfa-theme-violet .v6-home .v6-module-title h2 {color:#fff9ff!important;-webkit-text-fill-color:#fff9ff!important;text-shadow:none!important}
body.milfa-theme-violet .v6-home .section-title p,
body.milfa-theme-violet .v6-home .v6-module-title p {color:#eadcf4!important}
body.milfa-theme-violet .v6-home .v95-filter-shell {background:#281c45!important;border:1px solid #8b6aac!important}
body.milfa-theme-violet .v6-home .v95-filter-shell input,
body.milfa-theme-violet .v6-home .v95-filter-shell select,
body.milfa-theme-violet .v6-home .v95-filter-shell textarea {background:#19102f!important;border:1px solid #9f80c2!important;color:#fffaff!important}
body.milfa-theme-violet .v6-home .v95-filter-shell input::placeholder {color:#d1bedf!important;opacity:1!important}
body.milfa-theme-violet .v6-home .v6-category-strip button,
body.milfa-theme-violet .v6-home .popular-city-grid-v992 button {background:#34264f!important;border:1px solid #8c70a9!important;color:#fffaff!important}
/* Admin: fix headlines and labels even if previous legacy CSS declares !important. */
body.milfa-theme-violet .admin-page,
body.milfa-theme-violet .admin-page .admin-layout,
body.milfa-theme-violet .admin-page .admin-hero {color:#f9f4ff!important}
body.milfa-theme-violet .admin-page h1,
body.milfa-theme-violet .admin-page h2,
body.milfa-theme-violet .admin-page h3,
body.milfa-theme-violet .admin-page h4,
body.milfa-theme-violet .admin-page .admin-hero h1,
body.milfa-theme-violet .admin-page .admin-hero h2 {color:#fff9ff!important;-webkit-text-fill-color:#fff9ff!important;text-shadow:none!important}
body.milfa-theme-violet .admin-page .admin-hero {background:#1c132d!important;border:1px solid #79599c!important}
body.milfa-theme-violet .admin-page p,
body.milfa-theme-violet .admin-page small,
body.milfa-theme-violet .admin-page .admin-hero p,
body.milfa-theme-violet .admin-page .admin-hero small {color:#e5d8f1!important}
body.milfa-theme-violet .admin-page label,
body.milfa-theme-violet .admin-page th,
body.milfa-theme-violet .admin-page td {color:#f7ecff!important}
body.milfa-theme-violet .admin-page input,
body.milfa-theme-violet .admin-page select,
body.milfa-theme-violet .admin-page textarea {background:#170f29!important;color:#fff9ff!important;border:1px solid #9877bc!important}
body.milfa-theme-violet .admin-page input::placeholder,
body.milfa-theme-violet .admin-page textarea::placeholder {color:#c6b5da!important}
body.milfa-theme-violet .admin-page .admin-nav button,
body.milfa-theme-violet .admin-page .admin-nav a {color:#fcf5ff!important;border-color:#74559a!important}
body.milfa-theme-violet .admin-page .admin-nav button:hover,
body.milfa-theme-violet .admin-page .admin-nav a:hover {background:#5a3785!important}
/* Consent overlays */
body.milfa-theme-violet .cookie-banner-v101 .cookie-card-v101 {background:#19112e!important;border:1px solid #9871af!important;color:#fcf7ff!important}
body.milfa-theme-violet .cookie-banner-v101 h2,
body.milfa-theme-violet .cookie-banner-v101 p {color:#fcf7ff!important}
body.milfa-theme-violet .agegate-shell,
body.milfa-theme-violet .agegate-copy {background:#211638!important;color:#fff8ff!important}
body.milfa-theme-violet .agegate-copy h1,
body.milfa-theme-violet .agegate-copy p {color:#fff8ff!important}
body.milfa-theme-violet :is(.v6-home,.admin-page) :is(button,a,input,select,textarea):focus-visible {outline:3px solid #f1bbff!important;outline-offset:2px!important}
@media(max-width:900px){body.milfa-theme-violet .v6-home .v6-hero {grid-template-columns:1fr!important;min-height:550px!important}body.milfa-theme-violet .v6-home .v6-hero-copy {padding:26px 22px 255px!important}body.milfa-theme-violet .v6-home .v6-hero-image{position:absolute!important;inset:auto 0 0!important;height:245px!important}body.milfa-theme-violet .v6-home .v6-hero-image:after{background:linear-gradient(180deg,#281641,transparent 38%)!important}}
@media(max-width:600px){body.milfa-theme-violet .v6-home .v6-hero-copy h1{font-size:clamp(34px,9vw,45px)!important}body.milfa-theme-violet .v6-home .v6-hero-copy p{font-size:14px!important}body.milfa-theme-violet .v6-home .v6-hero {min-height:570px!important}}

/* MILFA V1.3.5.2 — layout corrections based on the existing V1.3.5.1 stylesheet.
   Scoped to the public Violet Night theme; no backend or global theme reset. */
body.milfa-theme-violet .v6-home .v6-hero {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  min-height:0!important;
  background:
    radial-gradient(ellipse at 90% 22%,rgba(198,110,255,.28),transparent 38%),
    radial-gradient(ellipse at 77% 90%,rgba(255,113,196,.13),transparent 43%),
    linear-gradient(120deg,#251641 0%,#302050 58%,#211531 100%)!important;
}
body.milfa-theme-violet .v6-home .v6-hero-copy {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:900px!important;
  padding:clamp(30px,4vw,56px)!important;
}
body.milfa-theme-violet .v6-home .v6-hero-copy h1 {
  max-width:780px!important;
  font-size:clamp(38px,4.5vw,66px)!important;
  line-height:1.06!important;
  letter-spacing:-.035em!important;
  margin:0 0 20px!important;
}
body.milfa-theme-violet .v6-home .v6-hero-copy p {
  max-width:700px!important;
  margin:0!important;
}
body.milfa-theme-violet .v6-home .v6-hero-image {
  display:none!important; /* Remove the empty second column visible in production. */
}
body.milfa-theme-violet .v6-home .v6-hero-trust {
  display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:22px!important;
}
body.milfa-theme-violet .v6-home .v6-category-strip {
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px clamp(12px,2vw,28px) 18px!important;
  background:transparent!important;
  border:0!important;
}
body.milfa-theme-violet .v6-home .v6-category-strip button {
  box-sizing:border-box!important;
  min-width:0!important;
  min-height:88px!important;
  height:auto!important;
  padding:12px 6px!important;
  border:1px solid rgba(195,154,239,.3)!important;
  border-radius:14px!important;
  background:#30224b!important;
  box-shadow:none!important;
  color:#fff9ff!important;
  line-height:1.3!important;
}
body.milfa-theme-violet .v6-home .v6-category-strip button span {
  font-size:11px!important;
  font-weight:750!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-overflow:clip!important;
}
body.milfa-theme-violet .v6-home .v6-category-strip button svg {
  width:25px!important;height:25px!important;color:#d89cff!important;
}
body.milfa-theme-violet .v6-home .v6-category-strip button.active,
body.milfa-theme-violet .v6-home .v6-category-strip button:hover {
  background:#4d2d70!important;
  border-color:#e3aaff!important;
}
body.milfa-theme-violet .v6-home .v95-filter-shell {
  box-sizing:border-box!important;
  margin:0 clamp(12px,2vw,28px) 22px!important;
  padding:clamp(14px,2vw,22px)!important;
  border-radius:22px!important;
}
body.milfa-theme-violet .v6-home .smart-search-v1019 {
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  margin:0 0 16px!important;
  padding:0!important;
  min-height:48px!important;
}
body.milfa-theme-violet .v6-home .smart-search-v1019 > svg {
  position:static!important;
  width:21px!important;height:21px!important;transform:none!important;
}
body.milfa-theme-violet .v6-home .smart-search-v1019 input {
  position:static!important;
  min-width:0!important;
  width:100%!important;
  height:46px!important;
  box-sizing:border-box!important;
  padding:0 14px!important;
  margin:0!important;
  border-radius:12px!important;
  font-size:14px!important;
}
body.milfa-theme-violet .v6-home .smart-search-v1019 button {
  position:static!important;
  width:auto!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 16px!important;
  border-radius:12px!important;
  white-space:nowrap!important;
}
body.milfa-theme-violet .v6-home .v95-filter-top {
  grid-template-columns:minmax(135px,170px) minmax(160px,1fr) minmax(140px,1fr) minmax(185px,1.5fr) auto!important;
  gap:10px!important;
}
body.milfa-theme-violet .v6-home .v95-filter-top > * {
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.milfa-theme-violet .v6-home .v95-filter-top select,
body.milfa-theme-violet .v6-home .v95-filter-top input {
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:46px!important;
  box-sizing:border-box!important;
  border-radius:12px!important;
}
body.milfa-theme-violet .v6-topbar {
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  padding:12px clamp(12px,2vw,28px)!important;
}
body.milfa-theme-violet .v6-topbar .brand {flex:0 0 auto!important;}
body.milfa-theme-violet .v6-topbar .v6-nav {
  display:flex!important;
  flex:1 1 800px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:4px 8px!important;
  min-width:0!important;
}
body.milfa-theme-violet .v6-topbar .v6-nav > a,
body.milfa-theme-violet .v6-topbar .v6-nav > button {
  white-space:nowrap!important;
  min-height:42px!important;
  box-sizing:border-box!important;
}
body.milfa-theme-violet .admin-page .notice {
  color:#fff8ff!important;
  background:#452855!important;
  border:1px solid #d69add!important;
  border-radius:12px!important;
  padding:14px 16px!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:1160px){
  body.milfa-theme-violet .v6-home .v6-category-strip {
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  body.milfa-theme-violet .v6-home .v95-filter-top {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.milfa-theme-violet .v6-home .v95-filter-top .v95-query {grid-column:1/-1!important;}
}
@media(max-width:720px){
  body.milfa-theme-violet .v6-home .v6-hero-copy {
    padding:28px 22px!important;
  }
  body.milfa-theme-violet .v6-home .v6-hero-copy h1 {
    font-size:clamp(34px,9vw,48px)!important;
  }
  body.milfa-theme-violet .v6-home .v6-category-strip {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.milfa-theme-violet .v6-home .smart-search-v1019 {
    grid-template-columns:20px minmax(0,1fr)!important;
  }
  body.milfa-theme-violet .v6-home .smart-search-v1019 button {
    grid-column:1/-1!important;
    width:100%!important;
  }
  body.milfa-theme-violet .v6-home .v95-filter-top {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.milfa-theme-violet .v6-home .v95-filter-top .v95-query {grid-column:auto!important;}
  body.milfa-theme-violet .v6-topbar .v6-nav {
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    scrollbar-width:thin!important;
  }
  body.milfa-theme-violet .v6-topbar .v6-nav > * {flex-shrink:0!important;}
}

/* MILFA V1.3.5.2 — admin readability patch.
   Based on the actual AdminPage.tsx structure: admin-kpis-v97 and moderation-kpis-v97. */
body.milfa-theme-violet .admin-page .admin-kpis-v97,
body.milfa-theme-violet .admin-page .moderation-kpis-v97 {
  min-width:0!important;
  gap:12px!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97>button,
body.milfa-theme-violet .admin-page .admin-kpis-v97>div,
body.milfa-theme-violet .admin-page .moderation-kpis-v97>button {
  min-width:0!important;
  box-sizing:border-box!important;
  background:linear-gradient(155deg,#24183d 0%,#19132f 100%)!important;
  border:1px solid #8062a9!important;
  border-radius:16px!important;
  color:#fff9ff!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97>button:hover,
body.milfa-theme-violet .admin-page .moderation-kpis-v97>button:hover {
  border-color:#d9a3ff!important;
  background:#32204e!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97 strong,
body.milfa-theme-violet .admin-page .moderation-kpis-v97 strong {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-shadow:none!important;
  font-size:clamp(25px,2.8vw,35px)!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
  opacity:1!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97 span,
body.milfa-theme-violet .admin-page .moderation-kpis-v97 span {
  color:#f5e8ff!important;
  -webkit-text-fill-color:#f5e8ff!important;
  opacity:1!important;
  font-size:clamp(12px,1vw,14px)!important;
  line-height:1.35!important;
  font-weight:600!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97 small,
body.milfa-theme-violet .admin-page .moderation-kpis-v97 small {
  color:#d9c7ef!important;
  -webkit-text-fill-color:#d9c7ef!important;
  font-size:12px!important;
}
body.milfa-theme-violet .admin-page .admin-kpis-v97 svg,
body.milfa-theme-violet .admin-page .moderation-kpis-v97 svg {
  color:#d6a0ff!important;
  opacity:1!important;
}
body.milfa-theme-violet .admin-page .dashboard-orders-v97,
body.milfa-theme-violet .admin-page .account-content>.account-card {
  background:#1c1534!important;
  border:1px solid #735797!important;
  border-radius:18px!important;
}
body.milfa-theme-violet .admin-page .dashboard-orders-v97 h2,
body.milfa-theme-violet .admin-page .account-content>.account-card h2,
body.milfa-theme-violet .admin-page .health-v90 b {
  color:#fff9ff!important;
  -webkit-text-fill-color:#fff9ff!important;
}
body.milfa-theme-violet .admin-page .recent-orders-v97 .muted,
body.milfa-theme-violet .admin-page .recent-orders-v97 small,
body.milfa-theme-violet .admin-page .health-v90 span {
  color:#e1d3f5!important;
  -webkit-text-fill-color:#e1d3f5!important;
  opacity:1!important;
}
body.milfa-theme-violet .admin-page .health-v90>div {
  background:#21183c!important;
  border:1px solid #705393!important;
}
body.milfa-theme-violet .v6-topbar .milfa-brand-main {
  color:#f1d1ff!important;
  -webkit-text-fill-color:#f1d1ff!important;
}
body.milfa-theme-violet .v6-topbar .milfa-brand-dot {
  color:#ffa6de!important;
  -webkit-text-fill-color:#ffa6de!important;
}
body.milfa-theme-violet .v6-topbar .v6-brand small {
  color:#d1b8df!important;
  -webkit-text-fill-color:#d1b8df!important;
}
body.milfa-theme-violet .v6-topbar .nav-points,
body.milfa-theme-violet .v6-topbar .v6-login {
  background:#32214f!important;
  border:1px solid #9977c5!important;
  color:#f8ebff!important;
  -webkit-text-fill-color:#f8ebff!important;
}
body.milfa-theme-violet .admin-page .account-sidebar button {
  color:#f7efff!important;
  font-size:14px!important;
  min-height:44px!important;
  line-height:1.4!important;
}
body.milfa-theme-violet .admin-page .account-sidebar button.active,
body.milfa-theme-violet .admin-page .account-sidebar button:hover {
  color:#fff!important;
  background:#3b255e!important;
}
@media(max-width:1200px){
  body.milfa-theme-violet .admin-page .moderation-kpis-v97 {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:800px){
  body.milfa-theme-violet .admin-page .admin-kpis-v97,
  body.milfa-theme-violet .admin-page .moderation-kpis-v97 {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:440px){
  body.milfa-theme-violet .admin-page .moderation-kpis-v97 {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
