/* =========================================================
   RECIPANION THEME V1
   Fresh · Warm · Home · Food
   ========================================================= */

:root {
  /* Main surfaces */
  --bg: #f7f5ef;
  --surface: #fffdf9;
  --surface-soft: #eaf0e6;

  /* Typography */
  --text: #293029;
  --muted: #6f756d;

  /* Primary brand */
  --accent: #5f7f52;
  --accent-dark: #3f6138;
  --accent-soft: #e6eee1;

  /* Supporting accent */
  --warm-accent: #d97857;
  --warm-accent-soft: #faeee9;

  /* Utility */
  --border: #dce3d7;
  --danger: #b74c3c;
  --danger-soft: #fbefec;
  --warning: #d7a947;
}


/* =========================================================
   FOUNDATION
   ========================================================= */

html,
body {
  background: var(--bg);
  color: var(--text);
}


body {
  accent-color: var(--accent);
}


/* =========================================================
   CARDS / SURFACES
   ========================================================= */

.account-console,
.account-section,
.recipe-new-card,
.recipe-card,
.recipe-detail-card {
  border-color: var(--border);
}


.account-console,
.account-section,
.recipe-new-card {
  background: var(--surface);
}


/* =========================================================
   PRIMARY ACTIONS
   ========================================================= */

.account-primary-action,
.recipe-new-button.primary,
.submit-recipe-button {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}


.account-primary-action:hover,
.recipe-new-button.primary:hover,
.submit-recipe-button:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}


/* =========================================================
   ACTIVE NAV / TABS
   ========================================================= */

.account-tab-button.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}


/* =========================================================
   TAGS
   ========================================================= */

.recipe-tag-chip,
.recipe-card-tag-v1,
.recipe-detail-tag,
.account-organize-tag-chip.active {
  background: var(--accent-soft);
  border-color: #cddbc6;
  color: var(--accent-dark);
}


.recipe-tag-option:hover,
.account-organize-tag-chip:hover {
  border-color: var(--accent);
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent) !important;
  outline-color: var(--accent) !important;
}


/* =========================================================
   SOFT UI BLOCKS
   ========================================================= */

.account-tag-family-picker,
.account-organize-summary {
  background: var(--surface-soft);
  border-color: var(--border);
}


/* =========================================================
   DANGER
   ========================================================= */

.account-danger-action {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #fff !important;
}


.account-danger-section {
  background: var(--danger-soft);
}


/* =========================================================
   LINKS / SMALL ACCENTS
   ========================================================= */

a {
  color: var(--accent-dark);
}


/* Warm accent is intentionally used sparingly */
.recipanion-warm-accent {
  color: var(--warm-accent);
}


/* =========================================================
   RECIPANION THEME V2
   Remove remaining Maelie warmth from neutral UI
   ========================================================= */

:root {
  --bg: #f7f6f1;
  --surface: #fffefa;
  --surface-soft: #edf3e9;

  --text: #293229;
  --muted: #6f786e;

  --accent: #5d854e;
  --accent-dark: #3f6538;
  --accent-soft: #e7f0e2;

  --border: #d8e2d3;

  --warm-accent: #d87957;
  --danger: #b94d3d;
}


/* ---------- GENERAL SECONDARY BUTTONS ---------- */

.recipe-new-button:not(.primary),
.account-secondary-action {
  background: var(--accent-soft) !important;
  border-color: var(--border) !important;
  color: var(--accent-dark) !important;
}


.recipe-new-button:not(.primary):hover,
.account-secondary-action:hover {
  background: #dce9d6 !important;
  border-color: #bfd2b8 !important;
}


/* ---------- RECIPE NEW / EDIT ---------- */

.recipe-new-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}


.recipe-new-card input,
.recipe-new-card textarea,
.recipe-new-card select {
  border-color: #d7dfd3 !important;
  background: #fff !important;
}


.recipe-new-card input:focus,
.recipe-new-card textarea:focus,
.recipe-new-card select:focus {
  border-color: var(--accent) !important;
}


/* ---------- FILE / IMAGE AREA ---------- */

.recipe-new-image-preview,
.recipe-new-image-placeholder {
  background: var(--accent-soft) !important;
  border-color: var(--border) !important;
}


/* ---------- TAGS ---------- */

.recipe-tag-none {
  color: var(--muted);
}


.recipe-tag-option {
  background: #fff !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}


.recipe-tag-option:hover {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
}


/* ---------- RECIPE FILTERS ---------- */

.filters-wrap {
  background: #faf9f5 !important;
  border-color: var(--border) !important;
}


.recipe-filter-select {
  border-color: var(--border) !important;
}


/* ---------- SHOPPING ---------- */

.shopping-card,
.shopping-section,
.shopping-panel {
  border-color: var(--border) !important;
}


.shopping-add-button,
.shopping-primary-action {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}


/* ---------- COOK MODE ---------- */

.cook-progress-bar,
.cook-progress-fill {
  accent-color: var(--accent);
}


.cook-step-number,
.recipe-step-number {
  background: var(--accent) !important;
  color: #fff !important;
}


/* ---------- DANGER STAYS WARM ---------- */

.danger,
.account-danger-action,
.recipe-delete-button {
  color: var(--danger);
}


/* ---------- SOFTER SELECTION ---------- */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}


/* =========================================================
   RECIPANION BRAND
   ========================================================= */

.recipanion-brand-logo {
  width: 62px;
  height: 62px;

  flex: 0 0 62px;

  object-fit: contain;

  display: block;

  margin-right: 10px;
}


@media (max-width: 650px) {

  .recipanion-brand-logo {
    width: 48px;
    height: 48px;

    flex-basis: 48px;

    margin-right: 7px;
  }

}


/* =========================================================
   RECIPANION BRAND V2
   ========================================================= */

.recipanion-brand-logo {
  width: 64px;
  height: 64px;

  object-fit: contain;

  flex:
    0 0 64px;

  display: block;
}


/*
 * Op login/register/reset staat het merk
 * gecentreerd; daar mag het logo groter.
 */
main .recipanion-brand-logo {
  width: 72px;
  height: 72px;

  flex-basis: 72px;
}


header .recipanion-brand-logo {
  width: 60px;
  height: 60px;

  flex-basis: 60px;
}


@media (max-width: 650px) {

  header .recipanion-brand-logo {
    width: 48px;
    height: 48px;

    flex-basis: 48px;
  }

}


/* =========================================================
   RECIPANION BRAND V3
   ========================================================= */


/* Oude witte emoji-container wordt echte brand host */
.recipanion-logo-host {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 64px !important;
  height: 64px !important;

  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;
}


.recipanion-logo-host
.recipanion-brand-logo {
  width: 64px;
  height: 64px;

  object-fit: contain;

  display: block;
}


/* Auth iets groter */
main
.recipanion-logo-host {
  width: 76px !important;
  height: 76px !important;
}


main
.recipanion-logo-host
.recipanion-brand-logo {
  width: 76px;
  height: 76px;
}


/* =========================================================
   COMPACT HOME INTRO
   ========================================================= */

.recipanion-home-intro {
  margin:
    22px
    0
    24px !important;

  padding:
    24px
    30px !important;

  min-height: 0 !important;

  background:
    linear-gradient(
      135deg,
      #edf3e9 0%,
      #f7f6f1 100%
    ) !important;

  border:
    1px
    solid
    var(--border) !important;

  border-radius:
    22px !important;

  box-shadow:
    none !important;
}


.recipanion-home-intro h1,
.recipanion-home-intro h2,
.recipanion-home-intro h3 {
  margin:
    0
    0
    6px !important;

  font-size:
    clamp(
      28px,
      4vw,
      40px
    ) !important;

  line-height:
    1.08 !important;

  color:
    var(--text) !important;
}


.recipanion-home-intro p {
  margin: 0 !important;

  max-width: 680px;

  color:
    var(--muted) !important;

  font-size:
    16px !important;

  line-height:
    1.5 !important;
}


@media (max-width: 650px) {

  .recipanion-home-intro {
    margin-top:
      16px !important;

    padding:
      20px !important;

    border-radius:
      18px !important;
  }


  .recipanion-home-intro h1,
  .recipanion-home-intro h2,
  .recipanion-home-intro h3 {
    font-size:
      28px !important;
  }

}


/* =========================================================
   RECIPANION COLOR SYSTEM V4
   Fresh food · warm home · not spinach soup :)
   ========================================================= */

:root {
  --bg: #faf7f0;
  --surface: #fffdf9;

  --text: #293129;
  --muted: #70776e;

  --accent: #56884d;
  --accent-dark: #355e3b;
  --accent-soft: #e6efe2;

  --coral: #e88467;
  --coral-soft: #f8e8e1;

  --butter: #f2ca72;
  --butter-soft: #faf0cf;

  --teal: #79a9a5;
  --teal-soft: #e4f0ee;

  --border: #dde3d8;

  --danger: #b94d3d;
}


/* -----------------------------------------
   HOME INTRO
   ----------------------------------------- */

.recipanion-home-intro {
  background:
    linear-gradient(
      120deg,
      #fff8ee 0%,
      #fdf1df 52%,
      #f7e8df 100%
    ) !important;

  border-color:
    #eadfd3 !important;
}


/* -----------------------------------------
   LESS GREEN EVERYWHERE
   ----------------------------------------- */

.account-tab-button.active {
  background:
    var(--accent-soft);
}


/* secondary neutral controls */

.recipe-new-button:not(.primary),
.account-secondary-action {
  background:
    #f5f2eb !important;

  border-color:
    #e5dfd5 !important;

  color:
    var(--text) !important;
}


/* inputs stay fresh white */

input,
textarea,
select {
  background:
    #fff !important;
}


/* -----------------------------------------
   SMALL WARM ACCENTS
   ----------------------------------------- */

.recipe-filter-label:nth-of-type(2),
.recipanion-warm-accent {
  color:
    var(--coral);
}


/* -----------------------------------------
   TAGS
   ----------------------------------------- */

.recipe-tag-chip,
.recipe-card-tag-v1,
.recipe-detail-tag {
  background:
    var(--accent-soft);

  color:
    var(--accent-dark);
}


/* alternate warmth for visual rhythm */

.recipe-card-tag-v1:nth-child(2n) {
  background:
    var(--butter-soft);

  border-color:
    #ead9a8;

  color:
    #725d25;
}


/* -----------------------------------------
   SOFT PANELS
   ----------------------------------------- */

.account-organize-summary,
.account-tag-family-picker {
  background:
    #f7f5ee !important;
}


/* =========================================================
   RECIPANION HOME PALETTE
   Sage · Coral · Teal · Butter
   ========================================================= */

.home-actions .big-action {
  position: relative;

  overflow: hidden;

  border-width: 1px !important;
  border-style: solid !important;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}


.home-actions .big-action:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 28px
    rgba(41, 49, 41, .08);
}


/* ---------------------------------------------------------
   RECIPES · SAGE
   --------------------------------------------------------- */

.home-recipes-action {
  background:
    linear-gradient(
      145deg,
      #e8f1e4 0%,
      #f3f7f0 100%
    ) !important;

  border-color:
    #cadcc2 !important;

  color:
    #315634 !important;
}


.home-recipes-action .action-title {
  color:
    #315634 !important;
}


.home-recipes-action .action-subtitle {
  color:
    #60745f !important;
}


.home-recipes-action .action-icon {
  display: inline-grid;

  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    #d5e7ce;
}


/* ---------------------------------------------------------
   ACCOUNT · CORAL
   --------------------------------------------------------- */

.home-account-action {
  background:
    linear-gradient(
      145deg,
      #faebe5 0%,
      #fff8f5 100%
    ) !important;

  border-color:
    #efd1c5 !important;

  color:
    #49352e !important;
}


.home-account-action .action-title {
  color:
    #49352e !important;
}


.home-account-action .action-subtitle {
  color:
    #7d665e !important;
}


.home-account-action .home-account-icon {
  display: inline-grid;

  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    #f5d9ce !important;
}


.home-account-action::after {
  color:
    #d97857 !important;
}


/* ---------------------------------------------------------
   SHOPPING · TEAL
   --------------------------------------------------------- */

.home-shopping-action {
  background:
    linear-gradient(
      145deg,
      #e5f1ef 0%,
      #f5faf9 100%
    ) !important;

  border-color:
    #c8dfdb !important;

  color:
    #315f5b !important;
}


.home-shopping-action .action-title {
  color:
    #315f5b !important;
}


.home-shopping-action .action-subtitle {
  color:
    #647b78 !important;
}


.home-shopping-action .action-icon {
  display: inline-grid;

  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    #d1e7e3;
}


/* ---------------------------------------------------------
   WEEK MENU · BUTTER
   --------------------------------------------------------- */

.home-week-action {
  background:
    linear-gradient(
      145deg,
      #faf0cf 0%,
      #fffaf0 100%
    ) !important;

  border-color:
    #ebdaa4 !important;

  color:
    #665421 !important;
}


.home-week-action .action-title {
  color:
    #665421 !important;
}


.home-week-action .action-subtitle {
  color:
    #807452 !important;
}


.home-week-action .action-icon {
  display: inline-grid;

  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    #f4e2a7;
}


/* ---------------------------------------------------------
   HOME INTRO · WARMER, NOT GREEN
   --------------------------------------------------------- */

.recipanion-home-intro {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      120deg,
      #fffaf2 0%,
      #fff3df 48%,
      #faebe5 100%
    ) !important;

  border-color:
    #eadfd1 !important;
}


.recipanion-home-intro::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;
  bottom: 0;

  width: 6px;

  background:
    linear-gradient(
      to bottom,
      #e88467,
      #f2ca72
    );
}


.recipanion-home-intro h1,
.recipanion-home-intro h2,
.recipanion-home-intro h3 {
  color:
    #2d352d !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

  .home-actions .big-action {
    min-height: 145px;
  }

}


/* =========================================================
   RECIPANION HOME CALM V5
   Calm base, colored accents only
   ========================================================= */

.home-actions .big-action,
.home-recipes-action,
.home-account-action,
.home-shopping-action,
.home-week-action {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;

  box-shadow:
    0 4px 18px
    rgba(41, 49, 41, .04);
}


.home-actions .big-action:hover {
  transform: translateY(-2px);

  border-color:
    #cfd8ca !important;

  box-shadow:
    0 10px 28px
    rgba(41, 49, 41, .07);
}


.home-actions .action-title {
  color: var(--text) !important;
}


.home-actions .action-subtitle {
  color: var(--muted) !important;
}


/* Recepten */
.home-recipes-action .action-icon {
  background: var(--accent-soft) !important;
}


/* Account */
.home-account-action .home-account-icon {
  background: #f8e8e1 !important;
}


.home-account-action::after {
  color: var(--coral) !important;
}


/* Boodschappen */
.home-shopping-action .action-icon {
  background: #e9f1f0 !important;
}


/* Weekmenu */
.home-week-action .action-icon {
  background: #faf0cf !important;
}


/* Hero blijft warm maar subtiel */
.recipanion-home-intro {
  background:
    linear-gradient(
      120deg,
      #fffaf4 0%,
      #fbf6ee 100%
    ) !important;

  border-color:
    #e6dfd4 !important;
}


.recipanion-home-intro::before {
  width: 4px;

  background:
    var(--coral) !important;
}


/* =========================================================
   RECIPANION ICONS V6
   Clean icons, no colored tiles
   ========================================================= */

.home-actions .action-icon,
.home-recipes-action .action-icon,
.home-account-action .home-account-icon,
.home-shopping-action .action-icon,
.home-week-action .action-icon {
  width: auto !important;
  height: auto !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;
}


/* =========================================================
   GREEN USER ICON
   ========================================================= */

.home-account-icon,
.recipanion-user-icon {
  font-size: 0 !important;
}


.home-account-icon::before,
.recipanion-user-icon::before {
  content: "";

  display: block;

  width: 34px;
  height: 34px;

  background: var(--accent);

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.761 0 5-2.686 5-6s-2.239-6-5-6-5 2.686-5 6 2.239 6 5 6Zm0 2c-4.418 0-8 2.239-8 5v3h16v-3c0-2.761-3.582-5-8-5Z'/%3E%3C/svg%3E")
    center / contain
    no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.761 0 5-2.686 5-6s-2.239-6-5-6-5 2.686-5 6 2.239 6 5 6Zm0 2c-4.418 0-8 2.239-8 5v3h16v-3c0-2.761-3.582-5-8-5Z'/%3E%3C/svg%3E")
    center / contain
    no-repeat;
}


/* Bovenin iets kleiner dan op de Home-card */
header .recipanion-user-icon::before {
  width: 22px;
  height: 22px;
}


/* Account-pijl mag het warme accent blijven */
.home-account-action::after {
  color: var(--coral) !important;
}


/* =========================================================
   RECIPANION HOME POLISH V7
   ========================================================= */


/* ---------------------------------------------------------
   COMPACT HERO
   --------------------------------------------------------- */

.recipanion-home-intro {
  margin:
    20px
    0
    22px !important;

  padding:
    20px
    28px !important;

  border-radius:
    20px !important;
}


.recipanion-home-intro h1,
.recipanion-home-intro h2,
.recipanion-home-intro h3 {
  margin:
    0
    0
    5px !important;

  font-size:
    clamp(
      27px,
      3.4vw,
      36px
    ) !important;

  letter-spacing:
    -0.025em;
}


.recipanion-home-intro p {
  font-size:
    15px !important;

  line-height:
    1.45 !important;
}


/* ---------------------------------------------------------
   HOME CARDS
   --------------------------------------------------------- */

.home-actions {
  gap:
    14px !important;
}


.home-actions .big-action {
  min-height:
    164px;

  padding:
    22px !important;

  border-color:
    #e1e3dc !important;

  box-shadow:
    0 3px 14px
    rgba(41, 49, 41, .035);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease;
}


.home-actions .big-action:hover {
  transform:
    translateY(-2px);

  border-color:
    #cfd8ca !important;

  box-shadow:
    0 10px 28px
    rgba(41, 49, 41, .075);
}


.home-actions .big-action:active {
  transform:
    translateY(0)
    scale(.99);

  box-shadow:
    0 3px 10px
    rgba(41, 49, 41, .05);
}


.home-actions .action-icon {
  margin-bottom:
    14px;
}


.home-actions .action-title {
  font-size:
    21px !important;

  line-height:
    1.15;
}


.home-actions .action-subtitle {
  margin-top:
    6px;

  font-size:
    14px !important;
}


/* ---------------------------------------------------------
   ACCOUNT ARROW
   --------------------------------------------------------- */

.home-account-action::after {
  color:
    var(--accent) !important;

  opacity:
    .72;

  transition:
    transform .15s ease,
    opacity .15s ease;
}


.home-account-action:hover::after {
  transform:
    translateX(3px);

  opacity:
    1;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

  .recipanion-home-intro {
    margin:
      16px
      0
      18px !important;

    padding:
      18px
      20px !important;
  }


  .recipanion-home-intro h1,
  .recipanion-home-intro h2,
  .recipanion-home-intro h3 {
    font-size:
      27px !important;
  }


  .home-actions {
    gap:
      11px !important;
  }


  .home-actions .big-action {
    min-height:
      138px;

    padding:
      18px !important;
  }


  .home-actions .action-title {
    font-size:
      19px !important;
  }

}


/* =========================================================
   USER ICON PROPORTION FIX
   ========================================================= */

.home-account-icon::before,
.recipanion-user-icon::before {
  width: 36px !important;
  height: 30px !important;

  background: var(--accent);

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Ccircle cx='14' cy='6' r='5'/%3E%3Cpath d='M4 24v-3c0-5 4.5-8 10-8s10 3 10 8v3H4Z'/%3E%3C/svg%3E")
    center / contain
    no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Ccircle cx='14' cy='6' r='5'/%3E%3Cpath d='M4 24v-3c0-5 4.5-8 10-8s10 3 10 8v3H4Z'/%3E%3C/svg%3E")
    center / contain
    no-repeat;
}


/* Header-user kleiner maar zelfde verhouding */
header .recipanion-user-icon::before {
  width: 24px !important;
  height: 20px !important;
}


/* =========================================================
   RECIPANION UI ICON SYSTEM V8
   ========================================================= */

.r-icon {
  display: inline-block;

  width: 1.15em;
  height: 1.15em;

  flex:
    0 0 auto;

  vertical-align:
    -0.15em;

  color:
    currentColor;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

nav .r-icon,
.bottom-nav .r-icon {
  width: 21px;
  height: 21px;

  color:
    #59645a;

  margin-bottom:
    4px;
}


nav .active .r-icon,
.bottom-nav .active .r-icon {
  color:
    var(--accent-dark);
}


/* ---------------------------------------------------------
   HOME ACTIONS
   --------------------------------------------------------- */

.home-actions .action-icon {
  color:
    #566158 !important;
}


.home-actions .action-icon .r-icon {
  width: 31px;
  height: 31px;

  stroke-width:
    1.8;
}


/* Account blijft bewust merk-groen */
.home-account-icon {
  color:
    var(--accent) !important;
}


.home-account-icon .r-icon {
  width: 34px;
  height: 34px;
}


/* ---------------------------------------------------------
   USER ICON IN HEADER
   --------------------------------------------------------- */

header .recipanion-user-icon::before,
.home-account-icon::before {
  display: none !important;
  content: none !important;
}


header .r-icon {
  width: 20px;
  height: 20px;
}


header .recipanion-user-icon {
  color:
    var(--accent) !important;

  font-size:
    inherit !important;
}


/* ---------------------------------------------------------
   PAGE HEADERS / SECTIONS
   --------------------------------------------------------- */

h1 > .r-icon,
h2 > .r-icon,
h3 > .r-icon,
h4 > .r-icon {
  width: 22px;
  height: 22px;

  margin-right:
    7px;

  color:
    var(--accent-dark);

  vertical-align:
    -0.18em;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

button .r-icon,
a .r-icon {
  width: 18px;
  height: 18px;

  margin-right:
    5px;
}


button:has(> .r-icon:only-child)
.r-icon {
  margin-right: 0;
}


/* ---------------------------------------------------------
   TAG / FILTER LABELS
   --------------------------------------------------------- */

.recipe-filter-label .r-icon,
.account-tab-button .r-icon {
  width: 17px;
  height: 17px;

  margin-right:
    5px;

  color:
    #627061;
}


/* ---------------------------------------------------------
   DANGER
   --------------------------------------------------------- */

.danger .r-icon,
.account-danger-action .r-icon,
.recipe-delete-button .r-icon {
  color:
    var(--danger);
}


/* ---------------------------------------------------------
   SEARCH INPUTS
   --------------------------------------------------------- */

.recipanion-search-input {
  padding-left:
    44px !important;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2370776e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;

  background-repeat:
    no-repeat !important;

  background-position:
    15px center !important;

  background-size:
    19px 19px !important;
}


/* ---------------------------------------------------------
   HOME ACCOUNT ARROW
   --------------------------------------------------------- */

.home-account-action::after {
  content: "" !important;

  width: 22px;
  height: 22px;

  background:
    var(--accent);

  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain
    no-repeat;

  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain
    no-repeat;

  opacity:
    .72;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

  nav .r-icon,
  .bottom-nav .r-icon {
    width: 20px;
    height: 20px;
  }


  .home-actions .action-icon .r-icon {
    width: 28px;
    height: 28px;
  }

}


/* =========================================================
   HOME — OFFICIËLE ICON ASSETS
   ========================================================= */

.home-actions .home-real-icon {
  display: block;

  width: 32px;
  height: 32px;

  margin: 0 0 14px;

  object-fit: contain;

  opacity: .86;
}


@media (max-width: 620px) {

  .home-actions .home-real-icon {
    width: 27px;
    height: 27px;

    margin-bottom: 10px;
  }

}

/* =========================================================
   HOME ICON SIZE FIX
   ========================================================= */

.home-actions .home-real-icon {
  width: 36px !important;
  height: 36px !important;

  margin: 0 0 14px !important;

  object-fit: contain !important;
}

@media (max-width: 620px) {

  .home-actions .home-real-icon {
    width: 28px !important;
    height: 28px !important;

    margin-bottom: 10px !important;
  }

}


/* =========================================================
   TOP NAV — REAL HEROICONS
   ========================================================= */

.bottom-nav .nav-real-icon {
  display: block;

  width: 22px;
  height: 22px;

  margin: 0 auto 6px;

  object-fit: contain;

  opacity: .88;
}


/* actieve tab iets nadrukkelijker */
.bottom-nav
.nav-button.active
.nav-real-icon {
  opacity: 1;
}


/* mobiel iets compacter */
@media (max-width: 620px) {

  .bottom-nav .nav-real-icon {
    width: 20px;
    height: 20px;

    margin-bottom: 4px;
  }

}


/* =========================================================
   NAV — 6 HOOFDONDERDELEN
   ========================================================= */

@media (min-width: 621px) {

  .bottom-nav {
    grid-template-columns:
      repeat(6, minmax(82px, 1fr)) !important;
  }

}


/* Mobiel: zes items netjes passend houden */
@media (max-width: 620px) {

  .bottom-nav {
    grid-template-columns:
      repeat(6, minmax(0, 1fr)) !important;
  }

  .bottom-nav .nav-button {
    min-width: 0;
    padding-left: 3px !important;
    padding-right: 3px !important;
    font-size: .66rem;
  }

  .bottom-nav .nav-real-icon {
    width: 19px !important;
    height: 19px !important;
  }

}


/* =========================================================
   HEADER — RECIPANION LOGO GROTER
   ========================================================= */

header .brand-icon {
  width: 68px !important;
  height: 68px !important;

  flex: 0 0 68px !important;
}

header .brand-icon img {
  display: block;

  width: 100% !important;
  height: 100% !important;

  object-fit: contain;
}


/* Iets meer ruimte tussen logo en merknaam */
header .brand-home-link {
  gap: 16px !important;
}


@media (max-width: 620px) {

  header .brand-icon {
    width: 58px !important;
    height: 58px !important;

    flex-basis: 58px !important;
  }

  header .brand-home-link {
    gap: 12px !important;
  }

}


/* =========================================================
   HEADER — RECIPANION LOGO V2
   ========================================================= */

header .brand-icon {
  width: 82px !important;
  height: 82px !important;
  flex: 0 0 82px !important;
}

header .brand-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

header .brand-home-link {
  gap: 16px !important;
}


@media (max-width: 620px) {

  header .brand-icon {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px !important;
  }

}


/* =========================================================
   HEADER — LOGO ZELF GROTER, NIET DE WITRUIMTE
   ========================================================= */

header .brand-icon {
  position: relative !important;

  width: 68px !important;
  height: 68px !important;
  flex: 0 0 68px !important;

  overflow: visible !important;

  background: transparent !important;
  box-shadow: none !important;
}


/*
 * Het PNG-bestand bevat wat transparante marge.
 * Daarom schalen we de afbeelding zelf op zonder
 * de header/container groter te maken.
 */
header .brand-icon img {
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 92px !important;
  height: 92px !important;

  max-width: none !important;

  transform:
    translate(-50%, -50%) !important;

  object-fit: contain !important;
}


/* Tekst hoeft niet verder van het logo af */
header .brand-home-link {
  gap: 14px !important;
}


@media (max-width: 620px) {

  header .brand-icon {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
  }

  header .brand-icon img {
    width: 78px !important;
    height: 78px !important;
  }

}


/* =========================================================
   AUTH — RECIPANION LOGO ZELF GROTER
   Zelfde zichtbare grootte als gewone header
   ========================================================= */

.auth-brand-icon {
  position: relative !important;

  width: 68px !important;
  height: 68px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  overflow: visible !important;

  background: transparent !important;
  box-shadow: none !important;
}


/*
 * Logo-PNG bevat transparante ruimte.
 * Daarom vergroten we de afbeelding zelf,
 * niet alleen de container.
 */
.auth-brand-icon img {
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 92px !important;
  height: 92px !important;

  max-width: none !important;

  transform:
    translate(-50%, -50%) !important;

  object-fit: contain !important;
}


/* Net genoeg afstand tussen logo en Recipanion */
.auth-brand h1 {
  margin-top: 10px !important;
}


@media (max-width: 620px) {

  .auth-brand-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .auth-brand-icon img {
    width: 78px !important;
    height: 78px !important;
  }

}


/* =========================================================
   RECIPANION MOBILE CLEANUP V1
   ========================================================= */

@media (max-width: 620px) {

  /* -------------------------------------------------------
     PAGINA / SAFE AREA
     ------------------------------------------------------- */

  .app {
    padding-bottom:
      calc(
        105px
        + env(safe-area-inset-bottom)
      ) !important;
  }

  .container {
    width:
      calc(100% - 24px) !important;
  }


  /* -------------------------------------------------------
     HEADER
     Compact éénregelig merk + account controls
     ------------------------------------------------------- */

  header {
    padding:
      12px 0
      8px !important;
  }

  header .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;

    gap: 8px !important;
  }


  header .brand-home-link {
    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;

    gap: 8px !important;
  }


  /* Logo zichtbaar groot, maar header niet enorm hoog */
  header .brand-icon {
    position: relative !important;

    width: 54px !important;
    height: 54px !important;

    flex:
      0 0 54px !important;

    overflow: visible !important;
  }

  header .brand-icon img {
    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: 74px !important;
    height: 74px !important;

    max-width: none !important;

    transform:
      translate(
        -50%,
        -50%
      ) !important;

    object-fit:
      contain !important;
  }


  header .brand-title {
    font-size:
      27px !important;

    line-height:
      1 !important;

    white-space:
      nowrap !important;
  }


  /*
   * Tagline desktop wel,
   * mobiel niet: scheelt enorm veel ruimte.
   */
  header .brand-subtitle {
    display: none !important;
  }


  /* -------------------------------------------------------
     ACCOUNT RECHTSBOVEN
     ------------------------------------------------------- */

  header .auth-user {
    display: flex !important;
    align-items: center !important;

    flex: 0 0 auto !important;

    gap: 6px !important;

    margin-left:
      auto !important;
  }


  header .auth-account {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;

    padding: 0 !important;

    border-radius:
      13px !important;
  }


  /*
   * Username hoeft op mobiel niet óók
   * naast het gebruikersicoon te staan.
   */
  header
  .auth-account-label {
    display: none !important;
  }


  header .auth-account-icon {
    margin: 0 !important;
  }


  header .auth-logout {
    min-height:
      42px !important;

    height:
      42px !important;

    padding:
      0 11px !important;

    border-radius:
      13px !important;

    font-size:
      12px !important;

    white-space:
      nowrap !important;
  }


  /* -------------------------------------------------------
     HOME
     Altijd een nette 2 x 2 grid
     ------------------------------------------------------- */

  .home-actions {
    display: grid !important;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    grid-auto-rows:
      1fr !important;

    gap: 10px !important;

    margin-top:
      18px !important;

    padding-bottom:
      20px !important;
  }


  /*
   * Oude mobile-concept gaf Recepten
   * een speciale full-width kaart.
   * Dat willen we niet meer.
   */
  .home-actions
  .big-action,

  .home-actions
  .home-recipes-action,

  .home-actions
  .home-shopping-action,

  .home-actions
  .home-ai-action,

  .home-actions
  .home-week-action {
    grid-column:
      auto !important;

    grid-row:
      auto !important;

    box-sizing:
      border-box !important;

    width:
      100% !important;

    min-width:
      0 !important;

    min-height:
      158px !important;

    padding:
      16px !important;

    border-radius:
      18px !important;
  }


  .home-actions
  .home-real-icon {
    width:
      28px !important;

    height:
      28px !important;

    margin:
      0 0 14px !important;
  }


  .home-actions
  .action-title {
    font-size:
      18px !important;

    line-height:
      1.15 !important;
  }


  /*
   * Generator is een lang woord:
   * netjes laten afbreken i.p.v. uit kaart lopen.
   */
  .home-actions
  .home-ai-action
  .action-title {
    overflow-wrap:
      anywhere !important;
  }


  .home-actions
  .action-subtitle {
    display: none !important;
  }


  .home-actions
  .home-card-link {
    display: block !important;

    margin-top:
      9px !important;

    font-size:
      13px !important;

    line-height:
      1.25 !important;
  }


  /* -------------------------------------------------------
     BOTTOM NAV
     Zes items maar wél passend
     ------------------------------------------------------- */

  .bottom-nav {
    position:
      fixed !important;

    top:
      auto !important;

    right:
      12px !important;

    bottom:
      calc(
        10px
        + env(safe-area-inset-bottom)
      ) !important;

    left:
      12px !important;

    transform:
      none !important;

    box-sizing:
      border-box !important;

    display:
      grid !important;

    grid-template-columns:
      repeat(
        6,
        minmax(0, 1fr)
      ) !important;

    width:
      auto !important;

    max-width:
      none !important;

    min-height:
      70px !important;

    padding:
      7px 5px !important;

    gap:
      0 !important;

    border-radius:
      22px !important;

    z-index:
      1000 !important;
  }


  .bottom-nav
  .nav-button {
    box-sizing:
      border-box !important;

    display:
      flex !important;

    flex-direction:
      column !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    min-width:
      0 !important;

    width:
      100% !important;

    height:
      56px !important;

    padding:
      4px 2px !important;

    border-radius:
      15px !important;

    /*
     * Oude lange tekst verbergen.
     * Hieronder zetten we compacte mobile labels.
     */
    font-size:
      0 !important;

    line-height:
      1 !important;
  }


  .bottom-nav
  .nav-real-icon {
    display:
      block !important;

    width:
      21px !important;

    height:
      21px !important;

    margin:
      0 auto 5px !important;

    flex:
      0 0 21px !important;
  }


  /*
   * Compacte labels speciaal voor mobiel.
   */
  .bottom-nav
  .nav-button::after {
    display: block;

    font-size:
      9px;

    font-weight:
      700;

    line-height:
      1;

    white-space:
      nowrap;
  }


  .bottom-nav
  [data-nav="home"]::after {
    content: "Home";
  }

  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="week"]::after {
    content: "Week";
  }

  .bottom-nav
  [data-nav="add"]::after {
    content: "Nieuw";
  }


  .bottom-nav
  .nav-button.active {
    background:
      rgba(
        118,
        141,
        108,
        .13
      ) !important;
  }

}


/* =========================================================
   HEEL SMALLE MOBIELTJES
   ========================================================= */

@media (max-width: 350px) {

  .home-actions {
    grid-template-columns:
      1fr !important;
  }

  header .brand-title {
    font-size:
      24px !important;
  }

  header .auth-logout {
    padding:
      0 8px !important;

    font-size:
      11px !important;
  }

}


/* =========================================================
   MOBILE CLEANUP V2
   - Generator op één regel
   - Home uit bottom-nav
   ========================================================= */

@media (max-width: 620px) {

  /* -------------------------------------------------------
     HOME CARDS
     ------------------------------------------------------- */

  .home-actions
  .home-ai-action
  .action-title {
    white-space: nowrap !important;

    overflow-wrap: normal !important;
    word-break: normal !important;

    font-size: 16px !important;
    line-height: 1.15 !important;
  }


  /* -------------------------------------------------------
     BOTTOM NAV
     Home is dubbelop: logo brengt ook naar Home.
     ------------------------------------------------------- */

  .bottom-nav
  [data-nav="home"] {
    display: none !important;
  }


  .bottom-nav {
    grid-template-columns:
      repeat(
        5,
        minmax(0, 1fr)
      ) !important;

    padding-left: 8px !important;
    padding-right: 8px !important;
  }


  .bottom-nav
  .nav-button {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }


  /*
   * Met vijf items is er weer genoeg ruimte
   * voor iets duidelijkere labels.
   */

  .bottom-nav
  .nav-button::after {
    font-size: 10px !important;
  }


  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="week"]::after {
    content: "Week";
  }

  .bottom-nav
  [data-nav="add"]::after {
    content: "Nieuw";
  }

}


/* =========================================================
   MOBILE NAV V3
   4 grote tabs + floating nieuw-receptknop
   ========================================================= */


/* Desktop: losse FAB nooit tonen */
.mobile-new-recipe-fab {
  display: none;
}


@media (max-width: 620px) {

  /* -------------------------------------------------------
     Pagina houdt ruimte vrij voor nav + floating button
     ------------------------------------------------------- */

  .app {
    padding-bottom:
      calc(
        125px
        + env(safe-area-inset-bottom)
      ) !important;
  }


  /* -------------------------------------------------------
     Home en Nieuw verdwijnen alleen uit MOBILE bottom-nav
     ------------------------------------------------------- */

  .bottom-nav
  [data-nav="home"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  /* -------------------------------------------------------
     Bottom nav
     ------------------------------------------------------- */

  .bottom-nav {
    position: fixed !important;

    top: auto !important;

    left: 14px !important;
    right: 14px !important;

    bottom:
      calc(
        12px
        + env(safe-area-inset-bottom)
      ) !important;

    transform: none !important;

    display: grid !important;

    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;

    width: auto !important;
    max-width: none !important;

    min-height: 78px !important;

    padding: 7px !important;

    gap: 5px !important;

    border-radius: 24px !important;

    background:
      rgba(
        255,
        255,
        255,
        .96
      ) !important;

    box-shadow:
      0 10px 32px
      rgba(65, 45, 30, .14) !important;

    z-index: 1000 !important;
  }


  /* -------------------------------------------------------
     Elke tab is nu een groot klikvlak
     ------------------------------------------------------- */

  .bottom-nav
  .nav-button {
    box-sizing: border-box !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;

    min-width: 0 !important;
    min-height: 64px !important;
    height: 64px !important;

    padding: 7px 4px !important;

    margin: 0 !important;

    gap: 5px !important;

    border-radius: 17px !important;

    font-size: 0 !important;
    line-height: 1 !important;

    touch-action: manipulation;
  }


  .bottom-nav
  .nav-real-icon {
    display: block !important;

    width: 25px !important;
    height: 25px !important;

    flex: 0 0 25px !important;

    margin: 0 !important;

    object-fit: contain !important;
  }


  /* Grote, goed leesbare mobiele labels */

  .bottom-nav
  .nav-button::after {
    display: block !important;

    font-size: 11px !important;
    font-weight: 750 !important;

    line-height: 1.05 !important;

    white-space: nowrap !important;

    color: #59645b;
  }


  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="week"]::after {
    content: "Week";
  }


  /* Actieve tab heeft veel groter klik-/kleurvlak */

  .bottom-nav
  .nav-button.active {
    background:
      #edf3e8 !important;
  }

  .bottom-nav
  .nav-button.active::after {
    color:
      #31543a !important;
  }


  /* -------------------------------------------------------
     Floating Nieuw recept knop
     ------------------------------------------------------- */

  .mobile-new-recipe-fab {
    position: fixed !important;

    right: 18px !important;

    bottom:
      calc(
        102px
        + env(safe-area-inset-bottom)
      ) !important;

    z-index: 1001 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    width: 62px !important;
    height: 62px !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background:
      #4f7c58 !important;

    box-shadow:
      0 9px 24px
      rgba(49, 84, 58, .28) !important;

    cursor: pointer;

    touch-action: manipulation;
  }


  .mobile-new-recipe-fab img {
    width: 29px !important;
    height: 29px !important;

    display: block !important;

    /*
     * plus-circle.svg zelf is grijsgroen.
     * Wit filteren binnen de groene FAB.
     */
    filter:
      brightness(0)
      invert(1) !important;
  }


  .mobile-new-recipe-fab:active {
    transform:
      scale(.95);
  }

}


/* Iets compacter op echt smalle schermen */
@media (max-width: 350px) {

  .bottom-nav {
    left: 8px !important;
    right: 8px !important;
  }

  .bottom-nav
  .nav-button::after {
    font-size: 10px !important;
  }

}


/* =========================================================
   MOBILE NAV V4
   Alleen Recepten + AI + Lijst
   ========================================================= */

@media (max-width: 620px) {

  .bottom-nav
  [data-nav="home"],

  .bottom-nav
  [data-nav="week"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  .bottom-nav {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;

    max-width: 420px !important;

    left: 50% !important;
    right: auto !important;

    transform:
      translateX(-50%) !important;
  }


  .bottom-nav
  .nav-button {
    min-height: 68px !important;
    height: 68px !important;
  }


  .bottom-nav
  .nav-real-icon {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
  }


  .bottom-nav
  .nav-button::after {
    font-size: 12px !important;
  }


  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

}


/* =========================================================
   MOBILE NAV V4
   Home | Recepten | Lijst | AI
   ========================================================= */

@media (max-width: 620px) {

  /* Home terug */
  .bottom-nav
  [data-nav="home"] {
    display: flex !important;
  }

  /* Week en standaard Nieuw uit de balk */
  .bottom-nav
  [data-nav="week"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  /* Vier grote tabs */
  .bottom-nav {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;
  }


  /* Volgorde */
  .bottom-nav
  [data-nav="home"] {
    order: 1;
  }

  .bottom-nav
  [data-nav="recipes"] {
    order: 2;
  }

  .bottom-nav
  [data-nav="shopping"] {
    order: 3;
  }

  .bottom-nav
  [data-nav="generator"] {
    order: 4;
  }


  /* Mobiele labels */
  .bottom-nav
  [data-nav="home"]::after {
    content: "Home";
  }

  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

}


/* =========================================================
   MOBILE NAV V4
   Alleen Recepten + AI + Lijst
   ========================================================= */

@media (max-width: 620px) {

  .bottom-nav
  [data-nav="home"],

  .bottom-nav
  [data-nav="week"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  .bottom-nav {
    grid-template-columns:
      repeat(
        3,
        minmax(0, 1fr)
      ) !important;

    max-width: 420px !important;

    left: 50% !important;
    right: auto !important;

    transform:
      translateX(-50%) !important;
  }


  .bottom-nav
  .nav-button {
    min-height: 68px !important;
    height: 68px !important;
  }


  .bottom-nav
  .nav-real-icon {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
  }


  .bottom-nav
  .nav-button::after {
    font-size: 12px !important;
  }


  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

}


/* =========================================================
   MOBILE NAV V4
   Home | Recepten | Lijst | AI
   ========================================================= */

@media (max-width: 620px) {

  /* Home terug */
  .bottom-nav
  [data-nav="home"] {
    display: flex !important;
  }

  /* Week en standaard Nieuw uit de balk */
  .bottom-nav
  [data-nav="week"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  /* Vier grote tabs */
  .bottom-nav {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;
  }


  /* Volgorde */
  .bottom-nav
  [data-nav="home"] {
    order: 1;
  }

  .bottom-nav
  [data-nav="recipes"] {
    order: 2;
  }

  .bottom-nav
  [data-nav="shopping"] {
    order: 3;
  }

  .bottom-nav
  [data-nav="generator"] {
    order: 4;
  }


  /* Mobiele labels */
  .bottom-nav
  [data-nav="home"]::after {
    content: "Home";
  }

  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

}


/* =========================================================
   MOBILE NAV V5
   Meer breedte + nette spacing tussen Home/Recepten/Lijst/AI
   ========================================================= */

@media (max-width: 620px) {

  .bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);

    width: min(92vw, 420px);
    min-width: 320px;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px;

    padding: 12px;
    border-radius: 28px;
    box-sizing: border-box;
  }

  .bottom-nav [data-nav="home"] {
    display: flex !important;
    order: 1;
  }

  .bottom-nav [data-nav="recipes"] {
    order: 2;
  }

  .bottom-nav [data-nav="shopping"] {
    order: 3;
  }

  .bottom-nav [data-nav="generator"] {
    order: 4;
  }

  .bottom-nav [data-nav="week"],
  .bottom-nav [data-nav="add"] {
    display: none !important;
  }

  .bottom-nav .nav-item,
  .bottom-nav a,
  .bottom-nav button {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 10px 6px;
    border-radius: 18px;
    text-align: center;
    box-sizing: border-box;
  }

  .bottom-nav .nav-item span,
  .bottom-nav a span,
  .bottom-nav button span {
    font-size: 0.92rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .bottom-nav .nav-item svg,
  .bottom-nav a svg,
  .bottom-nav button svg,
  .bottom-nav .nav-item i,
  .bottom-nav a i,
  .bottom-nav button i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  /* Alleen als jouw nav labels via ::after komen */
  .bottom-nav [data-nav="home"]::after {
    content: "Home";
  }

  .bottom-nav [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav [data-nav="generator"]::after {
    content: "AI";
  }
}


/* =========================================================
   MOBILE NEW RECIPE FAB
   Alleen zichtbaar op /recipes
   ========================================================= */

@media (max-width: 620px) {

  .mobile-new-recipe-fab {
    display: none !important;
  }

  .mobile-new-recipe-fab.is-visible {
    display: flex !important;
  }

}


/* =========================================================
   MOBILE NAV V6
   Recepten | Lijst | AI | Week
   ========================================================= */

@media (max-width: 620px) {

  /* Home en standaard Nieuw niet in mobile nav */
  .bottom-nav
  [data-nav="home"],

  .bottom-nav
  [data-nav="add"] {
    display: none !important;
  }


  /* Week weer terug */
  .bottom-nav
  [data-nav="week"] {
    display: flex !important;
  }


  /* Vier royale hoofdonderdelen */
  .bottom-nav {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;

    width:
      min(
        94vw,
        430px
      ) !important;

    left: 50% !important;
    right: auto !important;

    transform:
      translateX(-50%) !important;

    gap: 7px !important;

    padding:
      9px !important;
  }


  /* Gewenste volgorde */
  .bottom-nav
  [data-nav="recipes"] {
    order: 1;
  }

  .bottom-nav
  [data-nav="shopping"] {
    order: 2;
  }

  .bottom-nav
  [data-nav="generator"] {
    order: 3;
  }

  .bottom-nav
  [data-nav="week"] {
    order: 4;
  }


  /* Grote tap targets */
  .bottom-nav
  .nav-button {
    min-height:
      66px !important;

    height:
      66px !important;

    padding:
      7px 4px !important;

    gap:
      6px !important;

    border-radius:
      17px !important;
  }


  .bottom-nav
  .nav-real-icon {
    width:
      25px !important;

    height:
      25px !important;

    flex-basis:
      25px !important;

    margin:
      0 !important;
  }


  .bottom-nav
  .nav-button::after {
    font-size:
      11px !important;

    line-height:
      1 !important;

    white-space:
      nowrap !important;
  }


  .bottom-nav
  [data-nav="recipes"]::after {
    content: "Recepten";
  }

  .bottom-nav
  [data-nav="shopping"]::after {
    content: "Lijst";
  }

  .bottom-nav
  [data-nav="generator"]::after {
    content: "AI";
  }

  .bottom-nav
  [data-nav="week"]::after {
    content: "Week";
  }

}


/* =========================================================
   MOBILE RECIPE FILTERS V1
   ========================================================= */

.recipe-mobile-filter-toolbar {
  display: none;
}


@media (max-width: 620px) {

  /*
   * Compacte regel direct onder zoeken.
   */
  .recipe-mobile-filter-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin:
      -2px 0 18px;
  }


  .recipe-mobile-filter-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding:
      0 15px;

    border:
      1px solid
      #d8ded5;

    border-radius:
      14px;

    background:
      #fffdf9;

    color:
      #293129;

    font-size:
      14px;

    font-weight:
      750;

    box-shadow:
      0 3px 12px
      rgba(65,45,30,.04);
  }


  .recipe-mobile-filter-button img {
    width: 19px;
    height: 19px;

    flex:
      0 0 19px;
  }


  .recipe-mobile-filter-button
  .recipe-mobile-filter-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    padding:
      0 6px;

    border-radius:
      999px;

    background:
      #4f7c58;

    color:
      white;

    font-size:
      11px;

    font-weight:
      800;
  }


  .recipe-mobile-result-count {
    margin: 0 !important;

    color:
      #747c74 !important;

    font-size:
      13px !important;

    font-weight:
      650 !important;
  }


  /*
   * Filters standaard verborgen.
   */
  .filters-wrap.recipe-mobile-filter-panel {
    display: none !important;

    margin:
      -4px 0 18px !important;

    padding:
      14px !important;

    border:
      1px solid
      #dfe4dc;

    border-radius:
      16px;

    background:
      #fffdf9;

    box-shadow:
      0 4px 18px
      rgba(65,45,30,.05);
  }


  .filters-wrap
  .recipe-filter-columns {
    grid-template-columns:
      1fr !important;

    gap:
      12px !important;
  }


  .filters-wrap
  .recipe-filter-group {
    margin:
      0 !important;
  }


  .filters-wrap
  .recipe-filter-label {
    margin-bottom:
      5px !important;

    font-size:
      13px !important;
  }


  .filters-wrap
  .recipe-select {
    width:
      100% !important;
  }


  /*
   * Bij openen paneel tonen.
   */
  .filters-wrap
  .recipe-count {
    display:
      none !important;
  }


  .filters-wrap.recipe-mobile-filter-panel.is-open {
    display:
      block !important;
  }

}


/* =========================================================
   MOBILE RECIPE FILTERS V1
   ========================================================= */

.recipe-mobile-filter-toolbar {
  display: none;
}


@media (max-width: 620px) {

  /*
   * Compacte regel direct onder zoeken.
   */
  .recipe-mobile-filter-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin:
      -2px 0 18px;
  }


  .recipe-mobile-filter-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding:
      0 15px;

    border:
      1px solid
      #d8ded5;

    border-radius:
      14px;

    background:
      #fffdf9;

    color:
      #293129;

    font-size:
      14px;

    font-weight:
      750;

    box-shadow:
      0 3px 12px
      rgba(65,45,30,.04);
  }


  .recipe-mobile-filter-button img {
    width: 19px;
    height: 19px;

    flex:
      0 0 19px;
  }


  .recipe-mobile-filter-button
  .recipe-mobile-filter-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    padding:
      0 6px;

    border-radius:
      999px;

    background:
      #4f7c58;

    color:
      white;

    font-size:
      11px;

    font-weight:
      800;
  }


  .recipe-mobile-result-count {
    margin: 0 !important;

    color:
      #747c74 !important;

    font-size:
      13px !important;

    font-weight:
      650 !important;
  }


  /*
   * Filters standaard verborgen.
   */
  .filters-wrap.recipe-mobile-filter-panel {
    display: none !important;

    margin:
      -4px 0 18px !important;

    padding:
      14px !important;

    border:
      1px solid
      #dfe4dc;

    border-radius:
      16px;

    background:
      #fffdf9;

    box-shadow:
      0 4px 18px
      rgba(65,45,30,.05);
  }


  .filters-wrap
  .recipe-filter-columns {
    grid-template-columns:
      1fr !important;

    gap:
      12px !important;
  }


  .filters-wrap
  .recipe-filter-group {
    margin:
      0 !important;
  }


  .filters-wrap
  .recipe-filter-label {
    margin-bottom:
      5px !important;

    font-size:
      13px !important;
  }


  .filters-wrap
  .recipe-select {
    width:
      100% !important;
  }


  /*
   * Bij openen paneel tonen.
   */
  .filters-wrap
  .recipe-count {
    display:
      none !important;
  }


  .filters-wrap.recipe-mobile-filter-panel.is-open {
    display:
      block !important;
  }

}


/* =========================================================
   MOBILE SHOPPING OPTIONS V1
   ========================================================= */

.shopping-mobile-options-v1 {
  display: none;
}


@media (max-width: 620px) {

  /*
   * Bovenste shoppingblok wordt één kolom.
   * De add-form blijft daardoor mooi full-width.
   */
  .shopping-v1-top-row
  .shopping-mobile-options-mode-v1,

  .shopping-v1-top-row.shopping-mobile-options-mode-v1 {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }


  /* Verborgen optionele onderdelen */

  #shopping-lists-v1.shopping-mobile-option-hidden-v1,

  #shopping-v1-pantry.shopping-mobile-option-hidden-v1 {
    display: none !important;
  }


  /*
   * Compacte optiesregel.
   */
  .shopping-mobile-options-v1 {
    display: block;

    margin:
      6px 0 14px;
  }


  .shopping-mobile-options-main-v1 {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
  }


  .shopping-mobile-options-button-v1 {
    min-height: 45px;

    padding:
      0 16px;

    border:
      1px solid #d8ded5;

    border-radius:
      14px;

    background:
      #fffdf9;

    color:
      #293129;

    font-size:
      14px;

    font-weight:
      750;

    box-shadow:
      0 3px 12px
      rgba(65,45,30,.04);
  }


  .shopping-mobile-current-list-v1 {
    min-width: 0;

    overflow: hidden;

    color:
      #747c74;

    font-size:
      12px;

    font-weight:
      650;

    text-align: right;

    text-overflow: ellipsis;

    white-space: nowrap;
  }


  /*
   * Uitklapmenu.
   */
  .shopping-mobile-options-menu-v1 {
    display: grid;

    gap: 7px;

    margin-top:
      8px;

    padding:
      8px;

    border:
      1px solid #dfe4dc;

    border-radius:
      15px;

    background:
      #fffdf9;

    box-shadow:
      0 5px 20px
      rgba(65,45,30,.07);
  }


  .shopping-mobile-options-menu-v1[hidden] {
    display: none !important;
  }


  .shopping-mobile-options-menu-v1 button {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 48px;

    padding:
      0 14px;

    border: 0;

    border-radius:
      11px;

    background:
      #f7f4ee;

    color:
      #293129;

    text-align: left;

    font-size:
      14px;

    font-weight:
      750;
  }


  .shopping-mobile-options-menu-v1 button:active {
    background:
      #edf3e8;
  }


  /*
   * Als gebruiker Boodschappenlijst kiest,
   * wordt de bestaande selector als compacte
   * kaart zichtbaar.
   */
  #shopping-lists-v1:not(
    .shopping-mobile-option-hidden-v1
  ) {
    margin-bottom:
      10px !important;
  }


  /*
   * Basisvoorraad krijgt bij openen
   * voldoende ruimte boven de bottom-nav.
   */
  #shopping-v1-pantry:not(
    .shopping-mobile-option-hidden-v1
  ) {
    scroll-margin-bottom:
      130px;
  }

}


/* =========================================================
   SHOPPING MOBILE OPTIONS — TOUCH FIX
   ========================================================= */

@media (max-width: 620px) {

  .shopping-mobile-options-v1 {
    position: relative !important;
    z-index: 30 !important;
  }


  .shopping-mobile-options-button-v1 {
    position: relative !important;

    z-index: 31 !important;

    min-width: 100px !important;
    min-height: 50px !important;

    touch-action: manipulation !important;

    pointer-events: auto !important;

    user-select: none;
    -webkit-user-select: none;
  }


  .shopping-mobile-options-menu-v1 {
    position: relative !important;

    z-index: 32 !important;

    pointer-events: auto !important;
  }


  .shopping-mobile-options-menu-v1
  button {
    position: relative !important;

    z-index: 33 !important;

    min-height: 54px !important;

    pointer-events: auto !important;

    touch-action: manipulation !important;

    cursor: pointer !important;

    user-select: none;
    -webkit-user-select: none;
  }


  .shopping-mobile-options-menu-v1
  button:active {
    transform: scale(.985);
  }

}


/* =========================================================
   MOBILE PAGE HEADER V2
   Bottom navigation is de mobiele navigatie.
   Losse terugknop + paginatitel daarom verbergen.
   ========================================================= */

@media (max-width: 760px) {

  /*
   * Alleen page-headers met een terugknop.
   * Andere headers blijven ongemoeid.
   */
  .page-header:has(.back-button) {
    display: none !important;
  }

}
