/* BidMarkt theme: palette sampled from the swirl logo (navy, orange, teal, yellow) on a warm white page. WCAG AA checked. */
:root {
  --color-brand-navy: #093C69;   /* navy ink, 10.7:1 on page */
  --color-brand-red: #C2410C;    /* AA orange for text and white-text buttons (5.2:1) */
  --color-brand-coral: #FFF1C9;  /* soft yellow tint */
  --color-brand-mint: #0E7C7D;   /* AA teal text, 5.0:1 on white */
  --color-brand-cream: #FBF8F3;  /* page */
  --bm-ink: #093C69; --bm-red: #FD6B24; --bm-red-aa: #C2410C; --bm-coral: #01B9BA;
  --bm-tan: #FEBF02; --bm-bronze: #0E7C7D; --bm-peach: #FFE7A3; --bm-peach-ink: #093C69;
  --bm-orange: #FD6B24; --bm-teal: #01B9BA; --bm-yellow: #FEBF02;
  --bm-canvas: #FBF8F3; --bm-card: #FFFFFF; --bm-panel: #F6F2EA; --bm-panel-2: #F0EBE1; --bm-line: #E6E0D6; --bm-muted: #4F5B6B;
  --color-ink: #093C69; --color-muted: #4F5B6B; --color-line: #E6E0D6;
  --shadow-soft: 0 14px 34px -18px rgba(9, 60, 105, 0.30);
  --shadow-card: 0 6px 20px -12px rgba(9, 60, 105, 0.24);
}
@supports (color: oklch(0% 0 0)) {
  :root {
    --color-brand-navy: oklch(35.07% 0.0933 250.71); --color-brand-red: oklch(55.34% 0.1739 38.40);
    --color-brand-coral: oklch(95.92% 0.0540 91.03); --color-brand-mint: oklch(53.26% 0.0880 195.86); --color-brand-cream: oklch(98.01% 0.0074 80.72);
    --bm-ink: oklch(35.07% 0.0933 250.71); --bm-red: oklch(70.04% 0.1943 42.41); --bm-red-aa: oklch(55.34% 0.1739 38.40); --bm-coral: oklch(71.18% 0.1213 195.46);
    --bm-tan: oklch(83.93% 0.1719 84.42); --bm-bronze: oklch(53.26% 0.0880 195.86); --bm-peach: oklch(93.20% 0.0896 90.86); --bm-peach-ink: oklch(35.07% 0.0933 250.71);
    --bm-canvas: oklch(98.01% 0.0074 80.72); --bm-panel: oklch(96.20% 0.0115 84.58); --bm-panel-2: oklch(94.12% 0.0144 84.58); --bm-line: oklch(90.87% 0.0150 80.71); --bm-muted: oklch(46.70% 0.0301 255.67);
  }
}
:root { color-scheme: light; accent-color: #C2410C; interpolate-size: allow-keywords; }
html { background: var(--bm-canvas); color: var(--bm-ink); scroll-behavior: smooth; }
body {
  min-height: 100%; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; background-color: var(--bm-canvas);
  background-image: radial-gradient(30rem 30rem at 102% 6%, rgba(253, 107, 36, .10), transparent 70%), radial-gradient(26rem 26rem at -6% 70%, rgba(1, 185, 186, .10), transparent 70%);
  background-attachment: fixed;
}
#root, #root > div.min-h-screen.bg-white { background-color: transparent !important; }
h1, h2, h3, .font-display { font-family: "Manrope", "Inter", sans-serif; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 100; background: var(--bm-ink); color: #fff; padding: .75rem 1.25rem; border-radius: .75rem; font-weight: 700; font-size: .875rem; }
.skip-link:focus { top: 1rem; outline: 3px solid var(--bm-red); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--bm-red-aa); outline-offset: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none; }
.text-slate-400 { color: #5B6675; } .text-slate-500 { color: #4F5B6B; } .text-slate-600 { color: #3A4656; }
.text-brand-navy\/80 { color: #1F3550 !important; } .text-brand-navy\/70 { color: #2D3F55 !important; }
.text-brand-navy\/60 { color: #4F5B6B !important; } .text-brand-navy\/40 { color: #5B6675 !important; }
.bg-brand-navy .text-slate-400, .bg-brand-navy .text-slate-500 { color: #E6E0D6 !important; }
img, svg { max-width: 100%; } img { height: auto; }
.bm-logo-mark { display: block; flex: none; }
.eurobid-lang-overlay { z-index: 100; }
.eurobid-lang-dialog { background: #fff; max-height: min(92vh, 40rem); overflow-y: auto; box-shadow: 0 24px 60px -16px rgba(9, 60, 105, .4); }
#eurobid-turnstile, #eurobid-turnstile .cf-turnstile, #eurobid-turnstile iframe { max-width: 100%; }
#eurobid-turnstile { min-height: 65px; display: flex; justify-content: center; margin: .25rem 0 .5rem; }

/* Header: frosted cream */
.bm-glass-header { border-bottom: 1px solid var(--bm-line) !important; box-shadow: none !important; view-transition-name: bm-header; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bm-glass-header { background-color: rgb(251 248 243 / .78) !important; -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
}
.bm-glass-header:has(input:focus) { box-shadow: 0 10px 28px -20px rgba(9, 60, 105, .5) !important; }

/* Cards */
.bm-card { container-type: inline-size; background: #fff !important; border: 1px solid var(--bm-line) !important; border-radius: 1.5rem !important; box-shadow: var(--shadow-card) !important; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease !important; }
.bm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft) !important; }
.bm-card img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.bm-card:hover img { transform: scale(1.04); }
@container (max-width: 260px) { .bm-card h3 { font-size: 1rem; } }

/* Buttons */
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.5rem; border-radius: 999px; font: 700 .95rem/1 "Manrope", "Inter", sans-serif; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; will-change: transform; border: 0; cursor: pointer; }
.bm-btn:active { transform: scale(.97); }
.bm-btn svg { transition: transform .2s ease; } .bm-btn:hover svg { transform: translateX(3px); }
.bm-btn--primary { background: #C2410C; color: #fff; box-shadow: 0 10px 22px -12px rgba(194, 65, 12, .8); }
.bm-btn--primary:hover { background: #A3360A; }
.bm-btn--ghost { background: #fff; color: #093C69; border: 1.5px solid #093C69; }
.bm-btn--ghost:hover { background: var(--bm-panel); }
.bm-btn--tan { background: #FEBF02; color: #093C69; }
.bm-btn--tan:hover { background: #FFD04D; }
.bm-btn[disabled], .bm-btn[aria-disabled="true"] { background: var(--bm-panel-2); color: #4F5B6B; box-shadow: none; cursor: not-allowed; }
.bm-btn--sm { min-height: 2.25rem; padding: .5rem 1rem; font-size: .8rem; }

/* ---------- Banner: white card, soft circles, black + red headline ---------- */
.bm-banner { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 2rem; background: #fff; border: 1px solid var(--bm-line); box-shadow: var(--shadow-soft); color: var(--bm-ink); }
.bm-banner-shape { position: absolute; z-index: -1; pointer-events: none; border-radius: 999px; }
.bm-banner-shape--a { width: 30rem; height: 30rem; right: -8rem; top: -10rem; background: #FFE7A3; animation: bm-float 16s ease-in-out infinite alternate; }
.bm-banner-shape--b { width: 14rem; height: 14rem; right: 34%; bottom: -7rem; background: #01B9BA; opacity: .16; animation: bm-float 12s ease-in-out infinite alternate-reverse; }
@keyframes bm-float { to { transform: translate(-1.5rem, 1.25rem) scale(1.05); } }
.bm-banner-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; max-width: 40rem; }
.bm-banner-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: #FFE7A3; color: #093C69; font: 800 .72rem/1 "Manrope", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bm-banner-dot { width: .5rem; height: .5rem; border-radius: 999px; background: #FD6B24; animation: bm-ping 2s ease-out infinite; }
@keyframes bm-ping { 0% { box-shadow: 0 0 0 0 rgb(253 107 36 / .45); } 80%, 100% { box-shadow: 0 0 0 8px rgb(253 107 36 / 0); } }
.bm-banner-title { margin: 0; font: 800 clamp(2.1rem, 4.8vw, 3.8rem)/1.02 "Manrope", "Inter", sans-serif; letter-spacing: -.035em; color: #093C69; }
.bm-banner-mark { display: inline; color: #C2410C; background: none; padding: 0; white-space: nowrap; } /* large text: 3.9:1 on white passes AA large */
.bm-banner-sub { margin: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; color: #4F5B6B; }
.bm-banner-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.bm-banner-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bm-banner-chips li { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #093C69; background: #F6F2EA; border: 1px solid #E6E0D6; }
.bm-banner-chips li:nth-child(1) { background: #FFE7A3; color: #093C69; border-color: transparent; }
.bm-banner-art { display: flex; justify-content: center; }
.bm-banner-art img { width: 100%; max-width: 26rem; filter: drop-shadow(0 18px 26px rgba(9, 60, 105, .14)); }
@media (max-width: 1023px) { .bm-banner { grid-template-columns: 1fr; } .bm-banner-art { order: -1; } .bm-banner-art img { max-width: 17rem; } }
@media (max-width: 480px) { .bm-banner { border-radius: 1.5rem; } .bm-banner-actions .bm-btn { flex: 1 1 100%; } .bm-banner-art img { max-width: 13rem; } }

/* ---------- Featured slot: dark feature card with tan accents ---------- */
.bm-promo { display: flex; flex-direction: column; gap: 1.25rem; container-type: inline-size; container-name: promo; }
.bm-featured { scroll-margin-top: 7rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 1.75rem; background: #093C69; color: #fff; box-shadow: var(--shadow-soft); }
.bm-featured-media { position: relative; min-height: 15rem; background: #0C3058; }
.bm-featured-media picture { display: contents; }
.bm-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.25rem, 3vw, 2.25rem); position: relative; }
.bm-featured-body::after { content: ""; position: absolute; width: 12rem; height: 12rem; right: -4rem; bottom: -5rem; border-radius: 999px; background: #01B9BA; opacity: .18; }
.bm-featured-label { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: #FEBF02; color: #093C69; font: 800 .72rem/1 "Manrope", "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bm-featured-title { margin: 0; font: 800 clamp(1.35rem, 2.4vw, 1.9rem)/1.15 "Manrope", "Inter", sans-serif; color: #fff; }
.bm-featured-text { margin: 0; color: #DCE7F2; line-height: 1.6; max-width: 32rem; }
.bm-featured-meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; }
.bm-featured-meta dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #CFE0F0; }
.bm-featured-meta dd { margin: .15rem 0 0; font: 800 1.35rem/1.2 "Manrope", "Inter", sans-serif; color: #fff; }
.bm-featured .bm-btn--primary { background: #FEBF02; color: #093C69; box-shadow: none; position: relative; z-index: 1; }
.bm-featured .bm-btn--primary:hover { background: #FFD04D; }
.bm-featured:has(.bm-featured-meta) { outline: 3px solid #FD6B24; outline-offset: 3px; }
@container promo (max-width: 720px) { .bm-featured { grid-template-columns: 1fr; } .bm-featured-media { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 767px) { .bm-featured { grid-template-columns: 1fr; } .bm-featured-media { min-height: 0; aspect-ratio: 4 / 3; } .bm-featured-cta { width: 100%; } }

/* Timers and price chips */
.bm-timer { display: inline-flex; align-items: center; gap: .45rem; font-variant-numeric: tabular-nums; }
.bm-timer::before { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: #FD6B24; animation: bm-tick 1s steps(2, jump-none) infinite; }
.bm-timer[data-urgent="true"]::before { animation: bm-ping 1.2s ease-out infinite; }
@keyframes bm-tick { 50% { opacity: .35; } }
.bm-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: #FFE7A3; color: #093C69; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums; }
.bm-chip--grey { background: #F6F2EA; color: #3A4656; }

/* ---------- User dashboard ---------- */
.bm-dash { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.bm-side { position: sticky; top: 7.5rem; display: flex; flex-direction: column; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--bm-line); border-radius: 1.5rem; box-shadow: var(--shadow-card); min-height: 34rem; }
.bm-side-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: .9rem; color: #3A4656; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.bm-side-link:hover { background: var(--bm-panel); color: #093C69; }
.bm-side-link[aria-current="page"] { background: #093C69; color: #fff; }
.bm-side-link svg { width: 1.1rem; height: 1.1rem; flex: none; }
.bm-side-coins { margin-top: .75rem; padding: .9rem; border-radius: 1rem; background: #FFE7A3; color: #093C69; display: flex; flex-direction: column; gap: .4rem; }
.bm-side-coins strong { font: 800 1.4rem/1 "Manrope", sans-serif; color: #093C69; }
.bm-side-user { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .9rem .4rem 0; border-top: 1px solid var(--bm-line); }
.bm-avatar { width: 2.6rem; height: 2.6rem; border-radius: 999px; background: #C2410C; color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.bm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bm-side-user b { display: block; font-size: .9rem; color: #093C69; }
.bm-badge { display: inline-block; margin-top: .2rem; padding: .15rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #FEBF02; color: #093C69; }
.bm-dash-main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.bm-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.bm-topbar h1 { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.1 "Manrope", sans-serif; color: #093C69; }
.bm-search { display: flex; align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1rem; background: #fff; border: 1px solid var(--bm-line); border-radius: 999px; min-width: min(22rem, 100%); }
.bm-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: .9rem; color: #093C69; min-width: 0; }
.bm-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.bm-sec-head h2 { margin: 0; font: 800 1.25rem/1.2 "Manrope", sans-serif; color: #093C69; }
.bm-see-all { font-size: .85rem; font-weight: 700; color: #C2410C; text-decoration: none; }
.bm-see-all:hover { text-decoration: underline; }
.bm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; }
.bm-cat { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; border-radius: 1.1rem; background: #F0EBE1; color: #093C69; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.bm-cat:hover { background: #E6E0D6; transform: translateY(-2px); }
.bm-cat-ico { width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: #fff; display: grid; place-items: center; color: #C2410C; }
.bm-cat-ico svg { width: 1.2rem; height: 1.2rem; }
.bm-cat b { font-size: .9rem; } .bm-cat small { font-size: .78rem; color: #4F5B6B; }
.bm-big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.bm-small-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .9rem; }
.bm-lot { container-type: inline-size; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bm-line); border-radius: 1.4rem; overflow: hidden; box-shadow: var(--shadow-card); color: #093C69; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.bm-lot:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.bm-lot-media { position: relative; aspect-ratio: 4 / 3; background: #F6F2EA; }
.bm-lot-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-lot-media .bm-chip { position: absolute; left: .7rem; top: .7rem; }
.bm-lot-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; }
.bm-lot-body h3 { margin: 0; font: 800 1rem/1.3 "Manrope", sans-serif; }
.bm-lot-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: #4F5B6B; }
.bm-lot-meta b { color: #093C69; }
.bm-lot-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }
.bm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.5rem; border-radius: 1.3rem; background: #fff; border: 1.5px dashed #E6E0D6; color: #4F5B6B; }
.bm-empty b { color: #093C69; font: 800 1.05rem/1.3 "Manrope", sans-serif; }
.bm-menu-btn { display: none; }
.bm-coins-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.bm-pack { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: 1.4rem; background: #fff; border: 1px solid var(--bm-line); }
.bm-pack strong { font: 800 1.8rem/1 "Manrope", sans-serif; color: #093C69; }
.bm-notice { padding: 1rem 1.2rem; border-radius: 1rem; background: #FFE7A3; color: #093C69; font-weight: 600; }
.bm-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.bm-live-dot { width: .6rem; height: .6rem; border-radius: 999px; background: #FD6B24; animation: bm-ping 1.6s ease-out infinite; }
@media (max-width: 900px) {
  .bm-dash { grid-template-columns: 1fr; }
  .bm-menu-btn { display: inline-flex; }
  .bm-side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(18rem, 85vw); border-radius: 0 1.5rem 1.5rem 0; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; }
  .bm-dash[data-open="true"] .bm-side { transform: none; }
  .bm-scrim { position: fixed; inset: 0; z-index: 55; background: rgb(9 60 105 / .45); }
}

/* View transitions, scroll-driven reveal, CWV */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bm-vt-out .18s ease-in both; }
::view-transition-new(root) { animation: bm-vt-in .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bm-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes bm-vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main section, .bm-card, .bm-featured, .bm-lot { animation: bm-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes bm-reveal { from { opacity: .001; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* light accents on navy surfaces (AA) */
.bg-brand-navy .text-brand-mint { color: #7FE0E0; }
.bg-brand-navy .text-brand-red { color: #FFB38A; }
