:root{
  --bg:#0d0f14;
  --panel:#151826;
  --panel-2:#10131d;
  --text:#e8edf7;
  --muted:#9aa3b2;
  /* neon accents to match logo */
  --accent:#00d1ff;          /* cyan glow */
  --accent-2:#ff8a00;        /* orange glow */
  --chip:#1b2133;
  --chip-text:#c9d0e3;
  --card:#0f1422;
  --radius:16px;
  --wrap:1200px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
body.mrb-body{
  margin:0;
  background:radial-gradient(1200px 600px at 20% -10%, #162033 0%, #0b0d12 60%, #08090d 100%);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
}
a{color:var(--accent);text-decoration:none}
.mrb-wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}

/* Header */
.mrb-header{
  position:sticky;
  top:0;
  background:rgba(9,11,17,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #1b2032;
  z-index:100;
}
/* lift header below Concrete toolbar in edit mode */
.ccm-toolbar-visible .mrb-header{ top:48px; }
.ccm-toolbar-visible .mrb-main{ padding-top:8px; }

.mrb-header .mrb-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:68px;
  gap:16px;
  flex-wrap:wrap; /* prevents clipping at smaller widths */
}
.mrb-brand{
  display:flex;align-items:center;gap:10px;
  color:#fff;font-weight:800;letter-spacing:.2px;
  min-width:220px;
}
.mrb-logo,
.mrb-brand img{
  height:76px; /* increase to taste */
  width:auto;
  filter:drop-shadow(0 0 6px rgba(0,209,255,.35));
}
.mrb-wordmark{font-size:20px}
.mrb-wordmark .dot{color:var(--accent)}

.mrb-nav :where(ul){
  display:flex;gap:18px;list-style:none;margin:0;padding:0;
  flex-wrap:wrap; /* allow wrapping so links stay visible */
}
.mrb-nav a{
  color:#dfe7ff;padding:8px 10px;border-radius:10px;border:1px solid transparent;display:block
}
.mrb-nav a:hover{
  border-color:rgba(0,209,255,.35);
  background:linear-gradient(135deg, rgba(124,92,255,.10), rgba(0,209,255,.10))
}
/* active states from Auto-Nav */
.mrb-nav a.nav-selected,
.mrb-nav a.nav-path-selected{
  color:#0b0d12;
  border-color:rgba(124,92,255,.45);
  background: var(--accent-2); /* solid orange */
  box-shadow:0 0 12px rgba(0,209,255,.25);
}

/* Hero */
.mrb-hero{
  padding:56px 0 28px;
  border-bottom:1px solid #1b2032;
  background:linear-gradient(180deg, rgba(0,209,255,.05), rgba(255,138,0,.03))
}
.mrb-h1{margin:0 0 6px;font-size:40px;letter-spacing:.2px;text-shadow:0 0 16px rgba(0,209,255,.25)}
.mrb-sub{margin:0;color:var(--muted)}

/* Content wrapper spacing */
.mrb-content{padding:28px 0}

/* Footer */
.mrb-footer{margin-top:40px;border-top:1px solid #1b2032;background:#0b0e16}
.mrb-footer .mrb-wrap{display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:64px}
.mrb-foot-right,.mrb-foot-left{color:#aeb6c9}

/* ===== Recipe Vault ===== */
.rv{
  --bg:var(--bg);
  --panel:var(--panel);
  --panel-2:var(--panel-2);
  --text:var(--text);
  --muted:var(--muted);
  --accent:var(--accent);
  --accent-2:var(--accent-2);
  --chip:var(--chip);
  --chip-text:var(--chip-text);
  --card:var(--card);
  --radius:var(--radius);
  --shadow:var(--shadow);
  background:radial-gradient(1200px 600px at 20% -10%, #162033 0%, #0b0d12 60%, #08090d 100%);
  color:var(--text);
  padding:28px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  margin:28px 0;
}
/* Header */
.rv .hero{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin-bottom:18px}
.rv .hero h2{margin:0;font-size:28px;letter-spacing:.4px}
.rv .search{position:relative}
.rv .search input{background:var(--panel);color:var(--text);border:1px solid #23283a;border-radius:999px;padding:12px 44px 12px 14px;min-width:320px;outline:none}
.rv .search .icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:14px;color:var(--muted)}
/* Tabs */
.rv .tabs{display:flex;gap:8px;flex-wrap:wrap;background:var(--panel-2);border:1px solid #23283a;border-radius:12px;padding:6px;margin-bottom:16px}
.rv .tab{appearance:none;border:0;background:transparent;color:var(--muted);padding:10px 14px;border-radius:10px;cursor:pointer;transition:all .15s ease}
.rv .tab.active{background:linear-gradient(135deg, rgba(124,92,255,.18), rgba(0,209,255,.18));color:var(--text);border:1px solid rgba(124,92,255,.35);box-shadow:inset 0 0 0 1px rgba(0,209,255,.15)}
/* Chips */
.rv .chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.rv .chip{background:var(--chip);color:var(--chip-text);border:1px solid #283049;padding:8px 12px;border-radius:999px;font-size:13px;cursor:pointer}
.rv .chip.active{background:linear-gradient(135deg,#1e2640,#17233d);border-color:#3a4670}
/* Grid */
.rv .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.rv .card{background:linear-gradient(180deg,#0f1422,#0b0f19);border:1px solid #1b2032;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform .12s ease,border-color .2s ease}
.rv .card:hover{transform:translateY(-2px);border-color:#283257}
.rv .thumb{aspect-ratio:4/3;background:#121629;display:grid;place-items:center;color:var(--muted);font-size:12px}
.rv .body{padding:12px}
.rv .title{font-size:16px;margin:0 0 6px}
.rv .meta{display:flex;gap:8px;color:var(--muted);font-size:12px;margin-bottom:10px}
.rv .tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.rv .tag{background:#141a2e;color:#b9c3db;font-size:11px;padding:4px 8px;border-radius:999px;border:1px solid #233055}
.rv .macros{display:flex;gap:6px;flex-wrap:wrap;font-size:11px}
.rv .pill{background:linear-gradient(135deg,rgba(124,92,255,.15),rgba(0,209,255,.12));border:1px solid rgba(124,92,255,.32);color:#d7dcff;padding:4px 8px;border-radius:8px}
/* Actions */
.rv .actions{margin-top:8px;display:flex;gap:8px}
.rv .btn{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#0b0d12;border:none;padding:8px 10px;border-radius:10px;font-weight:600;font-size:12px;cursor:pointer;transition:transform .08s ease}
.rv .btn:hover{transform:translateY(-1px)}
.rv .btn.ghost{background:transparent;color:#c8d0e9;border:1px solid #2a3352}
/* Responsive */
@media (max-width:640px){
  .mrb-h1{font-size:32px}
  .rv .hero{grid-template-columns:1fr}
  .rv .search input{min-width:100%}
}
/* ========== Neon polish: logo glow, nav glow, header divider ========== */

/* Make the logo link glow on hover/focus */
.mrb-brand a{display:inline-flex; align-items:center}
.mrb-brand a img,
.mrb-brand a svg{
  transition: filter .2s ease, transform .2s ease;
}
.mrb-brand a:hover img,
.mrb-brand a:focus img,
.mrb-brand a:hover svg,
.mrb-brand a:focus svg{
  /* cyan inner + orange outer glow */
  filter:
    drop-shadow(0 0 10px rgba(0,209,255,.55))
    drop-shadow(0 0 16px rgba(255,138,0,.35));
  transform: translateY(-1px);
}

/* Active nav: solid orange + softer neon halo */
.mrb-nav a.nav-selected,
.mrb-nav a.nav-path-selected{
  color:#0b0d12;
  background: var(--accent-2);               /* solid orange */
  border-color: rgba(255,138,0,.9);
  box-shadow:
    0 0 0 2px rgba(255,138,0,.25),
    0 0 18px rgba(255,138,0,.45);
}

/* Subtle header divider + micro-shadow for separation */
.mrb-header{ position: sticky; z-index: 100; } /* already set; restated for clarity */
.mrb-header{ position: sticky; top: 0; }       /* keeps sticky behavior */
.mrb-header::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px; height:1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0,209,255,.25),
    rgba(255,138,0,.25),
    transparent
  );
  pointer-events:none;
}
.mrb-header::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-16px; height:16px;
  background: linear-gradient(180deg, rgba(0,0,0,.32), transparent);
  pointer-events:none;
}

/* Respect Concrete toolbar offset (already present, but the shadows extend too) */
.ccm-toolbar-visible .mrb-header::before,
.ccm-toolbar-visible .mrb-header::after{
  /* no change needed; just ensures they render above content */
  z-index: 101;
}
.site-logo img {
  transition: filter 0.3s ease;
}

.site-logo:hover img {
  filter: brightness(1.1) saturate(1.2);
}
/* =========================
   Recipes Page Layout
========================= */
.recipe-results {
    padding-top: 80px;
}

/* =========================
   Recipe Filters
========================= */
.recipe-filters {
    margin-bottom: 40px;
    padding: 26px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.03)
    );
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
}

.recipe-filters label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 6px;
}

.recipe-filters select {
    width: 100%;
    height: 46px;
    font-size: 0.95rem;
    background: #121212;
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0 12px;
}

.recipe-filters .btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    background: #f9a825;
    color: #000;
    border: none;
}

/* =========================
   Recipe Grid
========================= */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* =========================
   Recipe Cards
========================= */
.recipe-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-card-inner {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.08)
    );
    border-radius: 22px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.22);
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.recipe-card:hover .recipe-card-inner {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.28),
        rgba(255,255,255,0.12)
    );
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
    border-color: rgba(255,255,255,0.45);
}

.recipe-card-image {
    height: 170px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.45)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.10);
}

.recipe-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.recipe-card-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 14px;
}

.recipe-card-sub .dot {
    opacity: 0.85;
}

/* Pills (Cuisine / Course / Protein) */
.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.recipe-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 40, 90, 0.55);
    border: 1px solid rgba(120, 170, 255, 0.22);
    color: rgba(255,255,255,0.90);
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

/* Macros pills */
.recipe-macros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recipe-macros .macro {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(60, 70, 120, 0.35);
    border: 1px solid rgba(160, 170, 255, 0.22);
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
}

.recipe-card-image {
    position: relative;
    width: 100%;
    height: 220px; /* adjust if you want taller/shorter cards */
    overflow: hidden;
    border-radius: 12px; /* optional, matches modern card UI */
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* THIS is the magic */
    display: block;
}
/*fallback image*/

.recipe-card-image {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );
}

/* ===============================
   ADD RECIPE PAGE
   =============================== */

.add-recipe-page {
    max-width: 900px;
    padding: 24px 0;
}

.add-recipe-page .page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Form layout */
.add-recipe-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

/* Form groups */
.add-recipe-form .form-group {
    display: flex;
    flex-direction: column;
}

/* Labels */
.add-recipe-form label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

/* Inputs */
.add-recipe-form input[type="text"],
.add-recipe-form input[type="number"],
.add-recipe-form input[type="file"],
.add-recipe-form select,
.add-recipe-form textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.add-recipe-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox list (Protein section) */
.add-recipe-form .form-group label input[type="checkbox"] {
    margin-right: 6px;
}

/* Submit button */
.add-recipe-form button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 12px 22px;
    font-size: 15px;
    align-self: flex-start;
}


/* Protein section */
.protein-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px 12px;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
}

.protein-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.protein-option input[type="checkbox"] {
    accent-color: #f5b942;
}

/* Save Recipe button */
.add-recipe-form button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;

    background: linear-gradient(
        135deg,
        #f5b942,
        #f39c12
    );
    color: #111;
    border: none;
    border-radius: 10px;

    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Hover / focus */
.add-recipe-form button[type="submit"]:hover,
.add-recipe-form button[type="submit"]:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.35);
    background: linear-gradient(
        135deg,
        #f7c45a,
        #f5a623
    );
}

/* Active (click) */
.add-recipe-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.25);
}
/* Sections */
.form-section {
    margin-bottom: 36px;
}

.primary-section {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Section label */
.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
    display: block;
}

/* Macros */
.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.secondary-section input {
    background: rgba(255,255,255,0.04);
}

/* Ingredients / Instructions spacing */
.add-recipe-form textarea {
    margin-top: 6px;
}

/* Force smarter grid placement */
.add-recipe-form {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

/* Ingredients + Instructions live in right column */
.form-section:last-of-type {
    grid-column: 2;
    grid-row: 1 / span 3;
}
/* Right-column meta block */
.meta-right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Explicit grid layout for Add Recipe */
.add-recipe-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 32px;
    align-items: start;
}

/* LEFT COLUMN */
.primary-section {
    grid-column: 1;
}

.secondary-section {
    grid-column: 1;
}

/* RIGHT COLUMN CONTENT */
.add-recipe-form .form-section:last-of-type {
    grid-column: 2;
    grid-row: 1 / span 3;
}

/* Meta block stays right */
.meta-right {
    grid-column: 2;
}

/* ===== Explicit Grid Layout (No Guessing) ===== */

.add-recipe-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "left-top   right-top"
        "left-top   right-bottom"
        "left-bottom right-bottom"
        "save save";
    column-gap: 40px;
    row-gap: 32px;
    align-items: start;
}

/* Map areas */
.form-section[data-area="left-top"] {
    grid-area: left-top;
}

.form-section[data-area="right-top"] {
    grid-area: right-top;
}

.form-section[data-area="left-bottom"] {
    grid-area: left-bottom;
}

.form-section[data-area="right-bottom"] {
    grid-area: right-bottom;
}

/* Button spans full width */
.add-recipe-form button[type="submit"] {
    grid-area: save;
}
/* Add vertical breathing room between fields */
.add-recipe-form .form-group {
    margin-bottom: 22px;
}
/* Extra spacing before grouped sections */
.add-recipe-form .protein-group,
.add-recipe-form .section-label {
    margin-top: 28px;
}

.page-intro {
    margin-top: 8px;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

.page-intro a {
    color: #f5b942;
    text-decoration: none;
    font-weight: 600;
}

.page-intro a:hover {
    text-decoration: underline;
}

.recipe-saved-banner {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(245,185,66,0.12);
    border: 1px solid rgba(245,185,66,0.35);
}

.recipe-saved-banner strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.banner-actions {
    display: flex;
    gap: 16px;
}

.btn-secondary {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.14);
}
.recipe-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-decoration: none;
}

.recipe-edit-link:hover {
    background: rgba(0,0,0,0.8);
}
.recipe-card {
    position: relative;
}

.recipe-edit-link {
    z-index: 100;
    pointer-events: auto;
}

.recipe-card-image {
    position: relative;
    z-index: 1;
}

/* ================================
   RECIPE DETAIL PAGE
================================ */

.recipe-detail {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Header */
.recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.recipe-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.edit-recipe-link {
    font-size: 0.9rem;
    color: #ffb347;
    text-decoration: none;
    border: 1px solid rgba(255, 179, 71, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.edit-recipe-link:hover {
    background: rgba(255, 179, 71, 0.15);
    border-color: #ffb347;
}

/* Meta */
.recipe-meta {
    margin: 10px 0 20px;
    color: #bbb;
    font-size: 0.95rem;
}

/* Image */
.recipe-image {
    margin: 30px 0 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.recipe-image img {
    width: 100%;
    display: block;
}

/* Content Grid */
.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Columns */
.recipe-column {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(6px);
}

.recipe-column h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #ffb347;
}

/* Text */
.recipe-text {
    line-height: 1.7;
    font-size: 1rem;
    color: #e5e5e5;
}

/* Mobile */
@media (max-width: 900px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }

    .recipe-title {
        font-size: 2rem;
    }
}
/* ================================
   RECIPE DETAIL IMAGE WIDTH FIX
================================ */

.recipe-image-wrap {
    display: flex;
    justify-content: flex-start; /* left aligned */
    margin: 30px 0 50px;
}

.recipe-image {
    max-width: 380px;   /* ðŸ”¥ key change: MUCH smaller */
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   RECIPE TOP LAYOUT FIX
================================ */

.recipe-top {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}
.recipe-meta-box {
    margin-top: 28px;
}

/* Image stays contained */
.recipe-image {
    max-width: 360px;
}

/* Meta box = same width as instructions column */
.recipe-meta-box {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Top stats spacing */
.recipe-meta-box > div {
    margin-bottom: 10px;
}

/* Macro row */
.recipe-macros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.recipe-macros div {
    text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
    .recipe-top {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .recipe-meta-box {
        margin-top: 20px;
    }
}

.mrbox-cta {
    background: #1b1b1b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 24px 28px;

    /* 👇 spacing control */
    margin-top: 55px;
    margin-bottom: 1px;
}

.mrbox-cta h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
}

.mrbox-cta p {
    margin: 0 0 16px;
    color: #cccccc;
    max-width: 720px;
}
.recipe-filters {
    margin-top: 0;
}

.mrbox-cta {
    max-width: 1120px;   /* match recipe grid width */
    margin-left: auto;
    margin-right: auto;
}

.recipe-card-inner {
    position: relative;
}

.starter-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    z-index: 3;
}

.recipe-filters button[type="submit"] {
    background-color: #f2b24c;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-filters button[type="submit"]:hover {
    background-color: #e6a53c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    cursor: pointer;
}

.recipe-filters button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.recipe-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

/* EDIT */
.recipe-edit-link {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    cursor: pointer;
}

.recipe-edit-link:hover {
    background: rgba(0,0,0,0.85);
}

/* DELETE */
.recipe-delete-link {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(180, 40, 40, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
}

.recipe-delete-link:hover {
    background: rgba(220, 60, 60, 0.95);
}

/* Remove default form spacing */
.recipe-delete-form {
    margin: 0;
}



/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   FIX: Recipe Card Action Buttons (FINAL)
========================================= */

/* Card becomes the anchor */
.recipe-card-inner {
    position: relative;
    z-index: 1;
}

/* Image stays visual-only */
.recipe-card-image {
    position: relative;
    z-index: 1;
    pointer-events: none; /* 🔥 critical */
}

/* Actions live ABOVE image, not inside it */
.recipe-actions {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    flex-direction: row;
    gap: 6px;

    align-items: center;
    z-index: 100;
}

/* Buttons — NORMALIZE <a> vs <button> */
.recipe-edit-link,
.recipe-delete-link {
    position: relative;
    z-index: 101;
    pointer-events: auto;
    white-space: nowrap;

    display: inline-flex;     /* 🔥 normalize anchor + button */
    align-items: center;      /* 🔥 vertical centering */
    height: 26px;             /* 🔥 THE NUMBER */
    padding: 0 8px;           /* horizontal only */
    line-height: 1;
}
.recipe-edit-link {
    top: -1px;   /* 🔥 THIS IS THE NUMBER */
}

/* 🔥 STOP CONCRETE FROM ADDING PANEL BACKGROUNDS TO HOME SECTIONS */
.mrb-content > .ccm-area {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 🔥 FIX: Push first home block below sticky header */
.ccm-page .ccm-page-body > .ccm-area:first-child {
  margin-top: 92px;
}

/* FIX: push page content below sticky header */
.mrb-content{
  padding-top: 80px !important;  /* adjust this number only */
  padding-bottom: 28px;
}
.mrb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ccm-block-autonav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrb-auth-nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.mrb-auth-nav a,
.mrb-auth-nav button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.mrb-auth-nav button:hover,
.mrb-auth-nav a:hover {
  text-decoration: underline;
}

/* Hide the sitemap-created auth links when logged in */
body.logged-in .mrb-global-nav a[href*="/login"],
body.logged-in .mrb-global-nav a[href*="/register"] {
  display: none !important;
}

/* Also hide their <li> containers so spacing doesn't remain */
body.logged-in .mrb-global-nav a[href*="/login"]::before,
body.logged-in .mrb-global-nav a[href*="/register"]::before {
  display: none !important;
}

body.logged-in .mrb-global-nav a[href*="/login"],
body.logged-in .mrb-global-nav a[href*="/register"] {
  display: none !important;
}
body.logged-in .mrb-global-nav a[href*="/login"] { display:none !important; }
body.logged-in .mrb-global-nav a[href*="/register"] { display:none !important; }

body.logged-in .mrb-global-nav a[href*="/login"],
body.logged-in .mrb-global-nav a[href*="/register"] {
  display: none !important;
}
body.logged-in .mrb-global-nav a[href*="/login"] { display:none !important; }
body.logged-in .mrb-global-nav a[href*="/register"] { display:none !important; }

/* Hide the parent li (works in modern browsers) */
body.logged-in .mrb-global-nav li:has(a[href*="/login"]),
body.logged-in .mrb-global-nav li:has(a[href*="/register"]) {
  display: none !important;
}
body.logged-in .nav li:has(a[href*="login"]),
body.logged-in .nav li:has(a[href*="register"]) {
  display: none !important;
}
/* When logged OUT, hide the auth nav (prevents duplicate login/register) */
body.logged-out .mrb-auth-nav {
  display: none !important;
}
/* Logged-in username indicator */
.mrb-auth-nav .mrb-user {
  color: #f5a623; /* same orange as Home button */
  font-weight: 600;
  cursor: default;
}
.mrb-auth-nav .mrb-user {
  color: #f5a623;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ===============================
   MyRecipeBox – Contact Form
   =============================== */

.mrb-contact-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Labels */
.mrb-contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #f5f5f5;
}

/* Inputs + textarea */
.mrb-contact-form input[type="text"],
.mrb-contact-form input[type="email"],
.mrb-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-size: 16px;
}

.mrb-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Focus state */
.mrb-contact-form input:focus,
.mrb-contact-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
}

/* Submit button */
.mrb-contact-form input[type="submit"],
.mrb-contact-form button {
  background: #f59e0b;
  color: #000;
  border: none;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.mrb-contact-form input[type="submit"]:hover,
.mrb-contact-form button:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* Required text */
.mrb-contact-form .required,
.mrb-contact-form .ccm-required {
  color: #f59e0b;
}

/* Success & error messages */
.mrb-contact-form .ccm-message {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 6px;
}

.mrb-contact-form .ccm-message-success {
  background: rgba(16,185,129,0.15);
  color: #10b981;
}

.mrb-contact-form .ccm-message-error {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .mrb-contact-form {
    padding: 20px;
  }
}

/* PRICING */
.pricing-section {
  padding: 5px 20px;
  text-align: center;
}

.pricing-title {
  font-size: 2.4rem;
  margin-bottom: 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: linear-gradient(180deg, #121212, #0b0b0b);
  border-radius: 18px;
  padding: 35px 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
}

.pricing-card.featured {
  border: 2px solid #3fa9f5;
}

.pricing-card.pro {
  border: 2px solid #f4c46d;
}

.plan-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.plan-price span {
  font-size: 1rem;
  opacity: .7;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.plan-features li {
  margin: 10px 0;
  opacity: .85;
}

.pricing-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.pricing-btn:hover {
  transform: translateY(-2px);
}

.pricing-btn.secondary {
  background: #2a2a2a;
  color: #fff;
}

.pricing-btn.primary {
  background: #3fa9f5;
  color: #0b0b0b;
}

.pricing-btn.gold {
  background: #f4c46d;
  color: #0b0b0b;
}

.pricing-footnote {
  margin-top: 40px;
  opacity: .6;
  font-size: .9rem;
}
.pricing-card:not(.featured):not(.pro) {
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.add-recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

/* AI Import Button */
.ai-import-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  /* darker LEFT → lighter RIGHT */
  background: linear-gradient(135deg, #d48800 0%, #ffcc33 100%);
  color: #1a1a1a;


  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(232, 155, 0, 0.35);
  text-decoration: none;

  position: relative;
}

.ai-import-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;

  /* white sparkle SVG (not emoji) */
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2l1.4 6.1L20 10l-6.6 1.9L12 18l-1.4-6.1L4 10l6.6-1.9L12 2z'/%3E%3C/svg%3E");

  animation: sparklePulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.ai-import-btn:hover {
  background: linear-gradient(135deg, #ffd766, #f0a400);
  color: #000;
  box-shadow: 0 8px 22px rgba(232, 155, 0, 0.45);
}

@keyframes sparklePulse {
  0%   { transform: scale(1); opacity: 0.85; }
  50%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}
/* =========================
   DESKTOP NAV (default)
   ========================= */

.mrb-nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mrb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mrb-auth-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Hamburger hidden on desktop */
.mrb-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #f5b85c;
  cursor: pointer;
}


/* =========================
   MOBILE NAVIGATION
   ========================= */
@media (max-width: 768px) {

  /* Show hamburger */
  .mrb-menu-toggle {
    display: block;
  }

  /* Hide entire nav wrapper by default */
  .mrb-nav-wrap {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.92);
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* Show nav when toggled */
  .mrb-nav-wrap.open {
    display: flex;
  }

  /* Stack main nav */
  .mrb-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  /* 🔥 FIX: hide Login / Register coming from MAIN nav only (robust) */
  .mrb-nav a[href*="login"],
  .mrb-nav a[href*="register"],
  .mrb-nav a[href*="sign-in"],
  .mrb-nav a[href*="sign_in"],
  .mrb-nav a[href*="signup"],
  .mrb-nav a[href*="sign-up"],
  .mrb-nav a[href*="create-account"],
  .mrb-nav a[href*="create_account"],
  .mrb-nav a[href*="index.php/login"],
  .mrb-nav a[href*="index.php/register"] {
    display: none !important;
  }

  /* Stack auth nav */
  .mrb-auth-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  /* User greeting */
  .mrb-user {
    font-weight: 600;
    color: #f5b85c;
  }

  /* Logout button looks like link */
  .mrb-auth-nav button {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
  }
}
/* =========================
   MOBILE AUTH NAV FIX
   ========================= */
@media (max-width: 768px) {

  /* Ensure auth nav links are visible */
  .mrb-nav-wrap.open .mrb-auth-nav {
    display: flex !important;
  }

  .mrb-nav-wrap.open .mrb-auth-nav a,
  .mrb-nav-wrap.open .mrb-auth-nav button {
    display: block !important;
  }

}