/* ============================================================
   BucatarasulMAXI v2 — Design System
   Inspirat din Heytivity: paleta warm bej + portocaliu accent
   Bootstrap 5 base + CSS variables light/dark/auto
   ============================================================ */

/* ─── Cinzel — local (no CDN) ──────────────────────────────── */
/* latin-ext */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── CSS Variables — Light Mode ───────────────────────────── */
:root {
  --page-bg:       #f7f5ef;
  --surface:       #fffdf8;
  --surface-muted: #f0ede4;
  --surface-hover: #e8e3d8;
  --text-strong:   #252525;
  --text-body:     #3d3832;
  --text-soft:     #727067;
  --text-muted:    #9a8870;
  --border:        rgba(93,78,63,.13);
  --border-focus:  rgba(232,98,42,.22);
  --accent:        #e8622a;
  --accent-hover:  #c85028;
  --accent-soft:   rgba(232,98,42,.1);
  --accent-text:   #fff;
  --shadow-sm:     0 .4rem 1.2rem rgba(15,23,42,.06);
  --shadow-md:     0 1rem 2.5rem rgba(15,23,42,.09);
  --shadow-lg:     0 1.5rem 4rem  rgba(15,23,42,.12);
  --radius-sm:     .5rem;
  --radius-md:     .85rem;
  --radius-lg:     1.15rem;
  --navbar-bg:     rgba(255,253,248,.88);
  --card-bg:       var(--surface);
  --input-bg:      var(--surface);
  --badge-bg:      var(--surface-muted);
  --success:       #22c55e;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --font-heading:  'Cinzel', Georgia, serif;
  --font-body:     system-ui, -apple-system, sans-serif;
  --transition:    .18s ease;
}

/* ─── Dark Mode ─────────────────────────────────────────────── */
[data-bs-theme="dark"] {
  --page-bg:       #0c0806;
  --surface:       #15100c;
  --surface-muted: #1e160f;
  --surface-hover: #281e16;
  --text-strong:   #f2ede8;
  --text-body:     #d4c9bb;
  --text-soft:     #9a8870;
  --text-muted:    #6b5f52;
  --border:        rgba(255,255,255,.1);
  --border-focus:  rgba(232,98,42,.28);
  --accent-soft:   rgba(232,98,42,.15);
  --shadow-sm:     0 .4rem 1.2rem rgba(0,0,0,.35);
  --shadow-md:     0 1rem 2.5rem  rgba(0,0,0,.45);
  --shadow-lg:     0 1.5rem 4rem  rgba(0,0,0,.65);
  --navbar-bg:     rgba(21,16,12,.9);
  --card-bg:       var(--surface);
  --input-bg:      var(--surface);
  --badge-bg:      var(--surface-muted);
}

/* ─── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--page-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-strong);
  line-height: 1.25;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }
hr { border-color: var(--border); opacity: 1; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Bootstrap Overrides ───────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition), transform .1s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(232,98,42,.35);
}
.btn-primary:active { transform: scale(.98); }

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius-sm);
}
.btn-outline-primary:hover { background: var(--accent); color: #fff; }

.btn-outline-secondary {
  color: var(--text-soft);
  border-color: var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
}
.btn-outline-secondary:hover { background: var(--surface-hover); color: var(--text-strong); border-color: var(--border); }

.form-control, .form-select {
  background-color: var(--input-bg);
  border-color: var(--border);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--accent);
  color: var(--text-body);
  box-shadow: 0 0 0 2px var(--border-focus);
}
.form-control::placeholder { color: var(--text-muted); }
.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--border-focus);
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.input-group-text {
  background-color: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-soft);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ── Keyboard focus — visible only on keyboard nav, hidden on mouse click ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.form-label { font-weight: 500; color: var(--text-strong); margin-bottom: .4rem; font-size: .93rem; }
.form-text { color: var(--text-muted); font-size: .82rem; }

.alert {
  border: none;
  border-radius: var(--radius-md);
  font-size: .93rem;
}
.alert-danger  { background: rgba(239,68,68,.1);  color: #b91c1c; }
.alert-success { background: rgba(34,197,94,.1);  color: #15803d; }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; }
.alert-info    { background: rgba(59,130,246,.1); color: #1d4ed8; }

[data-bs-theme="dark"] .alert-danger  { color: #fca5a5; }
[data-bs-theme="dark"] .alert-success { color: #86efac; }
[data-bs-theme="dark"] .alert-warning { color: #fcd34d; }
[data-bs-theme="dark"] .alert-info    { color: #93c5fd; }

.badge {
  font-weight: 500;
  border-radius: .4rem;
  padding: .3em .65em;
  font-size: .78em;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.35rem; }

/* ─── Navbar ────────────────────────────────────────────────── */
.bmx-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}

.bmx-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong) !important;
  letter-spacing: .02em;
}
.bmx-navbar .navbar-brand span.accent { color: var(--accent); }

.bmx-navbar .nav-link {
  color: var(--text-soft) !important;
  font-size: .92rem;
  font-weight: 500;
  padding: .4rem .7rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.bmx-navbar .nav-link:hover,
.bmx-navbar .nav-link.active { color: var(--text-strong) !important; background: var(--surface-hover); }

.bmx-navbar .navbar-toggler { border: none; padding: .3rem; }
.bmx-navbar .navbar-toggler:focus { box-shadow: none; }

/* Search in navbar */
.bmx-search-wrap { position: relative; }
.bmx-search-input {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .4rem 1rem .4rem 2.4rem;
  font-size: .9rem;
  color: var(--text-body);
  width: 220px;
  transition: width var(--transition), border-color var(--transition), background var(--transition);
}
.bmx-search-input:focus { width: 280px; border-color: var(--accent); background: var(--input-bg); box-shadow: none; outline: none; }
.bmx-search-icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.bmx-search-results {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 340px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}
.bmx-search-results.show { display: block; }
.bmx-search-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1rem;
  color: var(--text-body);
  font-size: .9rem;
  transition: background var(--transition);
  cursor: pointer;
}
.bmx-search-item:hover { background: var(--surface-hover); }
.bmx-search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: .4rem; }

/* User avatar dropdown */
.bmx-avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.bmx-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
.bmx-avatar-btn:hover .bmx-avatar-sm { border-color: var(--accent); }

/* Notification bell */
.bmx-notif-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.2rem;
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}
.bmx-notif-btn:hover { color: var(--text-strong); background: var(--surface-hover); }
.bmx-notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.bmx-notif-panel {
  position: absolute;
  right: 0; top: calc(100% + .5rem);
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  overflow: hidden;
  display: none;
}
.bmx-notif-panel.show { display: block; }
.bmx-notif-header {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bmx-notif-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.bmx-notif-item:last-child { border-bottom: none; }
.bmx-notif-item:hover { background: var(--surface-hover); }
.bmx-notif-item.unread { background: var(--accent-soft); border-left: 3px solid var(--accent); }
.bmx-notif-icon { font-size: 1.2rem; color: var(--accent); min-width: 24px; margin-top: .15rem; }
.bmx-notif-text { font-size: .88rem; color: var(--text-body); }
.bmx-notif-time { font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }
.bmx-notif-empty { padding: 2rem; text-align: center; color: var(--text-muted); font-size: .9rem; }
.bmx-notif-body { flex: 1; min-width: 0; }
.bmx-notif-delete {
  background: none; border: none; padding: .2rem .4rem; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; line-height: 1; border-radius: 4px;
  opacity: 0; transition: opacity .15s, color .15s;
}
.bmx-notif-item:hover .bmx-notif-delete { opacity: 1; }
.bmx-notif-delete:hover { color: var(--text-strong); background: var(--surface-hover); }
.bmx-notif-footer {
  padding: .6rem 1.1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.bmx-notif-footer a { color: var(--text-muted); text-decoration: none; }
.bmx-notif-footer a:hover { color: var(--accent); }
/* Notification center page */
.bmx-notif-center-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.bmx-notif-center-item:last-child { border-bottom: none; }
.bmx-notif-center-item.unread { background: var(--accent-soft); }
.bmx-notif-center-item:hover { background: var(--surface-hover); }
.bmx-notif-center-icon { font-size: 1.3rem; min-width: 28px; margin-top: .1rem; }
.bmx-notif-center-body { flex: 1; min-width: 0; }
.bmx-notif-center-text { font-size: .9rem; color: var(--text-body); text-decoration: none; display: block; }
.bmx-notif-center-text:hover { color: var(--accent); }
.bmx-notif-center-time { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.bmx-notif-center-del { font-size: .9rem; }

/* Dark mode toggle */
.bmx-theme-toggle {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-soft);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.bmx-theme-toggle:hover { background: var(--surface-hover); color: var(--text-strong); border-color: var(--accent); }

/* ─── Footer ────────────────────────────────────────────────── */
.bmx-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: .88rem;
  color: var(--text-soft);
}
.bmx-footer a { color: var(--text-soft); }
.bmx-footer a:hover { color: var(--accent); }
.bmx-footer-brand { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-strong); }
.bmx-footer-copy { font-size: .82rem; color: var(--text-muted); }
.bmx-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-hover); color: var(--text-soft);
  font-size: 1rem; text-decoration: none; transition: background .15s, color .15s;
}
.bmx-social-link:hover { background: var(--accent); color: #fff; }

/* Cookie consent banner */
.bmx-cookie-banner {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 1060; max-width: 640px; width: calc(100% - 2rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem 1.1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}

/* ─── Auth Pages ────────────────────────────────────────────── */
.bmx-auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  padding: 2rem 1rem;
}
.bmx-auth-wrap { width: 100%; max-width: 420px; }
.bmx-auth-wrap--wide { max-width: 520px; }
.bmx-auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.bmx-auth-back {
  display: inline-flex; align-items: center;
  margin-top: .6rem;
  font-size: .82rem; color: var(--text-soft);
  text-decoration: none; transition: color .15s;
}
.bmx-auth-back:hover { color: var(--accent); }
.bmx-brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
}
.bmx-logo-light { display: block; }
.bmx-logo-dark  { display: none; }
[data-bs-theme="dark"] .bmx-logo-light { display: none; }
[data-bs-theme="dark"] .bmx-logo-dark  { display: block; }
.bmx-auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
}
.bmx-auth-card--wide { max-width: 520px; }
.bmx-backup-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .5rem; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: .75rem; padding: 1rem;
}
.bmx-backup-code {
  text-align: center; padding: .4rem .6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: .4rem; font-size: .95rem; letter-spacing: .1em;
  color: var(--text-strong);
}
.bmx-auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: .3rem;
  text-align: center;
}
.bmx-auth-sub { color: var(--text-soft); margin-bottom: 1.5rem; font-size: .95rem; text-align: center; }
.bmx-link { color: var(--accent); }
.bmx-link:hover { color: var(--accent-hover); }

/* Password strength */
.password-strength { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }

/* ─── Recipe Cards ──────────────────────────────────────────── */
.bmx-recipe-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bmx-recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,98,42,.25);
}
.bmx-recipe-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.bmx-recipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.bmx-recipe-card:hover .bmx-recipe-card-img img { transform: scale(1.04); }
.bmx-recipe-card-cat {
  position: absolute;
  top: .6rem; left: .6rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .25em .6em;
  border-radius: .4rem;
  backdrop-filter: blur(4px);
}
.bmx-recipe-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.bmx-recipe-card-title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.bmx-recipe-card-title a { color: var(--text-strong); }
.bmx-recipe-card-title a:hover { color: var(--accent); }

/* Info row: avatar · username · durată · porții */
.bmx-rc-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .35rem;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.bmx-rc-author {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  max-width: 100px;
  transition: color var(--transition);
}
.bmx-rc-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bmx-rc-author:hover { color: var(--accent); }
.bmx-rc-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: .4;
  flex-shrink: 0;
  align-self: center;
}
.bmx-rc-chip {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}

/* Footer row: rating stânga, acțiuni dreapta */
.bmx-rc-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  gap: .4rem;
}
.bmx-rc-rating {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-strong);
}
.bmx-rc-rating i { color: #f59e0b; font-size: .68rem; }
.bmx-rc-rating-count { font-weight: 400; color: var(--text-muted); }
.bmx-rc-actions { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.bmx-rc-likes {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.bmx-recipe-card-diff {
  position: absolute;
  top: .6rem; right: .6rem;
  font-size: .68rem;
  font-weight: 600;
  padding: .2em .55em;
  border-radius: .4rem;
  color: #fff;
}
.bmx-card-btn {
  background: none;
  border: none;
  padding: .25rem .35rem;
  border-radius: .4rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .15s, background .15s;
}
.bmx-card-btn:hover { color: var(--accent); background: rgba(232,98,42,.08); }
.bmx-card-btn.liked { color: #ef4444; }
.bmx-card-btn.active-fav { color: #f59e0b; }
.bmx-stars { color: #f59e0b; font-size: .85rem; }

/* ─── Recipe Detail ─────────────────────────────────────────── */
.bmx-recipe-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  max-height: 480px;
}
.bmx-recipe-hero img { width: 100%; height: 100%; object-fit: cover; }

.bmx-recipe-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}

.bmx-recipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.bmx-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .35rem .85rem;
  font-size: .84rem;
  color: var(--text-body);
}
.bmx-stat-pill i { color: var(--accent); }

.bmx-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.bmx-ingredients { list-style: none; padding: 0; margin: 0; }
.bmx-ingredients li {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.bmx-ingredients li::before { content: "•"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.bmx-ingredients li:last-child { border-bottom: none; }

/* ─── Action Buttons (like/fav) ─────────────────────────────── */
.bmx-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform .1s;
  text-decoration: none;
}
.bmx-action-btn:hover { background: var(--surface-hover); color: var(--text-strong); border-color: var(--border); }
.bmx-action-btn.liked, .bmx-action-btn.active-fav { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.bmx-action-btn:active { transform: scale(.96); }

/* ─── Comments ──────────────────────────────────────────────── */
.bmx-comment {
  display: flex;
  gap: .85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.bmx-comment:last-child { border-bottom: none; }
.bmx-comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bmx-comment-body { flex: 1; }
.bmx-comment-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.bmx-comment-user { font-weight: 600; font-size: .9rem; color: var(--text-strong); }
.bmx-comment-time { font-size: .78rem; color: var(--text-muted); }
.bmx-comment-text { font-size: .92rem; color: var(--text-body); white-space: pre-wrap; word-break: break-word; }
.bmx-comment-img { margin-top: .6rem; border-radius: .5rem; max-height: 220px; object-fit: cover; cursor: pointer; }
.bmx-reply-thread { margin-left: 3.2rem; }

/* ─── Ratings (stars) ────────────────────────────────────────── */
.bmx-star-picker { display: flex; gap: .2rem; flex-direction: row-reverse; justify-content: flex-end; }
.bmx-star-picker input { display: none; }
.bmx-star-picker label { font-size: 1.6rem; color: var(--border); cursor: pointer; transition: color .12s; }
.bmx-star-picker input:checked ~ label,
.bmx-star-picker label:hover,
.bmx-star-picker label:hover ~ label { color: #f59e0b; }

/* ─── User Profile ──────────────────────────────────────────── */
.bmx-profile-header {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--surface-muted);
  background-size: cover;
  background-repeat: no-repeat;
}
.bmx-profile-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,var(--page-bg) 0%,transparent 22%,transparent 78%,var(--page-bg) 100%);
  pointer-events: none;
  z-index: 1;
}
.bmx-profile-header img { width: 100%; height: 100%; object-fit: cover; }
.bmx-profile-header-edit {
  position: absolute;
  bottom: .6rem; right: .6rem;
}
.bmx-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -52px;
}
.bmx-profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.bmx-profile-avatar-edit {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  border: 2px solid var(--surface);
}

/* ─── Pagination ─────────────────────────────────────────────── */
.bmx-pagination { margin-top: 2rem; }
.bmx-pagination .pagination { gap: .25rem; }
.bmx-pagination .page-link {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text-body);
  border-radius: var(--radius-sm) !important;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .65rem;
  font-size: .88rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  box-shadow: none !important;
}
.bmx-pagination .page-link:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  color: var(--text-strong);
}
.bmx-pagination .page-item.active .page-link {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.bmx-pagination .page-item.disabled .page-link {
  opacity: .4;
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
  pointer-events: none;
}

/* ─── Category Grid Cards ────────────────────────────────────── */
.bmx-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bmx-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,98,42,.3);
}
.bmx-cat-card:hover .bmx-cat-img { transform: scale(1.06); }

/* Image wrap inside grid card */
.bmx-cat-card .bmx-cat-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}
.bmx-cat-card .bmx-cat-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.bmx-cat-card .bmx-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: .75rem .9rem;
}
.bmx-cat-card .bmx-cat-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Count row below image */
.bmx-cat-card .bmx-cat-card-foot {
  padding: .5rem .9rem;
  font-size: .75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ─── Page Hero / Section ───────────────────────────────────── */
.bmx-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.bmx-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: .5rem;
}
.bmx-hero-sub { font-size: 1.05rem; color: var(--text-soft); max-width: 540px; margin: 0 auto; }

.bmx-section { padding: 2rem 0; }
.bmx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* ─── Admin ──────────────────────────────────────────────────── */
.bmx-admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 1.5rem 0;
}
.bmx-admin-wrap { display: flex; min-height: 100vh; }
.bmx-admin-content { flex: 1; padding: 2rem; overflow-x: hidden; background: var(--page-bg); }
.bmx-sidebar-logo {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bmx-sidebar-logo span.accent { color: var(--accent); }
.bmx-sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.25rem;
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
}
.bmx-sidebar-link:hover { background: var(--surface-hover); color: var(--text-strong); }
.bmx-sidebar-link.active { background: var(--accent-soft); color: var(--accent); }
.bmx-sidebar-link i { font-size: 1rem; min-width: 18px; }
.bmx-sidebar-sep {
  padding: .8rem 1.25rem .3rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.bmx-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.bmx-kpi-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}
.bmx-kpi-label { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }
.bmx-kpi-icon { font-size: 1.6rem; color: var(--accent); opacity: .7; }

/* ─── Badges / Status ────────────────────────────────────────── */
.bmx-badge-pending  { background: rgba(245,158,11,.12); color: #92400e; }
.bmx-badge-approved { background: rgba(34,197,94,.12);  color: #15803d; }
.bmx-badge-rejected { background: rgba(239,68,68,.12);  color: #b91c1c; }
.bmx-badge-user     { background: rgba(59,130,246,.12); color: #1d4ed8; }
.bmx-badge-admin    { background: rgba(232,98,42,.12);  color: #9a3412; }
.bmx-badge-editor   { background: rgba(139,92,246,.12); color: #5b21b6; }

[data-bs-theme="dark"] .bmx-badge-pending  { color: #fcd34d; }
[data-bs-theme="dark"] .bmx-badge-approved { color: #86efac; }
[data-bs-theme="dark"] .bmx-badge-rejected { color: #fca5a5; }
[data-bs-theme="dark"] .bmx-badge-user     { color: #93c5fd; }
[data-bs-theme="dark"] .bmx-badge-admin    { color: #fdba74; }
[data-bs-theme="dark"] .bmx-badge-editor   { color: #c4b5fd; }

/* ─── Toast ──────────────────────────────────────────────────── */
.bmx-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.bmx-toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .85rem 1.25rem;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 240px;
  max-width: 360px;
  animation: toastIn .25s ease forwards;
}
.bmx-toast.success { border-left: 3px solid var(--success); }
.bmx-toast.error   { border-left: 3px solid var(--danger); }
.bmx-toast.info    { border-left: 3px solid var(--info); }

@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ─── AI Assist ──────────────────────────────────────────────── */
@keyframes bmxSpin { to { transform: rotate(360deg); } }
.spin-me { display:inline-block; animation: bmxSpin .7s linear infinite; }

/* ─── Utility ────────────────────────────────────────────────── */
.text-accent  { color: var(--accent) !important; }
.bg-accent    { background: var(--accent) !important; color: #fff !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Layout ─────────────────────────────────────────────────── */
.bmx-main { padding-top: 2rem; padding-bottom: 4rem; }
.bmx-brand { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-strong) !important; }
.bmx-search-panel {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  z-index: 1050;
  display: none;
}
.bmx-search-panel.show { display: block; }

/* ─── Hero random (rețeta zilei) ────────────────────────────── */
.bmx-hero-random {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.bmx-hero-random-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.bmx-hero-random:hover .bmx-hero-random-img { transform: scale(1.03); }
.bmx-hero-random-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 2.2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
}
.bmx-hero-random-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.6); margin-bottom: .55rem;
}
.bmx-hero-random-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700; color: #fff;
  margin-bottom: .65rem; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.bmx-hero-random-meta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  font-size: .84rem; color: rgba(255,255,255,.72);
  margin-bottom: .6rem;
}
.bmx-hero-random-desc {
  font-size: .88rem; color: rgba(255,255,255,.62);
  margin-bottom: 0; max-width: 620px; line-height: 1.55;
}
@media (max-width: 767.98px) {
  .bmx-hero-random-img { height: 280px; }
  .bmx-hero-random-overlay { padding: 1.5rem 1.25rem 1.25rem; }
  .bmx-hero-random-desc { display: none; }
}

/* ─── Info cards (recipe detail stats) ──────────────────────── */
.bmx-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.1rem .85rem .9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.bmx-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bmx-info-card__icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .65rem;
  font-size: 1.05rem;
  color: var(--accent);
  transition: background .15s;
}
.bmx-info-card:hover .bmx-info-card__icon {
  background: var(--accent);
  color: #fff;
}
.bmx-info-value { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-strong); line-height: 1.2; }
.bmx-info-label { font-size: .7rem; color: var(--text-muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.bmx-info-list { list-style: none; padding: 0; margin: 0; }
.bmx-info-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.bmx-info-list li:last-child { border-bottom: none; }

/* ─── Recipe page elements ──────────────────────────────────── */
.bmx-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
  margin-bottom: .25rem;
}
.bmx-recipe-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.bmx-recipe-section { margin-bottom: 1.75rem; }
.bmx-instructions { font-size: .95rem; color: var(--text-body); line-height: 1.8; }
.bmx-instructions ol, .bmx-instructions ul { padding-left: 1.4rem; }
.bmx-instructions li { margin-bottom: .6rem; }
.bmx-comments-section { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }

/* ─── Content card (recipe sections) ───────────────────────── */
.bmx-content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* ─── Author card (sidebar) ─────────────────────────────────── */
.bmx-author-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bmx-author-card__cover {
  height: 64px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(232,98,42,.06) 100%);
  border-bottom: 1px solid var(--border);
}
.bmx-author-card__body {
  padding: 0 1.25rem 1.25rem;
  text-align: center;
  margin-top: -36px;
}
.bmx-author-card__avatar-link img {
  width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
  display: block; margin: 0 auto .65rem;
}
.bmx-author-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}
.bmx-author-card__name:hover { color: var(--accent); }
.bmx-author-card__label {
  font-size: .75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: .15rem; margin-bottom: .5rem;
}
.bmx-author-card__bio {
  font-size: .83rem; color: var(--text-soft);
  line-height: 1.55; margin-bottom: .65rem;
}
.bmx-author-card__stat {
  font-size: .82rem; color: var(--text-soft);
  padding: .45rem .75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ─── Print card (sidebar) ──────────────────────────────────── */
.bmx-print-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  cursor: pointer; user-select: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
}
.bmx-print-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface-hover);
}
.bmx-print-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.bmx-print-card__title { font-size: .9rem; font-weight: 600; color: var(--text-strong); }
.bmx-print-card__sub   { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }

/* ─── Ingredient checklist ──────────────────────────────────── */
.bmx-ingr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.bmx-ingr-item {
  display: flex; align-items: baseline; gap: .65rem;
  padding: .5rem .6rem; border-radius: .4rem; cursor: pointer;
  border-bottom: 1px solid var(--border); user-select: none;
  transition: background .12s;
}
.bmx-ingr-item:last-child { border-bottom: none; }
.bmx-ingr-item:hover { background: var(--surface-raised); }
.bmx-ingr-check { flex-shrink: 0; font-size: 1rem; color: var(--text-soft); }
.bmx-ingr-check .bi-check-circle-fill { display: none; color: var(--accent); }
.bmx-ingr-done { opacity: .5; text-decoration: line-through; background: var(--surface-raised) !important; }
.bmx-ingr-done .bmx-ingr-check .bi-circle { display: none; }
.bmx-ingr-done .bmx-ingr-check .bi-check-circle-fill { display: inline; }
.bmx-ingr-qty { font-weight: 700; color: var(--accent); font-size: .9rem; white-space: nowrap; flex-shrink: 0; min-width: 3rem; }
.bmx-ingr-unit { font-weight: 400; color: var(--text-soft); font-size: .82rem; }
.bmx-ingr-name { flex: 1; color: var(--text-strong); font-size: .92rem; }

/* ─── Similar recipes widget ────────────────────────────────── */
.bmx-similar-list { display: flex; flex-direction: column; gap: .6rem; }
.bmx-similar-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .4rem .3rem; border-radius: .5rem;
  transition: background .15s;
}
.bmx-similar-item:hover { background: var(--surface-raised); }
.bmx-similar-img {
  width: 60px; height: 50px; object-fit: cover;
  border-radius: .4rem; flex-shrink: 0;
}
.bmx-similar-info { flex: 1; min-width: 0; }
.bmx-similar-title {
  font-size: .82rem; font-weight: 600;
  color: var(--text-strong); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bmx-similar-meta { font-size: .72rem; margin-top: .15rem; display: flex; align-items: center; gap: .3rem; }

/* ─── Collection cards ───────────────────────────────────────── */
.bmx-collection-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bmx-collection-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bmx-collection-cover {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.bmx-collection-cover--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-raised);
}
.bmx-collection-info { padding: .75rem 1rem; }
.bmx-collection-name { font-size: .97rem; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Page title ─────────────────────────────────────────────── */
.bmx-page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-strong);
}

/* ─── Legal content ─────────────────────────────────────────── */
.bmx-legal-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 576px) {
  .bmx-legal-wrap { padding: 1.5rem 1.25rem; }
}
.bmx-legal-content { font-size: .97rem; color: var(--text-body); line-height: 1.8; }
.bmx-legal-content h2, .bmx-legal-content h3 { font-family: var(--font-heading); color: var(--text-strong); margin-top: 1.75rem; }
.bmx-legal-content h5 { color: var(--text-strong); margin-top: 1.5rem; }
.bmx-legal-content a { color: var(--accent); }
.bmx-legal-content ul { padding-left: 1.4rem; }
.bmx-legal-content li { margin-bottom: .35rem; }

/* ─── Category page ─────────────────────────────────────────── */
.bmx-cat-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.bmx-cat-img-wrap { position: relative; height: 200px; overflow: hidden; }
.bmx-cat-img { width: 100%; height: 100%; object-fit: cover; }
.bmx-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 100%);
  display: flex;
  align-items: center;
  padding: 2rem;
}
.bmx-cat-name { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: #fff; }
.bmx-cat-count { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: .2rem; }

/* ─── User profile ──────────────────────────────────────────── */
.bmx-profile-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: .1rem;
}
.bmx-profile-bio { font-size: .93rem; color: var(--text-soft); line-height: 1.65; }
.bmx-profile-stats { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.bmx-stat { display: flex; flex-direction: column; align-items: flex-start; }
.bmx-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-strong); line-height: 1.2; }
.bmx-stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.bmx-profile-tabs { border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.bmx-profile-tabs .nav-link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: .92rem;
  padding: .7rem 1.1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.bmx-profile-tabs .nav-link:hover { color: var(--text-strong); }
.bmx-profile-tabs .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Profile stats ─────────────────────────────────────────── */
.bmx-stat-item { text-align: center; }
.bmx-stat-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-strong); }
.bmx-stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ─── Activity feed ──────────────────────────────────────────── */
.bmx-activity-feed { display: flex; flex-direction: column; gap: 0; }
.bmx-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.bmx-activity-item:last-child { border-bottom: none; }
.bmx-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.bmx-activity-body { flex: 1; min-width: 0; }
.bmx-activity-text { font-size: .9rem; line-height: 1.4; }
.bmx-activity-time { font-size: .78rem; margin-top: .25rem; }

/* ─── Chef badges ────────────────────────────────────────────── */
.bmx-chef-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 20px;
  vertical-align: middle;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.bmx-chef-badge--sous_chef   { background: rgba(176,224,230,.18); color: #2196f3; border: 1px solid rgba(33,150,243,.3); }
.bmx-chef-badge--chef        { background: rgba(255,165,0,.12); color: #e67e22; border: 1px solid rgba(230,126,34,.3); }
.bmx-chef-badge--master_chef { background: rgba(255,215,0,.15); color: #c0972a; border: 1px solid rgba(192,151,42,.35); }

/* ─── Friend cards ───────────────────────────────────────────── */
.bmx-friend-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  transition: background var(--transition), border-color var(--transition);
}
.bmx-friend-card:hover { background: var(--surface-hover); border-color: rgba(232,98,42,.25); }
.bmx-friend-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bmx-friend-card .name { font-weight: 600; font-size: .92rem; color: var(--text-strong); }
.bmx-friend-card .meta { font-size: .78rem; color: var(--text-muted); }

/* ─── Avatar / header edit ──────────────────────────────────── */
.bmx-avatar-edit-btn {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 28px; height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  border: 2px solid var(--surface);
  transition: background var(--transition);
}
.bmx-avatar-edit-btn:hover { background: var(--accent-hover); }
.bmx-avatar-upload-form { display: contents; }
.bmx-header-pos-btn {
  position: absolute;
  bottom: .6rem; right: .6rem;
  z-index: 2;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.bmx-header-pos-btn:hover { background: rgba(0,0,0,.75); }

/* ─── Error pages ────────────────────────────────────────────── */
.bmx-error-page { text-align: center; padding: 5rem 1rem; }
.bmx-error-page .code { font-family: var(--font-heading); font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; }
.bmx-error-page .msg  { font-size: 1.4rem; color: var(--text-strong); margin: .5rem 0 1rem; }

/* ─── Misc ───────────────────────────────────────────────────── */
.tracking-wide { letter-spacing: .2em; }
.bmx-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.bmx-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.bmx-empty i { font-size: 2.5rem; display: block; margin-bottom: .7rem; opacity: .5; }
.min-w-0 { min-width: 0 !important; }
.text-inherit { color: inherit !important; }

/* ─── Sidebar widgets ───────────────────────────────────────── */
.bmx-sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.bmx-sidebar-title {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
}

/* Hot recipes list */
.bmx-hot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.bmx-hot-item { display: flex; align-items: center; gap: .6rem; }
.bmx-hot-rank {
  font-size: .72rem; font-weight: 800; color: var(--text-muted);
  min-width: 1.2rem; text-align: center; flex-shrink: 0;
}
.bmx-hot-item:first-child .bmx-hot-rank { color: var(--accent); }
.bmx-hot-title {
  font-size: .82rem; font-weight: 600; color: var(--text-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}
.bmx-hot-item a:hover .bmx-hot-title { color: var(--accent); }

/* Top users list */
.bmx-top-user {
  display: flex; align-items: center; gap: .65rem;
  padding: .35rem .2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  text-decoration: none;
}
.bmx-top-user:hover { background: var(--surface-hover); }
.bmx-top-rank {
  font-size: .7rem; font-weight: 800;
  min-width: 1.3rem; text-align: center;
  color: var(--text-muted);
}
.bmx-top-rank.gold   { color: #f59e0b; }
.bmx-top-rank.silver { color: #94a3b8; }
.bmx-top-rank.bronze { color: #b45309; }

/* Birthday widget */
.bmx-birthday-widget { background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 5%, var(--surface)) 100%); }

/* Accent button */
.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-accent:active { background-color: var(--accent-hover); border-color: var(--accent-hover); }

/* Accent text color utility */
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; color: #fff !important; }

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
  @page { margin: 15mm 20mm; size: A4; }

  /* ── Ascunde ce nu se printează ── */
  .bmx-navbar,
  .bmx-footer,
  .bmx-cookie-banner,
  .bmx-no-print,
  nav[aria-label="breadcrumb"],
  .col-lg-4,
  .bmx-comments-section { display: none !important; }

  /* ── Branding print ── */
  .bmx-print-branding { display: block !important; font-weight: 700; font-size: 12pt; margin-bottom: .15rem; }
  .bmx-print-url      { display: block !important; font-size: 8pt; color: #666 !important; margin-bottom: .5rem; }

  /* ── Layout ── */
  body   { background: #fff !important; color: #000 !important; margin: 0 !important; }
  /* anulează py-4 și orice padding vertical pe container */
  .container-xl { padding: 0 1cm !important; }
  .py-4, .py-3, .py-2 { padding-top: 0 !important; padding-bottom: 0 !important; }
  /* anulează gutter-ul Bootstrap pe row prin variabile CSS */
  #bmx-recipe-row {
    --bs-gutter-y: 0 !important;
    --bs-gutter-x: 0 !important;
    margin: 0 !important;
  }
  .col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }
  /* hero imagine: container fix + imagine umple 100% */
  .bmx-recipe-hero {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    margin-bottom: .6rem !important;
  }
  .bmx-recipe-hero img {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    margin-bottom: 0 !important;
  }

  /* ── Imaginea rețetei ── */
  .bmx-recipe-hero img {
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
  }

  /* ── Carduri conținut fără decor ── */
  .bmx-content-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
    page-break-inside: avoid;
  }
  .bmx-info-card { box-shadow: none !important; }

  /* ── Ingrediente ── */
  .bmx-ingr-check { display: none !important; }
  .bmx-ingr-qty   { color: #000 !important; }
  .bmx-ingr-item  { padding: 2px 0 !important; }

  /* ── Tipografie ── */
  h1 { font-size: 20pt !important; }
  h2 { font-size: 13pt !important; page-break-after: avoid !important; }
  .bmx-section-title { margin-top: 1rem !important; }

  /* ── Evită ruperea de pagini nefericite ── */
  .bmx-recipe-hero, .bmx-info-card { page-break-inside: avoid; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .bmx-admin-sidebar { display: none; }
  .bmx-admin-sidebar.show { display: block; position: fixed; z-index: 1040; }
  .bmx-search-input { width: 100%; }
}
@media (max-width: 767.98px) {
  .bmx-auth-card { padding: 1.5rem 1.25rem; }
  .bmx-recipe-hero { aspect-ratio: 4/3; }
  .bmx-profile-header { height: 150px; }
}
