/* =================================================================
   FitEat — project styles.

   Loaded LAST, after fontawesome.min.css and bootstrap.min.css
   (Bootstrap 5.3.9, unmodified). Everything here is plain CSS — no
   Sass, no build step. The FitEat look is produced by re-pointing
   Bootstrap's own CSS variables at the brand tokens, plus a small
   set of `.fe-*` components for what Bootstrap does not ship.

   Sections (search for the "==" banners):
     1. Fonts
     2. Brand tokens                    --fe-*
     3. Bootstrap variable mapping      --bs-*   (light)
     4. Dark mode                       [data-bs-theme="dark"]
     5. Bootstrap component overrides   buttons, forms, cards, tables…
     6. Shared components               brand, avatar, empty state, toast
     7. Selection skins                 chips, day circles, option rows
     8. Staff shell (admin.fiteat.mk)   sidebar, top bar, page layout
     9. Auth pages                      sign in / reset
    10. Public site (fiteat.mk)         navbar, hero, sections, footer
    11. Utilities + vendored-library tweaks
    12. Print

   Rules of the house:
     - No inline style="" in views — add a named class here instead.
     - Lime (#62c46b) is a FILL colour only. It fails contrast as text
       on a light surface, so text on or near lime is always navy.
     - Dark mode is the staff side only; the public site stays light
       (the client's mock disables it). script.js only honours the
       stored preference on pages that carry <html data-theme-switch>.
   ================================================================= */


/* =================================================================
   1. Fonts — self-hosted variable fonts (SIL OFL, see OFL.txt beside
   each file).

   Hanken Grotesk is the brand face, but it has NO Cyrillic glyphs —
   not here, not on Google Fonts. In the client's mock every Macedonian
   word therefore falls back to whatever the visitor's OS provides.
   Onest fills that gap so Cyrillic renders the same on every device:
   the browser takes Latin + digits from Hanken Grotesk and Cyrillic
   from Onest, glyph by glyph, via the unicode-range of each face.
   To change the Cyrillic companion, swap these two @font-face blocks.
   ================================================================= */

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/hanken-grotesk/hanken-grotesk-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/hanken-grotesk/hanken-grotesk-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/onest/onest-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/onest/onest-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}


/* =================================================================
   2. Brand tokens — the palette from the client's mock
   (Resources/index.html). Change the brand here, nowhere else.
   ================================================================= */

:root {
	--fe-navy: #1d2a33;
	--fe-navy-rgb: 29, 42, 51;
	--fe-navy-deep: #131c22;
	--fe-lime: #62c46b;
	--fe-lime-rgb: 98, 196, 107;
	--fe-lime-hover: #52a85c;
	/* The two accents the brand's own posts set beside the green — three
	   dots: green, amber, coral. Fills and dots only, never text on light. */
	--fe-amber: #f6b52d;
	--fe-coral: #fe7f5c;

	--fe-bg: #f6f5f0;             /* page background (warm off-white) */
	--fe-hero-bg: #eef2ec;        /* hero + soft bands */
	--fe-surface: #ffffff;        /* cards, menus, dialogs */
	--fe-ink: #1d2a33;
	--fe-ink-soft: #47604f;       /* secondary text */
	--fe-border: rgba(29, 42, 51, 0.14);
	--fe-shadow: 0 10px 30px rgba(29, 42, 51, 0.08);
	--fe-shadow-sm: 0 1px 2px rgba(29, 42, 51, 0.06);

	/* Lime tints — lime over a surface at the opacities the mock uses. */
	--fe-lime-tint: rgba(98, 196, 107, 0.28);
	--fe-lime-tint-soft: rgba(98, 196, 107, 0.2);
	--fe-lime-tint-strong: rgba(98, 196, 107, 0.35);

	/* Photo placeholder shown until a real picture is uploaded. */
	--fe-photo-a: #e9e5da;
	--fe-photo-b: #d8d2c2;
	--fe-photo-ink: #8a8267;

	/* Chart colours (script.js [data-chart]). Not the brand palette itself
	   but steps of it chosen for marks on a white card: each set passes the
	   colour-blind and contrast checks for neighbours in the order given.
	   1-6 name things (series, meal parts); seq-1…5 is one green from light
	   to dark for ordered slices; muted is the period before. */
	--fe-chart-1: #3aa55a;
	--fe-chart-2: #2f6f9f;
	--fe-chart-3: #c2850c;
	--fe-chart-4: #1f9ea0;
	--fe-chart-5: #7b61c4;
	--fe-chart-6: #e0694a;
	--fe-chart-seq-1: #62c46b;
	--fe-chart-seq-2: #46a557;
	--fe-chart-seq-3: #2f8746;
	--fe-chart-seq-4: #1f6a37;
	--fe-chart-seq-5: #154d29;
	--fe-chart-muted: #98a3a9;
	--fe-chart-neutral: #b3bbbf;
	--fe-chart-grid: rgba(29, 42, 51, 0.08);
	--fe-chart-axis: #66747c;
	--fe-chart-tip: #1d2a33;
	--fe-chart-tip-ink: #ffffff;
	--fe-chart-tip-edge: transparent;

	--fe-radius-card: 18px;
	--fe-sidebar-width: 260px;
	--fe-wrap: 1120px;            /* public-site content width */

	/* Layout tokens for the small utilities at the bottom of this file. */
	--input-width-sm: 200px;
	--input-width-md: 280px;
}


/* =================================================================
   3. Bootstrap variable mapping (light).
   Same selector Bootstrap uses, loaded later → these win.
   ================================================================= */

:root,
[data-bs-theme="light"] {
	--bs-font-sans-serif: "Hanken Grotesk", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-body-font-family: var(--bs-font-sans-serif);
	--bs-body-font-size: 1rem;
	--bs-body-line-height: 1.5;

	--bs-body-color: var(--fe-ink);
	--bs-body-color-rgb: 29, 42, 51;
	--bs-body-bg: var(--fe-bg);
	--bs-body-bg-rgb: 246, 245, 240;
	--bs-emphasis-color: var(--fe-navy-deep);
	--bs-emphasis-color-rgb: 19, 28, 34;
	--bs-secondary-color: var(--fe-ink-soft);
	--bs-secondary-color-rgb: 71, 96, 79;
	--bs-secondary-bg: #e9e7df;
	--bs-secondary-bg-rgb: 233, 231, 223;
	--bs-tertiary-color: rgba(29, 42, 51, 0.5);
	--bs-tertiary-bg: var(--fe-hero-bg);
	--bs-tertiary-bg-rgb: 238, 242, 236;

	/* Primary = navy. */
	--bs-primary: var(--fe-navy);
	--bs-primary-rgb: 29, 42, 51;
	--bs-primary-text-emphasis: var(--fe-navy-deep);
	--bs-primary-bg-subtle: #e3e7e9;
	--bs-primary-border-subtle: #b7c0c5;

	/* Success = lime — the brand accent. Text on it is navy (see header note). */
	--bs-success: var(--fe-lime);
	--bs-success-rgb: 98, 196, 107;
	--bs-success-text-emphasis: var(--fe-navy);
	--bs-success-bg-subtle: var(--fe-lime-tint);
	--bs-success-border-subtle: rgba(98, 196, 107, 0.6);

	--bs-secondary: var(--fe-ink-soft);
	--bs-secondary-rgb: 71, 96, 79;
	--bs-dark: var(--fe-navy-deep);
	--bs-dark-rgb: 19, 28, 34;
	--bs-light: var(--fe-hero-bg);
	--bs-light-rgb: 238, 242, 236;

	--bs-link-color: var(--fe-navy);
	--bs-link-color-rgb: 29, 42, 51;
	--bs-link-hover-color: var(--fe-navy-deep);
	--bs-link-hover-color-rgb: 19, 28, 34;

	--bs-border-color: var(--fe-border);
	--bs-border-color-translucent: rgba(29, 42, 51, 0.12);

	--bs-border-radius: 10px;
	--bs-border-radius-sm: 8px;
	--bs-border-radius-lg: 14px;
	--bs-border-radius-xl: 18px;
	--bs-border-radius-xxl: 28px;
	--bs-border-radius-pill: 999px;

	--bs-box-shadow: var(--fe-shadow);
	--bs-box-shadow-sm: var(--fe-shadow-sm);

	--bs-focus-ring-color: rgba(98, 196, 107, 0.45);
}


/* =================================================================
   4. Dark mode — staff side only. One hue throughout: the page is a
   darker tone of the brand navy, and cards / sidebar sit on it in the
   navy itself. Navy would vanish on a dark page, so primary flips to
   lime (with navy text on it).
   ================================================================= */

[data-bs-theme="dark"] {
	--fe-bg: #11181d;             /* the navy's hue (205°), darker — not a green */
	--fe-hero-bg: #0d1318;
	--fe-surface: #1d2a33;
	--fe-ink: #edeff7;
	--fe-ink-soft: #b7beda;
	--fe-border: rgba(255, 255, 255, 0.1);
	--fe-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	--fe-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--fe-photo-a: #263640;
	--fe-photo-b: #1a262e;
	--fe-photo-ink: #8fa0ab;

	/* Chart colours re-chosen for the navy card — not the light set dimmed. */
	--fe-chart-1: #45a557;
	--fe-chart-2: #4f93c9;
	--fe-chart-3: #b98a22;
	--fe-chart-4: #23a3a0;
	--fe-chart-5: #9585e0;
	--fe-chart-6: #d46f55;
	--fe-chart-seq-1: #2f7d44;
	--fe-chart-seq-2: #3f9a54;
	--fe-chart-seq-3: #55b767;
	--fe-chart-seq-4: #79cf87;
	--fe-chart-seq-5: #a6e2ae;
	--fe-chart-muted: #6c7c86;
	--fe-chart-neutral: #55646d;
	--fe-chart-grid: rgba(255, 255, 255, 0.08);
	--fe-chart-axis: #9aaab4;
	--fe-chart-tip: #0d1318;
	--fe-chart-tip-ink: #edeff7;
	--fe-chart-tip-edge: rgba(255, 255, 255, 0.16);

	--bs-body-color: var(--fe-ink);
	--bs-body-color-rgb: 237, 239, 247;
	--bs-body-bg: var(--fe-bg);
	--bs-body-bg-rgb: 17, 24, 29;
	--bs-emphasis-color: #ffffff;
	--bs-emphasis-color-rgb: 255, 255, 255;
	--bs-secondary-color: var(--fe-ink-soft);
	--bs-secondary-color-rgb: 183, 190, 218;
	--bs-secondary-bg: #24343f;
	--bs-secondary-bg-rgb: 36, 52, 63;
	--bs-tertiary-color: rgba(237, 239, 247, 0.5);
	--bs-tertiary-bg: #16242c;
	--bs-tertiary-bg-rgb: 22, 36, 44;

	--bs-primary: var(--fe-lime);
	--bs-primary-rgb: 98, 196, 107;
	--bs-primary-text-emphasis: #a8e0ad;
	--bs-primary-bg-subtle: rgba(98, 196, 107, 0.16);
	--bs-primary-border-subtle: rgba(98, 196, 107, 0.4);

	--bs-success-text-emphasis: #a8e0ad;
	--bs-success-bg-subtle: rgba(98, 196, 107, 0.16);
	--bs-success-border-subtle: rgba(98, 196, 107, 0.4);

	--bs-light: #16242c;
	--bs-light-rgb: 22, 36, 44;

	--bs-link-color: var(--fe-lime);
	--bs-link-color-rgb: 98, 196, 107;
	--bs-link-hover-color: #8bd692;
	--bs-link-hover-color-rgb: 139, 214, 146;

	--bs-border-color: var(--fe-border);
	--bs-border-color-translucent: rgba(255, 255, 255, 0.08);
}


/* =================================================================
   5. Bootstrap component overrides.
   Bootstrap compiles some component colours to hex instead of reading
   the root variables — those are re-pointed here.
   ================================================================= */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* ---- Buttons ---- */

.btn {
	--bs-btn-font-weight: 700;
	--bs-btn-font-size: 0.875rem;
	--bs-btn-padding-y: 0.55rem;
	--bs-btn-padding-x: 1.1rem;
	--bs-btn-border-width: 1.5px;
	--bs-btn-focus-shadow-rgb: var(--fe-lime-rgb);
}

.btn-sm {
	--bs-btn-font-size: 0.8125rem;
	--bs-btn-padding-y: 0.3rem;
	--bs-btn-padding-x: 0.7rem;
	--bs-btn-border-radius: var(--bs-border-radius-sm);
}

/* The mock's main call-to-action size (15px / 15px 26px). */
.btn-lg {
	--bs-btn-font-size: 0.9375rem;
	--bs-btn-padding-y: 0.9375rem;
	--bs-btn-padding-x: 1.625rem;
	--bs-btn-border-radius: var(--bs-border-radius-lg);
}

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--fe-navy);
	--bs-btn-border-color: var(--fe-navy);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--fe-navy-deep);
	--bs-btn-hover-border-color: var(--fe-navy-deep);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0c1317;
	--bs-btn-active-border-color: #0c1317;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--fe-navy);
	--bs-btn-disabled-border-color: var(--fe-navy);
}

/* Strong outline: navy border, fills navy on hover. */
.btn-outline-primary {
	--bs-btn-color: var(--fe-navy);
	--bs-btn-border-color: var(--fe-navy);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--fe-navy);
	--bs-btn-hover-border-color: var(--fe-navy);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--fe-navy-deep);
	--bs-btn-active-border-color: var(--fe-navy-deep);
	--bs-btn-disabled-color: var(--fe-navy);
	--bs-btn-disabled-border-color: var(--fe-navy);
}

/* Soft outline ("ghost" in the mock): hairline border, fills navy on hover. */
.btn-outline-secondary {
	--bs-btn-color: var(--bs-body-color);
	--bs-btn-border-color: var(--fe-border);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--fe-navy);
	--bs-btn-hover-border-color: var(--fe-navy);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--fe-navy-deep);
	--bs-btn-active-border-color: var(--fe-navy-deep);
	--bs-btn-disabled-color: var(--bs-secondary-color);
	--bs-btn-disabled-border-color: var(--fe-border);
}

.btn-secondary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--fe-ink-soft);
	--bs-btn-border-color: var(--fe-ink-soft);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #3a4f41;
	--bs-btn-hover-border-color: #3a4f41;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #324438;
	--bs-btn-active-border-color: #324438;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--fe-ink-soft);
	--bs-btn-disabled-border-color: var(--fe-ink-soft);
}

/* Lime button — navy text, never white (contrast). */
.btn-success {
	--bs-btn-color: var(--fe-navy-deep);
	--bs-btn-bg: var(--fe-lime);
	--bs-btn-border-color: var(--fe-lime);
	--bs-btn-hover-color: var(--fe-navy-deep);
	--bs-btn-hover-bg: var(--fe-lime-hover);
	--bs-btn-hover-border-color: var(--fe-lime-hover);
	--bs-btn-active-color: var(--fe-navy-deep);
	--bs-btn-active-bg: #489651;
	--bs-btn-active-border-color: #489651;
	--bs-btn-disabled-color: var(--fe-navy-deep);
	--bs-btn-disabled-bg: var(--fe-lime);
	--bs-btn-disabled-border-color: var(--fe-lime);
}

.btn-light {
	--bs-btn-color: var(--bs-body-color);
	--bs-btn-bg: var(--bs-tertiary-bg);
	--bs-btn-border-color: var(--fe-border);
	--bs-btn-hover-color: var(--bs-body-color);
	--bs-btn-hover-bg: var(--bs-secondary-bg);
	--bs-btn-hover-border-color: var(--fe-border);
	--bs-btn-active-color: var(--bs-body-color);
	--bs-btn-active-bg: var(--bs-secondary-bg);
	--bs-btn-active-border-color: var(--fe-border);
}

[data-bs-theme="dark"] .btn-primary {
	--bs-btn-color: var(--fe-navy-deep);
	--bs-btn-bg: var(--fe-lime);
	--bs-btn-border-color: var(--fe-lime);
	--bs-btn-hover-color: var(--fe-navy-deep);
	--bs-btn-hover-bg: var(--fe-lime-hover);
	--bs-btn-hover-border-color: var(--fe-lime-hover);
	--bs-btn-active-color: var(--fe-navy-deep);
	--bs-btn-active-bg: #489651;
	--bs-btn-active-border-color: #489651;
	--bs-btn-disabled-color: var(--fe-navy-deep);
	--bs-btn-disabled-bg: var(--fe-lime);
	--bs-btn-disabled-border-color: var(--fe-lime);
}

[data-bs-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .btn-outline-secondary {
	--bs-btn-color: var(--fe-ink);
	--bs-btn-border-color: rgba(255, 255, 255, 0.28);
	--bs-btn-hover-color: var(--fe-navy-deep);
	--bs-btn-hover-bg: var(--fe-lime);
	--bs-btn-hover-border-color: var(--fe-lime);
	--bs-btn-active-color: var(--fe-navy-deep);
	--bs-btn-active-bg: var(--fe-lime-hover);
	--bs-btn-active-border-color: var(--fe-lime-hover);
}

/* ---- Forms ---- */

.form-control,
.form-select {
	border-width: 1.5px;
	font-size: 0.875rem;
	padding: 0.6875rem 0.8125rem;
}

.form-select {
	padding-right: 2.25rem;
}

.form-control-sm,
.form-select-sm {
	padding: 0.4rem 0.65rem;
	font-size: 0.8125rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
	border-color: rgba(var(--fe-navy-rgb), 0.55);
	box-shadow: 0 0 0 0.2rem rgba(var(--fe-lime-rgb), 0.35);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-check-input:focus {
	border-color: var(--fe-lime);
}

.form-label {
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 0.375rem;
}

.form-check-input {
	border-width: 1.5px;
	border-color: rgba(var(--fe-navy-rgb), 0.35);
}

.form-check-input:checked {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
}

.input-group-text {
	border-width: 1.5px;
	font-size: 0.875rem;
}

.form-range::-webkit-slider-thumb {
	background-color: var(--bs-primary);
}

.form-range::-moz-range-thumb {
	background-color: var(--bs-primary);
}

/* ---- Surfaces: components that default to --bs-body-bg should sit on
        the white surface, not the warm page background. ---- */

.card {
	--bs-card-bg: var(--fe-surface);
	--bs-card-border-color: var(--fe-border);
	--bs-card-border-radius: var(--fe-radius-card);
	--bs-card-inner-border-radius: calc(var(--fe-radius-card) - 1px);
	--bs-card-cap-bg: transparent;
	--bs-card-spacer-y: 1.25rem;
	--bs-card-spacer-x: 1.25rem;
	--bs-card-cap-padding-y: 1rem;
	--bs-card-cap-padding-x: 1.25rem;
	box-shadow: var(--fe-shadow);
}

.card-title {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
}

.dropdown-menu {
	--bs-dropdown-bg: var(--fe-surface);
	--bs-dropdown-border-color: var(--fe-border);
	--bs-dropdown-border-radius: 14px;
	--bs-dropdown-padding-y: 0.375rem;
	--bs-dropdown-padding-x: 0.375rem;
	--bs-dropdown-font-size: 0.875rem;
	--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
	--bs-dropdown-link-active-color: #fff;
	--bs-dropdown-link-active-bg: var(--fe-navy);
	box-shadow: var(--fe-shadow);
}

.dropdown-item {
	border-radius: 8px;
	font-weight: 500;
}

.modal {
	--bs-modal-bg: var(--fe-surface);
	--bs-modal-border-color: transparent;
	--bs-modal-border-radius: 20px;
	--bs-modal-inner-border-radius: 19px;
	--bs-modal-header-border-color: var(--fe-border);
	--bs-modal-footer-border-color: var(--fe-border);
}

.popover {
	--bs-popover-bg: var(--fe-surface);
	--bs-popover-border-color: var(--fe-border);
	--bs-popover-border-radius: 14px;
	--bs-popover-body-padding-x: 1rem;
	--bs-popover-body-padding-y: 0.875rem;
	box-shadow: var(--fe-shadow);
}

.offcanvas,
.offcanvas-lg,
.offcanvas-md,
.offcanvas-sm,
.offcanvas-xl,
.offcanvas-xxl {
	--bs-offcanvas-bg: var(--fe-surface);
}

.list-group {
	--bs-list-group-bg: var(--fe-surface);
	--bs-list-group-border-color: var(--fe-border);
	--bs-list-group-active-bg: var(--bs-primary);
	--bs-list-group-active-border-color: var(--bs-primary);
}

.alert {
	--bs-alert-border-radius: 14px;
	font-size: 0.9375rem;
}

/* ---- Badges ---- */

.badge {
	--bs-badge-font-weight: 700;
	--bs-badge-padding-x: 0.7em;
	--bs-badge-padding-y: 0.45em;
	--bs-badge-border-radius: 999px;
}

.badge.bg-success,
.text-bg-success {
	color: var(--fe-navy-deep) !important;
}

[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .text-bg-primary {
	color: var(--fe-navy-deep) !important;
}

/* ---- Tables ---- */

.table {
	--bs-table-bg: transparent;
	--bs-table-border-color: var(--fe-border);
	--bs-table-striped-bg: rgba(var(--bs-body-color-rgb), 0.03);
	--bs-table-hover-bg: rgba(var(--bs-body-color-rgb), 0.04);
	font-size: 0.9rem;
	margin-bottom: 0;
}

.table > thead > tr > th {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--bs-secondary-color);
	white-space: nowrap;
}

.table > :not(caption) > * > * {
	padding: 0.8rem 1.25rem;
}

.table > tbody > tr:last-child > * {
	border-bottom-width: 0;
}

/* ---- Navigation ---- */

.nav-pills {
	--bs-nav-pills-border-radius: 999px;
	--bs-nav-pills-link-active-color: #fff;
	--bs-nav-pills-link-active-bg: var(--fe-navy);
}

.nav-underline {
	--bs-nav-underline-link-active-color: var(--bs-emphasis-color);
}

.nav-tabs {
	--bs-nav-tabs-link-active-bg: var(--fe-surface);
	--bs-nav-tabs-border-color: var(--fe-border);
}

.pagination {
	--bs-pagination-color: var(--bs-body-color);
	--bs-pagination-bg: transparent;
	--bs-pagination-border-color: transparent;
	--bs-pagination-border-radius: 10px;
	--bs-pagination-font-size: 0.875rem;
	--bs-pagination-hover-color: var(--bs-body-color);
	--bs-pagination-hover-bg: var(--bs-tertiary-bg);
	--bs-pagination-hover-border-color: transparent;
	--bs-pagination-focus-color: var(--bs-body-color);
	--bs-pagination-focus-bg: var(--bs-tertiary-bg);
	--bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--fe-lime-rgb), 0.35);
	--bs-pagination-active-color: #fff;
	--bs-pagination-active-bg: var(--fe-navy);
	--bs-pagination-active-border-color: var(--fe-navy);
	--bs-pagination-disabled-bg: transparent;
	--bs-pagination-disabled-border-color: transparent;
	gap: 0.25rem;
}

.pagination .page-link {
	border-radius: var(--bs-pagination-border-radius);
	font-weight: 600;
	min-width: 2.25rem;
	text-align: center;
}

.progress {
	--bs-progress-bar-bg: var(--fe-lime);
	--bs-progress-bg: var(--bs-secondary-bg);
	--bs-progress-height: 0.5rem;
}

.breadcrumb {
	--bs-breadcrumb-font-size: 0.8125rem;
	--bs-breadcrumb-item-active-color: var(--bs-secondary-color);
}

.breadcrumb-item > a {
	text-decoration: none;
	color: var(--bs-secondary-color);
}

.breadcrumb-item > a:hover {
	color: var(--bs-emphasis-color);
}


/* =================================================================
   6. Shared components.
   ================================================================= */

/* Brand lockup: "fiteat" wordmark + the bowl mark ({&BrandMark}).
   Sizes: default = the mock's nav (38px / 40px mark), -sm = footer,
   sidebar and auth card. */
.fe-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.fe-brand:hover {
	color: inherit;
}

.fe-brand-name {
	font-size: 2.375rem;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
}

.fe-brand-mark {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
}

.fe-brand-sm .fe-brand-name {
	font-size: 1.5rem;
}

.fe-brand-sm .fe-brand-mark {
	width: 28px;
	height: 28px;
}

/* Initial-letter avatar (replaces the generic avatar.png). */
.fe-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.fe-avatar-lg {
	width: 88px;
	height: 88px;
	font-size: 2.25rem;
}

/* Empty / error state — 404, 403, "nothing here yet". */
.fe-empty {
	max-width: 30rem;
	margin: 0 auto;
	padding: 4rem 1.5rem;
	text-align: center;
}

.fe-empty-code {
	font-size: 5.5rem;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--bs-emphasis-color);
}

.fe-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--fe-lime-tint);
	color: var(--fe-navy);
	font-size: 1.5rem;
}

.fe-empty-icon-danger {
	background: var(--bs-danger-bg-subtle);
	color: var(--bs-danger-text-emphasis);
}

/* Solid lime pill ("38г протеини · 480 кал"). */
.fe-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
	font-size: 0.875rem;
	font-weight: 700;
}

/* Tinted tag ("~1500 кал", macro lines on cards). */
.fe-tag {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--fe-lime-tint);
	color: var(--bs-success-text-emphasis);
	font-size: 0.75rem;
	font-weight: 700;
}

/* Lime-tinted callout ("Нарачки до четврток…", recommended plan). */
.fe-callout {
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--fe-lime-tint);
	color: var(--bs-success-text-emphasis);
}

.fe-callout-title {
	margin: 0 0 6px;
	color: var(--bs-emphasis-color);
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0;
}

.fe-callout p {
	margin: 0 0 14px;
	font-size: 0.84375rem;
}

/* Picture frames. Use on an <img> (it gets object-fit) or on a <div>
   placeholder while no picture exists. */
.fe-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(135deg, var(--fe-photo-a), var(--fe-photo-b));
	color: var(--fe-photo-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	object-fit: cover;
}

/* The mock's striped placeholder for the large hero picture. */
.fe-photo-stripes {
	background: repeating-linear-gradient(135deg, var(--fe-photo-a), var(--fe-photo-a) 10px, #e2ddce 10px, #e2ddce 20px);
	font-size: 0.875rem;
}

.fe-ratio-4x3 {
	aspect-ratio: 4 / 3;
}

.fe-ratio-16x10 {
	aspect-ratio: 16 / 10;
}

.fe-ratio-1x1 {
	aspect-ratio: 1 / 1;
}

/* Small square picture in table rows (meal / program lists). */
.fe-thumb {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
}

/* Picture grid in edit forms (program gallery). */
.fe-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
}

.fe-gallery-item .fe-photo {
	border-radius: 10px;
}

/* "Add row" button under script.js .auto-option rows (recipe lines). */
.auto-option-toolbar {
	margin-top: 0.25rem;
}

/* Step indicator — onboarding wizard progress. */
.fe-steps {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-steps > li {
	flex: 1;
	padding-top: 0.625rem;
	border-top: 3px solid var(--bs-secondary-bg);
	color: var(--bs-secondary-color);
	font-size: 0.8125rem;
	font-weight: 600;
}

.fe-steps > li.done {
	border-top-color: var(--fe-lime);
}

.fe-steps > li.active {
	border-top-color: var(--bs-primary);
	color: var(--bs-emphasis-color);
}

/* Confirm popover (script.js [data-confirm]). */
.zo-confirm-popover .popover-body {
	min-width: 220px;
}

.zo-confirm-popover .zo-confirm-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

/* Hidden frame script.js [data-print] loads a document into before printing it. */
.zo-print-frame {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	width: 0;
	height: 0;
	overflow: hidden;
	border: 0;
}

/* A block script.js [data-swap] is refreshing in place: held still and
   dimmed until its new content arrives. */
.zo-swapping {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Global toast — ZO.toast(text, color) from script.js adds
   .zo-toast-<color>; fixed bottom-right, fades via .show. */
#zo-toast {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	z-index: 1100;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: var(--fe-navy);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

#zo-toast.show {
	opacity: 1;
	transform: translateY(0);
}

#zo-toast.zo-toast-success {
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
}

#zo-toast.zo-toast-danger {
	background: var(--bs-danger);
}

#zo-toast.zo-toast-warning {
	background: var(--bs-warning);
	color: var(--fe-navy-deep);
}


/* =================================================================
   7. Selection skins — the mock's chips, day circles and option rows.

   All of them are Bootstrap's own .btn-check pattern: a visually
   hidden checkbox/radio followed by its <label>. No JS.

     <input type="checkbox" class="btn-check" id="m-lunch" name="Parts[]" value="2" checked>
     <label class="fe-chip" for="m-lunch">Ручек</label>

     .fe-chip     pill          meal parts, tags
     .fe-day      circle        weekdays (add `disabled` on the input for Sunday)
     .fe-option   full row      plan type, duration   (.fe-option-title / .fe-option-meta inside)
     .fe-segment  joined pair   Не / Да               (wrap the inputs + labels)
     .fe-pick     picture card  weekly meal choice
   ================================================================= */

.fe-chip,
.fe-day,
.fe-option,
.fe-segment > label,
.fe-pick {
	border: 1.5px solid var(--fe-border);
	background: var(--fe-bg);
	color: var(--fe-ink-soft);
	cursor: pointer;
	user-select: none;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.fe-chip {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 0.84375rem;
	font-weight: 600;
}

.fe-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 0.78125rem;
	font-weight: 700;
}

.fe-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	text-align: left;
}

/* The plan-type rows are <button>s (they submit the builder form to
   another plan); .active marks the current one. */
button.fe-option {
	font: inherit;
}

.fe-option.active {
	border-color: var(--fe-navy);
	background: var(--fe-lime-tint-soft);
}

.fe-option-save {
	color: var(--bs-success-text-emphasis);
	font-weight: 700;
}

.fe-option-title {
	color: var(--bs-body-color);
	font-size: 0.90625rem;
	font-weight: 700;
}

.fe-option-meta {
	font-size: 0.78125rem;
	font-weight: 600;
	white-space: nowrap;
}

.fe-segment {
	display: flex;
	overflow: hidden;
	border: 1.5px solid var(--fe-border);
	border-radius: 10px;
}

.fe-segment > label {
	flex: 1;
	padding: 11px;
	border: 0;
	font-size: 0.875rem;
	font-weight: 700;
	text-align: center;
}

.fe-pick {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	border-radius: 14px;
	background: var(--fe-surface);
	color: var(--bs-body-color);
	font-size: 0.875rem;
	font-weight: 600;
}

.fe-pick-body {
	padding: 0.75rem 0.875rem;
}

.fe-chip:hover,
.fe-day:hover,
.fe-option:hover,
.fe-pick:hover {
	border-color: rgba(var(--fe-navy-rgb), 0.4);
}

.btn-check:checked + .fe-chip,
.btn-check:checked + .fe-day,
.fe-segment > .btn-check:checked + label {
	border-color: var(--fe-navy);
	background: var(--fe-lime-tint-strong);
	color: var(--bs-body-color);
}

.btn-check:checked + .fe-option {
	border-color: var(--fe-navy);
	background: var(--fe-lime-tint-soft);
}

.btn-check:checked + .fe-pick {
	border-color: var(--fe-navy);
	box-shadow: 0 0 0 3px var(--fe-lime-tint-strong);
}

.btn-check:focus-visible + .fe-chip,
.btn-check:focus-visible + .fe-day,
.btn-check:focus-visible + .fe-option,
.btn-check:focus-visible + .fe-pick,
.fe-segment > .btn-check:focus-visible + label {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(var(--fe-lime-rgb), 0.45);
}

.btn-check:disabled + .fe-chip,
.btn-check:disabled + .fe-day,
.btn-check:disabled + .fe-option,
.btn-check:disabled + .fe-pick,
.fe-segment > .btn-check:disabled + label {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

[data-bs-theme="dark"] .btn-check:checked + .fe-chip,
[data-bs-theme="dark"] .btn-check:checked + .fe-day,
[data-bs-theme="dark"] .btn-check:checked + .fe-option,
[data-bs-theme="dark"] .btn-check:checked + .fe-pick,
[data-bs-theme="dark"] .fe-segment > .btn-check:checked + label {
	border-color: var(--fe-lime);
}

/* Fields that belong to one choice of a radio pair ("a company" →
   company name, VAT number). Hidden while the radio marked
   .fe-reveal-off is the checked one. No JS: where :has() is not
   supported the fields simply stay visible.

     <section class="fe-reveal-scope">
       <input type="radio" class="btn-check fe-reveal-off" …> <label>A person</label>
       <input type="radio" class="btn-check" …>               <label>A company</label>
       <div class="fe-reveal">…company fields…</div>
     </section>                                                          */
.fe-reveal-scope:has(.fe-reveal-off:checked) .fe-reveal {
	display: none;
}

/* Order summary lines beside the builder. */
.fe-summary-line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 6px 0;
	color: var(--bs-secondary-color);
	font-size: 0.84375rem;
}

/* The label keeps its line; a long value (an address) is what wraps. */
.fe-summary-line > :first-child {
	flex-shrink: 0;
}

.fe-summary-total {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--fe-border);
	color: var(--bs-emphasis-color);
	font-size: 1.25rem;
	font-weight: 800;
}


/* =================================================================
   8. Staff shell — admin.fiteat.mk.

   <body class="fe-admin">
     <div class="fe-shell">
       <aside class="fe-sidebar">            navy rail (≥ lg) …
         <div class="offcanvas-lg offcanvas-start" id="feSidebar">  … slide-in panel (< lg)
       <div class="fe-main">
         <header class="fe-topbar">          sticky: toggler, page title, user menu
         <main class="fe-content">
         <footer class="fe-shell-footer">

   Markup: Shared/Views/Templates/Dashboard/.
   ================================================================= */

.fe-admin {
	--fe-radius-card: 14px;
	--fe-shadow: 0 1px 2px rgba(29, 42, 51, 0.05), 0 4px 16px rgba(29, 42, 51, 0.04);
}

[data-bs-theme="dark"] .fe-admin,
.fe-admin[data-bs-theme="dark"] {
	--fe-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fe-shell {
	display: flex;
	min-height: 100vh;
}

.fe-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

/* The sidebar is always dark navy, in both colour modes: the element
   carries data-bs-theme="dark" so everything inside reads light-on-dark. */
.fe-sidebar {
	--bs-offcanvas-bg: var(--fe-navy);
	--bs-offcanvas-width: var(--fe-sidebar-width);
	color: rgba(255, 255, 255, 0.72);
}

.fe-sidebar .offcanvas-lg {
	background-color: var(--fe-navy);
}

/* Two classes on purpose: Bootstrap zeroes .offcanvas-lg .offcanvas-body
   padding from lg up, and this has to outrank it. */
.fe-sidebar .fe-sidebar-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	padding: 1.25rem 0.875rem;
}

.fe-sidebar .fe-sidebar-brand {
	padding: 0.25rem 0.5rem 1.25rem;
	color: #fff;
}

.fe-sidebar-label {
	padding: 1.125rem 0.75rem 0.375rem;
	color: rgba(255, 255, 255, 0.42);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fe-sidebar .nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5625rem 0.75rem;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.90625rem;
	font-weight: 500;
}

.fe-sidebar .nav-link > .fas,
.fe-sidebar .nav-link > .far {
	width: 1.125rem;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}

.fe-sidebar .nav-link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.fe-sidebar .nav-link.active {
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
	font-weight: 700;
}

.fe-sidebar .nav-link.active > .fas,
.fe-sidebar .nav-link.active > .far {
	color: var(--fe-navy-deep);
}

@media (min-width: 992px) {
	.fe-sidebar {
		position: sticky;
		top: 0;
		flex-shrink: 0;
		width: var(--fe-sidebar-width);
		height: 100vh;
		overflow-y: auto;
		background: var(--fe-navy);
	}

	/* Bootstrap forces .offcanvas-lg transparent from lg up — that is fine,
	   the navy now comes from .fe-sidebar itself. */
	.fe-sidebar .offcanvas-lg {
		min-height: 100%;
	}
}

.fe-topbar {
	position: sticky;
	top: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-height: 64px;
	padding: 0.625rem 1.5rem;
	border-bottom: 1px solid var(--fe-border);
	background: rgba(var(--bs-body-bg-rgb), 0.88);
	backdrop-filter: blur(10px);
}

.fe-topbar-title {
	min-width: 0;
	margin-right: auto;
}

.fe-page-title {
	margin: 0;
	overflow: hidden;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fe-page-subtitle {
	overflow: hidden;
	color: var(--bs-secondary-color);
	font-size: 0.8125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Square icon button in the top bar (menu toggler, theme toggle, language). */
.fe-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1.5px solid var(--fe-border);
	border-radius: 10px;
	background: transparent;
	color: var(--bs-body-color);
}

.fe-icon-btn:hover {
	border-color: rgba(var(--bs-body-color-rgb), 0.4);
	color: var(--bs-emphasis-color);
}

.fe-icon-btn::after {
	display: none; /* no dropdown caret on icon buttons */
}

/* Sun / moon swap for [data-theme-toggle]. */
.fe-theme-dark-only {
	display: none;
}

[data-bs-theme="dark"] .fe-theme-dark-only {
	display: inline;
}

[data-bs-theme="dark"] .fe-theme-light-only {
	display: none;
}

.fe-user-menu {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bs-body-color);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.fe-content {
	flex: 1;
	width: 100%;
	max-width: 1440px;
	padding: 1.5rem;
}

.fe-shell-footer {
	padding: 1rem 1.5rem 1.5rem;
	color: var(--bs-secondary-color);
	font-size: 0.8125rem;
}

/* List toolbars: search + filters + primary action in a card header. */
.fe-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.fe-search {
	position: relative;
}

.fe-search > .fas {
	position: absolute;
	top: 50%;
	left: 0.875rem;
	color: var(--bs-secondary-color);
	font-size: 0.8125rem;
	transform: translateY(-50%);
	pointer-events: none;
}

.fe-search > .form-control {
	padding-left: 2.25rem;
}

/* Profile header on the account page. */
.fe-profile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

@media (max-width: 575.98px) {
	.fe-topbar {
		padding: 0.625rem 1rem;
	}

	.fe-content {
		padding: 1rem;
	}
}

/* ---- Figures — the Analytics page and the staff home: range pills,
   tiles with their change, charts (script.js [data-chart]), leaderboards.
   Numbers are set in tabular figures so columns of them line up. ---- */

.fe-range {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-bottom: 1.25rem;
}

.fe-range .fe-filters {
	gap: 6px;
	margin-bottom: 0;
}

.fe-range .fe-filter {
	padding: 6px 14px;
}

.fe-range-note {
	margin-left: auto;
	color: var(--fe-ink-soft);
	font-size: 0.8125rem;
}

[data-bs-theme="dark"] .fe-range .fe-filter.active {
	border-color: var(--fe-lime);
	background: var(--fe-lime);
	color: var(--fe-navy);
}

/* A tile: label, figure, and under it the change against the period before. */
.fe-kpi {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-radius-card);
	background: var(--fe-surface);
	box-shadow: var(--fe-shadow);
	color: inherit;
	text-decoration: none;
}

a.fe-kpi:hover {
	border-color: var(--fe-chart-1);
	color: inherit;
}

.fe-kpi-label {
	color: var(--fe-ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
}

.fe-kpi-value {
	color: var(--bs-emphasis-color);
	font-size: 1.625rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.fe-kpi-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: auto;
	padding-top: 8px;
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
}

/* The one figure the page is about — navy, larger. */
.fe-kpi-hero {
	border-color: var(--fe-navy);
	background: var(--fe-navy);
	color: rgba(255, 255, 255, 0.72);
}

.fe-kpi-hero .fe-kpi-label,
.fe-kpi-hero .fe-kpi-foot {
	color: rgba(255, 255, 255, 0.72);
}

.fe-kpi-hero .fe-kpi-value {
	color: #fff;
	font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
}

.fe-kpi-hero .fe-kpi-foot {
	margin-top: 4px;
	margin-bottom: 18px;
	padding-top: 0;
}

.fe-kpi-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.8125rem;
}

.fe-kpi-facts strong {
	color: #fff;
	font-weight: 700;
}

[data-bs-theme="dark"] .fe-kpi-hero {
	border-color: rgba(98, 196, 107, 0.4);
	background: #16242c;
}

/* The change against the period before: an arrow and a percentage, never colour alone. */
.fe-delta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bs-tertiary-bg);
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
	white-space: nowrap;
}

.fe-delta-up {
	background: var(--fe-lime-tint);
	color: var(--fe-navy);
}

.fe-delta-down {
	background: rgba(254, 127, 92, 0.22);
	color: #8f2d14;
}

[data-bs-theme="dark"] .fe-delta-up {
	color: #c6ecc9;
}

[data-bs-theme="dark"] .fe-delta-down {
	color: #ffc2b2;
}

.fe-kpi-hero .fe-delta {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.fe-kpi-hero .fe-delta-up {
	background: var(--fe-lime);
	color: var(--fe-navy);
}

.fe-kpi-hero .fe-delta-down {
	background: var(--fe-coral);
	color: var(--fe-navy);
}

.fe-toolbar-title {
	flex: 1 1 0;
	min-width: 0;
}

/* A chart. script.js fills the <figure>: legend, plot (canvas), and the
   same numbers as a table, shown instead of the plot by .is-table. */
.fe-chart-box {
	container-type: inline-size;
}

.fe-chart {
	position: relative;
	margin: 0;
}

.fe-chart-plot {
	position: relative;
	height: 260px;
}

.fe-chart-sm .fe-chart-plot {
	height: 210px;
}

.fe-chart-lg .fe-chart-plot {
	height: 300px;
}

.fe-chart-spark .fe-chart-plot {
	height: 64px;
}

/* .fe-chart-fill — the plot takes whatever height its card has left, so
   a chart beside a taller card is not left with a blank under it. */
.fe-chart-box:has(> .fe-chart-fill) {
	display: flex;
	flex-direction: column;
}

.fe-chart-fill {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.fe-chart-fill .fe-chart-plot {
	flex: 1 1 260px;
	height: auto;
	min-height: 260px;
}

.fe-chart-fill .fe-chart-plot > canvas {
	position: absolute;
	inset: 0;
}

.fe-chart-fill.is-table {
	display: block;
}

.fe-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.fe-chart-key {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: -6px;
	padding: 3px 6px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--fe-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: left;
}

.fe-chart-key:hover {
	background: var(--bs-tertiary-bg);
}

.fe-chart-key.off {
	color: var(--fe-ink-soft);
	text-decoration: line-through;
}

.fe-chart-key.off .fe-swatch {
	opacity: 0.3;
}

/* The colour of a series beside its name — the same tokens the canvas reads. */
.fe-swatch {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--fe-chart-1);
}

.fe-swatch-line {
	width: 16px;
	height: 3px;
	border-radius: 2px;
}

.fe-swatch-dashed {
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px);
	mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 8px);
}

.fe-swatch-2 { background: var(--fe-chart-2); }
.fe-swatch-3 { background: var(--fe-chart-3); }
.fe-swatch-4 { background: var(--fe-chart-4); }
.fe-swatch-5 { background: var(--fe-chart-5); }
.fe-swatch-6 { background: var(--fe-chart-6); }
.fe-swatch-seq-1 { background: var(--fe-chart-seq-1); }
.fe-swatch-seq-2 { background: var(--fe-chart-seq-2); }
.fe-swatch-seq-3 { background: var(--fe-chart-seq-3); }
.fe-swatch-seq-4 { background: var(--fe-chart-seq-4); }
.fe-swatch-seq-5 { background: var(--fe-chart-seq-5); }
.fe-swatch-muted { background: var(--fe-chart-muted); }
.fe-swatch-neutral { background: var(--fe-chart-neutral); }

/* A donut: the ring with its total inside, and the slices named beside it. */
.fe-chart-donut {
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
	align-items: center;
	gap: 14px 24px;
}

.fe-chart-donut .fe-chart-plot {
	height: 210px;
}

.fe-chart-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
}

.fe-chart-center strong {
	color: var(--bs-emphasis-color);
	font-size: 1.625rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.fe-chart-center span {
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
}

.fe-chart-slices {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-chart-slices .fe-chart-key {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto 3.25em;
	width: 100%;
	margin: 0;
	padding: 6px 8px;
}

.fe-chart-key-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fe-chart-key-value,
.fe-chart-key-share {
	font-variant-numeric: tabular-nums;
}

.fe-chart-key-share {
	color: var(--fe-ink-soft);
	font-weight: 500;
	text-align: right;
}

@container (max-width: 400px) {
	.fe-chart-donut {
		grid-template-columns: minmax(0, 1fr);
	}
}

.fe-chart-table {
	display: none;
	max-height: 300px;
	overflow: auto;
}

.fe-chart-table thead th {
	position: sticky;
	top: 0;
	background: var(--fe-surface);
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
}

.fe-chart-table tbody th {
	font-weight: 600;
}

.fe-chart-table td {
	font-variant-numeric: tabular-nums;
}

.fe-chart.is-table {
	display: block;
}

.fe-chart.is-table .fe-chart-table {
	display: block;
}

.fe-chart.is-table .fe-chart-plot,
.fe-chart.is-table .fe-chart-legend,
.fe-chart.is-table .fe-chart-slices {
	display: none;
}

.fe-chart-none {
	margin: 0;
	padding: 48px 12px;
	color: var(--fe-ink-soft);
	text-align: center;
}

.fe-chart-spark .fe-chart-none {
	padding: 10px 0;
	font-size: 0.8125rem;
	text-align: left;
}

.fe-icon-btn.active {
	background: var(--fe-lime-tint);
}

.badge.bg-warning {
	color: var(--fe-navy);
}

/* A bar that measures a row against the longest: leaderboards, the funnel.
   A native <progress>, so its length needs no inline style. */
.fe-meter {
	display: block;
	width: 100%;
	height: 6px;
	margin-top: 6px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--bs-tertiary-bg);
	appearance: none;
}

.fe-meter::-webkit-progress-bar {
	background: var(--bs-tertiary-bg);
}

.fe-meter::-webkit-progress-value {
	border-radius: 999px;
	background: var(--fe-chart-1);
}

.fe-meter::-moz-progress-bar {
	border-radius: 999px;
	background: var(--fe-chart-1);
}

.fe-meter-2::-webkit-progress-value {
	background: var(--fe-chart-2);
}

.fe-meter-2::-moz-progress-bar {
	background: var(--fe-chart-2);
}

.fe-meter-lg {
	height: 10px;
}

/* Leaderboard: rank, picture or initial, name with its bar, figure. */
.fe-board {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-board-row {
	display: grid;
	grid-template-columns: 26px 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fe-border);
	color: inherit;
	text-decoration: none;
}

.fe-board > li:last-child .fe-board-row {
	border-bottom: 0;
}

a.fe-board-row:hover {
	color: inherit;
}

a.fe-board-row:hover .fe-board-title {
	text-decoration: underline;
}

.fe-board-rank {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bs-tertiary-bg);
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 800;
}

.fe-board > li:first-child .fe-board-rank {
	background: var(--fe-lime);
	color: var(--fe-navy);
}

.fe-board-pic {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--fe-photo-a);
	color: var(--fe-photo-ink);
	object-fit: cover;
}

.fe-board-main {
	min-width: 0;
}

.fe-board-title {
	display: block;
	overflow: hidden;
	font-size: 0.875rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fe-board-value {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.fe-board-value small {
	display: block;
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 500;
}

/* From sign-up to plan: a step per row, each a share of the first. */
.fe-funnel {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-funnel-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0 12px;
}

.fe-funnel-title {
	font-size: 0.875rem;
	font-weight: 600;
}

.fe-funnel-count {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.fe-funnel-count small {
	margin-left: 6px;
	color: var(--fe-ink-soft);
	font-weight: 500;
}

.fe-funnel .fe-meter {
	grid-column: 1 / -1;
}

/* Staff home: the greeting with the time left to order beside it. */
.fe-glance {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.fe-glance-clock {
	margin-left: auto;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--bs-tertiary-bg);
}

.fe-glance-clock.is-soon {
	background: rgba(254, 127, 92, 0.2);
}

.fe-countdown {
	display: flex;
	align-items: baseline;
	gap: 6px;
	color: var(--bs-emphasis-color);
	font-size: 1.375rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.fe-countdown small {
	margin-right: 6px;
	color: var(--fe-ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
}

/* A plain row in a card: who / what on the left, a figure or badge on the right. */
.fe-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-rows-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fe-border);
	color: inherit;
	text-decoration: none;
}

.fe-rows > li:last-child .fe-rows-item {
	border-bottom: 0;
}

a.fe-rows-item:hover {
	color: inherit;
}

a.fe-rows-item:hover .fe-rows-title {
	text-decoration: underline;
}

.fe-rows-main {
	flex: 1 1 auto;
	min-width: 0;
}

.fe-rows-title {
	display: block;
	overflow: hidden;
	font-size: 0.875rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fe-rows-note {
	display: block;
	overflow: hidden;
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fe-rows-end {
	flex: none;
	font-size: 0.875rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}


/* =================================================================
   9. Auth pages — sign in, reset. A centred card in the proportions of
   the mock's dialog (440px wide, 20px radius, 30px padding).
   Markup: Templates/Auth/HeaderAuth + FooterAuth.
   ================================================================= */

.fe-auth {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.fe-auth-box {
	width: 100%;
	max-width: 440px;
}

.fe-auth-card {
	padding: 30px;
	border: 1px solid var(--fe-border);
	border-radius: 20px;
	background: var(--fe-surface);
	box-shadow: var(--fe-shadow);
}

.fe-auth-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.fe-auth-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
}

.fe-auth-sub {
	margin: 0.375rem 0 0;
	color: var(--bs-secondary-color);
	font-size: 0.875rem;
}

.fe-auth-foot {
	margin-top: 1.25rem;
	color: var(--bs-secondary-color);
	font-size: 0.78125rem;
	text-align: center;
}

.fe-flag {
	width: 24px;
	height: 18px;
	border-radius: 4px;
	object-fit: cover;
}


/* =================================================================
   10. Public site — fiteat.mk. Ported from the mock, section by section.
   <body class="fe-site">. Markup: Site/Views/Templates/ + Site/Views/Home/.
   ================================================================= */

.fe-site {
	--fe-radius-card: 18px;
}

/* Content column — the mock's 1120px with 24px gutters. */
.fe-wrap {
	width: 100%;
	max-width: var(--fe-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Navbar ---- */

.fe-navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	border-bottom: 1px solid var(--fe-border);
	background: var(--fe-bg);
}

.fe-navbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	max-width: var(--fe-wrap);
	min-height: 85px;             /* the mock's bar height */
	margin: 0 auto;
	padding: 14px 24px;
}

.fe-nav-links {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-nav-links a {
	color: var(--fe-ink-soft);
	font-size: 0.90625rem;
	font-weight: 500;
	text-decoration: none;
}

.fe-nav-links a:hover,
.fe-nav-links a.active {
	color: var(--fe-navy-deep);
}

.fe-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Below md the links + actions fold into a Bootstrap collapse under the bar. */
@media (max-width: 767.98px) {
	.fe-navbar-inner {
		min-height: 64px;
	}

	.fe-navbar .fe-brand-name {
		font-size: 1.875rem;
	}

	.fe-navbar .fe-brand-mark {
		width: 32px;
		height: 32px;
	}

	.fe-nav-collapse {
		flex-basis: 100%;
	}

	.fe-nav-links {
		flex-direction: column;
		gap: 0;
		padding: 6px 0 10px;
	}

	.fe-nav-links a {
		display: block;
		padding: 10px 0;
		font-size: 1rem;
	}

	.fe-nav-actions {
		padding-bottom: 6px;
	}

	.fe-nav-actions .btn {
		flex: 1;
	}
}

@media (min-width: 768px) {
	.fe-nav-collapse {
		display: flex !important;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
	}

	.fe-nav-links {
		margin: 0 auto;
	}
}

/* ---- Hero ----
   Left: the promise, in large tight type. Right: the logo's own shape
   (a square with 30 % corners) holding a meal photo — or the bowl mark
   itself until there is one — with two things pinned on it: a round
   "2 min" stamp and a food-label card showing a real meal's macros. */

.fe-hero {
	overflow: hidden;
	padding: 68px 0 104px;
	background: var(--fe-hero-bg);
}

.fe-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 64px;
	align-items: center;
}

/* "Next delivery: Monday, 30.11 | order by Thursday, 26.11" */
.fe-hero-chip {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 28px;
	padding: 7px 14px 7px 12px;
	border: 1px solid var(--fe-border);
	border-radius: 999px;
	background: var(--fe-surface);
	color: var(--fe-ink);
	font-size: 0.8125rem;
	text-decoration: none;
}

.fe-hero-chip:hover {
	border-color: var(--fe-navy);
	color: var(--fe-ink);
}

.fe-hero-chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fe-lime);
	box-shadow: 0 0 0 4px var(--fe-lime-tint);
}

.fe-hero-chip-rest {
	padding-left: 10px;
	border-left: 1px solid var(--fe-border);
	color: var(--fe-ink-soft);
}

.fe-hero h1 {
	margin: 0 0 24px;
	font-size: clamp(2.375rem, 4.7vw, 3.625rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.06;
}

/* A highlighter stroke under a phrase. Lime is the fill; the words stay navy. */
.fe-mark {
	padding: 0 0.06em;
	background-image: linear-gradient(var(--fe-lime), var(--fe-lime));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 100% 0.34em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.fe-hero-lead {
	max-width: 44ch;
	margin: 0 0 32px;
	color: var(--fe-ink-soft);
	font-size: 1.125rem;
	line-height: 1.6;
}

.fe-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

/* Text link with a lime underline and an arrow that leans forward on hover. */
.fe-link-arrow {
	padding-bottom: 2px;
	border-bottom: 2px solid var(--fe-lime);
	color: var(--fe-ink);
	font-weight: 700;
	text-decoration: none;
}

.fe-link-arrow::after {
	display: inline-block;
	margin-left: 0.45em;
	content: "\2192";
	transition: transform 0.15s ease;
}

.fe-link-arrow:hover {
	color: var(--fe-ink);
}

.fe-link-arrow:hover::after {
	transform: translateX(4px);
}

/* Three figures under the buttons — counted from the catalogue. */
.fe-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 0;
	margin: 46px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--fe-border);
}

.fe-hero-facts > div {
	margin-right: 28px;
	padding-right: 28px;
	border-right: 1px solid var(--fe-border);
}

.fe-hero-facts > div:last-child {
	margin-right: 0;
	padding-right: 0;
	border-right: 0;
}

.fe-hero-facts dt {
	font-size: 1.75rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.fe-hero-facts dd {
	max-width: 17ch;
	margin: 4px 0 0;
	color: var(--fe-ink-soft);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.fe-hero-art {
	position: relative;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

/* The same shape again as an outline, set off behind the solid one. */
.fe-hero-art::before {
	position: absolute;
	inset: 0;
	border: 2px solid var(--fe-navy);
	border-radius: 30%;
	content: "";
	transform: translate(16px, 16px);
}

.fe-hero-shape {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 30%;
	background: var(--fe-lime);
}

.fe-hero-shape img,
.fe-hero-shape .fe-brand-mark {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fe-hero-stamp {
	position: absolute;
	top: -8px;
	right: -8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 116px;
	height: 116px;
	border-radius: 50%;
	background: var(--fe-navy);
	box-shadow: 0 10px 24px rgba(19, 28, 34, 0.25);
	color: #fff;
	text-align: center;
	transform: rotate(9deg);
}

.fe-hero-stamp strong {
	color: var(--fe-lime);
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.9;
}

.fe-hero-stamp span {
	color: var(--fe-lime);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fe-hero-stamp small {
	max-width: 9ch;
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.15;
}

/* The food label: thick rule under the name, thin rules between rows —
   the way a nutrition panel is printed. */
.fe-label {
	position: absolute;
	bottom: -40px;
	left: -48px;
	width: 252px;
	padding: 14px 16px 12px;
	border: 1.5px solid var(--fe-navy);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(29, 42, 51, 0.18);
	color: var(--fe-navy);
	transform: rotate(-3deg);
}

.fe-label-kicker {
	color: var(--fe-ink-soft);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fe-label-title {
	margin: 4px 0 8px;
	padding-bottom: 8px;
	border-bottom: 5px solid var(--fe-navy);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.25;
}

.fe-label-kcal {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding-bottom: 6px;
	border-bottom: 1.5px solid var(--fe-navy);
	font-size: 0.75rem;
	font-weight: 700;
}

.fe-label-kcal strong {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.fe-label-row {
	display: grid;
	grid-template-columns: 5.9rem 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid var(--fe-border);
	font-size: 0.75rem;
}

.fe-label-row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.fe-label-row b {
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* A macro's share of the portion's energy — a native <progress>, so the
   width comes from its value attribute, not an inline style. */
.fe-macro {
	display: block;
	width: 100%;
	height: 6px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--fe-hero-bg);
	appearance: none;
}

.fe-macro::-webkit-progress-bar {
	background: var(--fe-hero-bg);
}

.fe-macro::-webkit-progress-value {
	border-radius: 999px;
	background: var(--fe-navy);
}

.fe-macro::-moz-progress-bar {
	border-radius: 999px;
	background: var(--fe-navy);
}

@media (max-width: 991.98px) {
	.fe-hero {
		padding: 44px 0 84px;
	}

	.fe-hero-grid {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.fe-hero-art {
		max-width: 340px;
	}

	.fe-label {
		left: -12px;
		width: 232px;
	}
}

@media (max-width: 575.98px) {
	.fe-hero {
		padding-bottom: 108px;
	}

	/* Two lines on a phone: a pill would bulge, a rounded box does not. */
	.fe-hero-chip {
		border-radius: 16px;
	}

	.fe-hero-chip-rest {
		flex-basis: 100%;
		padding-left: 18px;
		border-left: 0;
	}

	.fe-hero-art {
		max-width: 300px;
	}

	/* The label hangs lower, so the shape above it stays visible. */
	.fe-label {
		bottom: -64px;
		left: -4px;
		width: 214px;
	}

	.fe-hero-stamp {
		width: 96px;
		height: 96px;
	}

	.fe-hero-stamp strong {
		font-size: 2rem;
	}

	/* The figures as an even row, without the dividers. */
	.fe-hero-facts {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.fe-hero-facts > div {
		margin-right: 0;
		padding-right: 0;
		border-right: 0;
	}

	.fe-hero-facts dt {
		font-size: 1.375rem;
	}

	.fe-hero-facts dd {
		font-size: 0.75rem;
	}
}

/* ---- Ticker — the menu's meal names drifting past under the hero, on
   navy, separated by the brand's three dots in turn. The track holds the
   list twice and moves by half its width, so the loop has no seam. ---- */

.fe-ticker {
	overflow: hidden;
	background: var(--fe-navy);
	color: var(--fe-bg);
}

.fe-ticker-track {
	display: flex;
	width: max-content;
	animation: fe-ticker 70s linear infinite;
}

.fe-ticker-track span {
	display: inline-flex;
	align-items: center;
	padding: 15px 0;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fe-ticker-track span::after {
	width: 8px;
	height: 8px;
	margin: 0 24px;
	border-radius: 50%;
	background: var(--fe-lime);
	content: "";
}

.fe-ticker-track span:nth-child(3n + 2)::after {
	background: var(--fe-amber);
}

.fe-ticker-track span:nth-child(3n)::after {
	background: var(--fe-coral);
}

@keyframes fe-ticker {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fe-ticker-track {
		animation: none;
	}
}

/* ---- Sections ---- */

.fe-section {
	padding: 96px 0;
}

.fe-section-surface {
	border-top: 1px solid var(--fe-border);
	border-bottom: 1px solid var(--fe-border);
	background: var(--fe-surface);
}

/* Small uppercase label with a lime dash, above a section title. */
.fe-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fe-eyebrow::before {
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--fe-lime);
	content: "";
}

.fe-section-head {
	max-width: 60ch;
	margin-bottom: 44px;
}

.fe-section-head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.fe-section-head p {
	margin: 12px 0 0;
	color: var(--fe-ink-soft);
	font-size: 1rem;
}

/* Title on the left, a short line of text on the right, sharing a baseline. */
.fe-section-head-split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px 56px;
	max-width: none;
}

.fe-section-head-split > p {
	max-width: 38ch;
	margin: 0;
}

@media (max-width: 767.98px) {
	.fe-section {
		padding: 64px 0;
	}

	.fe-section-head {
		margin-bottom: 30px;
	}
}

/* Soft band with a prompt + button ("Не си сигурен кој план е за тебе?"). */
.fe-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--fe-border);
	border-radius: 16px;
	background: var(--fe-hero-bg);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Filter pills above the menu grid (links with ?Tag=). */
.fe-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 34px;
}

.fe-filter {
	padding: 9px 18px;
	border: 1.5px solid var(--fe-border);
	border-radius: 999px;
	background: var(--fe-surface);
	color: var(--fe-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.fe-filter:hover {
	border-color: var(--fe-navy);
	color: var(--fe-ink);
}

.fe-filter.active {
	border-color: var(--fe-navy);
	background: var(--fe-navy);
	color: #fff;
}

/* Calculator result tiles. */
.fe-stat {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--fe-bg);
}

.fe-stat-num {
	color: var(--bs-emphasis-color);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
}

.fe-stat-label {
	margin-top: 2px;
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
}

/* ---- Plans — set like the brand's own post: a question on full green,
   the answers as cream cards with a navy letter badge (А, Б, В). ---- */

.fe-goal {
	padding: 96px 0;
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
}

.fe-goal .fe-section-head h2 {
	font-size: clamp(2.25rem, 4.6vw, 3.5rem);
	font-weight: 900;
	letter-spacing: -0.035em;
}

.fe-goal .fe-section-head-split > p {
	color: var(--fe-navy-deep);
	font-weight: 500;
	opacity: 0.85;
}

.fe-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 22px;
}

.fe-plan {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 26px;
	border-radius: 26px;
	background: var(--fe-bg);
	color: var(--fe-ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fe-plan:hover {
	box-shadow: 0 18px 40px rgba(19, 28, 34, 0.18);
	transform: translateY(-4px);
}

/* A program's own photo, once it has one, sits flush at the top of its card. */
.fe-plan-photo {
	width: calc(100% + 52px);
	max-width: none;
	margin: -26px -26px 22px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.fe-plan-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.fe-plan-letter {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--fe-navy);
	color: var(--fe-bg);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
}

.fe-plan-head h3 {
	margin: 0;
	font-size: 1.625rem;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.fe-plan-figure {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}

.fe-plan-figure strong {
	font-size: 3.25rem;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
}

.fe-plan-figure span {
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fe-plan > p {
	margin: 0 0 18px;
	color: var(--fe-ink-soft);
	font-size: 0.9375rem;
}

.fe-plan-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.fe-plan-specs span {
	width: 1.25em;
	margin-right: 6px;
	color: var(--fe-ink-soft);
	text-align: center;
}

.fe-plan-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--fe-border);
}

.fe-plan-price strong {
	display: block;
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.fe-plan-price span {
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
}

@media (max-width: 767.98px) {
	.fe-goal {
		padding: 64px 0;
	}
}

/* "Not sure which plan? Calculate" — a quiet dashed row, not another card. */
.fe-nudge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-top: 26px;
	padding: 20px 26px;
	border: 1.5px dashed rgba(var(--fe-navy-rgb), 0.45);
	border-radius: 18px;
	color: var(--fe-navy-deep);
	font-size: 0.9375rem;
	text-decoration: none;
}

.fe-nudge:hover {
	border-style: solid;
	border-color: var(--fe-navy);
	background: var(--fe-bg);
	color: var(--fe-navy-deep);
}

.fe-nudge strong {
	font-weight: 800;
}

/* ---- Calculator — the form on the left, the answer on a navy panel. ---- */

.fe-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: 64px;
	align-items: start;
}

.fe-calc-form h2 {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.fe-calc-lead {
	max-width: 46ch;
	margin: 0 0 28px;
	color: var(--fe-ink-soft);
}

.fe-result {
	position: sticky;
	top: 110px;
	padding: 30px;
	border-radius: 24px;
	background: var(--fe-navy);
	color: #fff;
}

.fe-result-kicker {
	color: var(--fe-lime);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fe-result-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 14px 0 14px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.fe-result-main strong {
	display: block;
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.04em;
	line-height: 1;
}

.fe-result-main small {
	margin-left: 2px;
	font-size: 0.5em;
	letter-spacing: 0;
}

.fe-result-main span {
	display: block;
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.8125rem;
}

.fe-result-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 7px 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
}

.fe-result-row b {
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.fe-result-plan {
	margin-top: 18px;
	padding: 20px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.07);
}

.fe-result-plan h3 {
	margin: 6px 0;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
}

.fe-result-plan h3 span {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0;
}

.fe-result-plan p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
}

.fe-result-empty .fe-result-main strong {
	color: rgba(255, 255, 255, 0.25);
}

.fe-result-hint {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9375rem;
}

@media (max-width: 991.98px) {
	.fe-calc {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.fe-result {
		position: static;
	}
}

/* ---- Menu — a reel of photo cards that scrolls sideways (touch,
   trackpad, or the arrows: script.js [data-scroll]). The reel runs to
   the edge of the window; its first card lines up with the page column. ---- */

.fe-reel-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-bottom: 26px;
}

.fe-reel-bar .fe-filters {
	margin-bottom: 0;
}

.fe-reel-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fe-reel-count {
	margin-right: 6px;
	color: var(--fe-ink-soft);
	font-size: 0.8125rem;
	font-weight: 600;
}

.fe-reel {
	--fe-reel-edge: max(24px, calc((100vw - var(--fe-wrap)) / 2 + 24px));

	display: flex;
	gap: 22px;
	overflow-x: auto;
	padding: 4px var(--fe-reel-edge) 18px;
	scroll-padding-inline: var(--fe-reel-edge);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.fe-reel::-webkit-scrollbar {
	display: none;
}

.fe-dish {
	flex: 0 0 272px;
	scroll-snap-align: start;
}

.fe-dish-photo {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--fe-photo-a), var(--fe-photo-b));
}

.fe-dish-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.fe-dish:hover .fe-dish-photo img {
	transform: scale(1.05);
}

.fe-dish-blank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--fe-photo-ink);
	font-size: 1.5rem;
}

/* The meal's kind, on the photo: a cream pill with one of the three dots. */
.fe-dish-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: var(--fe-bg);
	color: var(--fe-navy-deep);
	font-size: 0.71875rem;
	font-weight: 700;
}

.fe-dish-tag::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fe-lime);
	content: "";
}

.fe-dish-tag-2::before {
	background: var(--fe-amber);
}

.fe-dish-tag-3::before {
	background: var(--fe-coral);
}

.fe-dish-heat {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--fe-bg);
	color: #d9482b;
	font-size: 0.8125rem;
}

.fe-dish h3 {
	min-height: 2.6em;
	margin: 14px 0 10px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
}

/* Four figures under a ruled line — the food-label motif again. */
.fe-dish-macros {
	display: grid;
	grid-template-columns: repeat(4, auto);
	justify-content: space-between;
	margin: 0;
	padding-top: 10px;
	border-top: 1.5px solid var(--fe-navy);
}

.fe-dish-macros dt {
	color: var(--fe-ink-soft);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fe-dish-macros dd {
	margin: 2px 0 0;
	font-size: 0.9375rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.fe-dish-macros small {
	margin-left: 1px;
	font-size: 0.75em;
	font-weight: 700;
}

.fe-menu-note {
	margin: 6px 0 0;
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
}

@media (max-width: 575.98px) {
	.fe-dish {
		flex-basis: 232px;
	}
}

/* ---- How it works — as in the brand's post: three dots, the question,
   three steps, one of the three colours each. ---- */

.fe-dots {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.fe-dots i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--fe-lime);
}

.fe-dots i:nth-child(2) {
	background: var(--fe-amber);
}

.fe-dots i:nth-child(3) {
	background: var(--fe-coral);
}

.fe-how-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fe-how-steps > li {
	padding-top: 26px;
	border-top: 1.5px solid var(--fe-navy);
}

.fe-how-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
}

.fe-how-steps > li:nth-child(2) .fe-how-num {
	background: var(--fe-amber);
}

.fe-how-steps > li:nth-child(3) .fe-how-num {
	background: var(--fe-coral);
}

.fe-how-steps h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 800;
}

.fe-how-steps p {
	margin: 0;
	color: var(--fe-ink-soft);
	font-size: 0.9375rem;
}

/* ---- The close — the brand's dark post: navy, the bowl mark cropped in
   the corner, a statement whose full stops are green, then the next
   delivery on a green panel. ---- */

.fe-close {
	position: relative;
	overflow: hidden;
	padding: 112px 0 88px;
	background: var(--fe-navy);
	color: var(--fe-bg);
}

/* On navy the mark's own navy shapes read as cut-outs, as in the post. */
.fe-close-mark {
	position: absolute;
	top: -84px;
	right: -70px;
	width: 380px;
	pointer-events: none;
}

.fe-close-mark .fe-brand-mark {
	display: block;
	width: 100%;
	height: auto;
}

.fe-close .fe-wrap {
	position: relative;
}

.fe-close-kicker {
	margin: 0 0 14px;
	color: rgba(246, 245, 240, 0.72);
	font-size: 1.0625rem;
}

.fe-close-title {
	margin: 0;
	color: var(--fe-bg);
	font-size: clamp(2.5rem, 6.4vw, 4.75rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.02;
}

/* The brand's green full stop. On dark backgrounds only. */
.fe-stop {
	color: var(--fe-lime);
}

.fe-next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 64px;
	padding: 34px 40px;
	border-radius: 28px;
	background: var(--fe-lime);
	color: var(--fe-navy-deep);
}

.fe-next-kicker {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	opacity: 0.7;
	text-transform: uppercase;
}

.fe-next-title {
	margin: 6px 0;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.fe-next-sub {
	font-size: 0.9375rem;
	font-weight: 600;
}

@media (max-width: 767.98px) {
	.fe-how-steps {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.fe-close {
		padding: 150px 0 64px;
	}

	.fe-close-mark {
		top: -70px;
		right: -60px;
		width: 240px;
	}

	.fe-next {
		margin-top: 44px;
		padding: 26px 24px;
	}
}

/* ---- .fe-rise — a block eases up into place as it scrolls into view.
   Scroll-driven CSS: no script, and where the browser has no support
   (or the visitor prefers less motion) the block is simply there. ---- */

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.fe-rise {
			animation: fe-rise linear both;
			animation-range: entry 0% entry 45%;
			animation-timeline: view();
		}
	}
}

@keyframes fe-rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---- Cards (plans, meals, builder and portal panels) ---- */

.fe-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--fe-border);
	border-radius: var(--fe-radius-card);
	background: var(--fe-surface);
	box-shadow: var(--fe-shadow);
}

.fe-card-pad {
	padding: 24px;
}

.fe-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.fe-card-body h3 {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
}

.fe-card-body p {
	flex: 1;
	margin: 0;
	color: var(--fe-ink-soft);
	font-size: 0.84375rem;
}

.fe-card-heading {
	margin: 0 0 14px;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0;
}

.fe-photo-rounded {
	border-radius: 12px;
}

.fe-note {
	margin: 10px 0 0;
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
}

/* ---- Focused pages: plan builder, checkout, payment, welcome ----
   No site navigation — a back button, the brand, and the task
   (HeaderPlain / FooterPlain), as in the mock's builder. */

.fe-plainbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid var(--fe-border);
	background: var(--fe-bg);
}

.fe-plainbar .fe-brand {
	justify-self: center;
}

.fe-plainbar-back {
	justify-self: start;
	padding: 8px 16px;
	border: 1.5px solid var(--fe-border);
	border-radius: 999px;
	color: var(--fe-ink);
	font-size: 0.84375rem;
	font-weight: 600;
	text-decoration: none;
}

.fe-plainbar-back:hover {
	border-color: var(--fe-navy);
	background: var(--fe-navy);
	color: #fff;
}

.fe-plain {
	max-width: 948px;             /* the mock's 900px column + gutters */
	margin: 0 auto;
	padding: 36px 24px 80px;
}

.fe-plain-head {
	margin-bottom: 32px;
}

.fe-plain-head h1 {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.3px;
}

.fe-plain-head p {
	margin: 0;
	color: var(--fe-ink-soft);
	font-size: 0.9375rem;
}

.fe-plain-title {
	margin: 0 0 8px;
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.2px;
}

/* A single centred column (payment, welcome questions). */
.fe-narrow {
	max-width: 560px;
	margin: 0 auto;
}

/* Two columns: the choices, and a sticky summary beside them. */
.fe-builder {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 30px;
	align-items: start;
}

.fe-builder-main > .fe-card,
.fe-builder-side > .fe-card {
	margin-bottom: 22px;
}

.fe-builder-side {
	position: sticky;
	top: 96px;
}

.fe-program-title {
	margin: 0 0 6px;
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: 0;
}

.fe-program-meta {
	margin: 0 0 12px;
	color: var(--bs-success-text-emphasis);
	font-size: 0.78125rem;
	font-weight: 700;
}

.fe-program-desc {
	margin: 0;
	color: var(--fe-ink-soft);
	font-size: 0.84375rem;
	line-height: 1.55;
}

/* "Sample menu" rows; a part the client switched off is struck through. */
.fe-sample-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 12px 0;
	border-bottom: 1px solid var(--fe-border);
	font-size: 0.875rem;
	font-weight: 600;
}

.fe-sample-row:last-child {
	border-bottom: 0;
}

.fe-sample-row.off {
	color: var(--fe-ink-soft);
	opacity: 0.4;
	text-decoration: line-through;
}

.fe-sample-meal {
	color: var(--fe-ink-soft);
	font-weight: 500;
	text-align: right;
}

@media (max-width: 767.98px) {
	.fe-plainbar {
		padding: 12px 16px;
	}

	.fe-plainbar .fe-brand-name {
		font-size: 1.75rem;
	}

	.fe-plainbar .fe-brand-mark {
		width: 30px;
		height: 30px;
	}

	.fe-plain {
		padding: 24px 16px 56px;
	}

	.fe-plain-head h1 {
		font-size: 1.5rem;
	}

	.fe-builder {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.fe-builder-side {
		position: static;
	}

	.fe-card-pad {
		padding: 20px;
	}
}

/* Welcome questionnaire progress — a native <progress>, so its width
   needs no inline style. */
.fe-progress {
	display: block;
	width: 100%;
	height: 8px;
	margin-bottom: 22px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--bs-secondary-bg);
	appearance: none;
}

.fe-progress::-webkit-progress-bar {
	background: var(--bs-secondary-bg);
}

.fe-progress::-webkit-progress-value {
	border-radius: 999px;
	background: var(--fe-lime);
}

.fe-progress::-moz-progress-bar {
	border-radius: 999px;
	background: var(--fe-lime);
}

.fe-step-count {
	margin: 0 0 6px;
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
	font-weight: 700;
	text-transform: uppercase;
}

/* Address picker / delivery map (script.js [data-map], Leaflet). */
.fe-map {
	width: 100%;
	height: 340px;
	border: 1px solid var(--fe-border);
	border-radius: 12px;
	background: var(--fe-hero-bg);
	z-index: 0;                   /* keep Leaflet's panes under the sticky bars */
}

.fe-map-tall {
	height: 460px;
}

/* ---- Member portal ---- */

.fe-portal {
	padding: 36px 0 80px;
}

.fe-portal-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.fe-portal-name {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

.fe-portal-meta {
	color: var(--fe-ink-soft);
	font-size: 0.84375rem;
}

/* Tabs scroll sideways on a phone rather than wrapping into a pile. */
.fe-portal-tabs {
	flex-wrap: nowrap;
	gap: 1.5rem;
	margin-bottom: 28px;
	overflow-x: auto;
	border-bottom: 1px solid var(--fe-border);
	white-space: nowrap;
}

.fe-portal-tabs .nav-link {
	padding: 0.625rem 0;
	color: var(--fe-ink-soft);
	font-size: 0.90625rem;
	font-weight: 600;
}

.fe-portal-tabs .nav-link.active,
.fe-portal-tabs .nav-link:hover {
	border-bottom-color: var(--fe-navy);
	color: var(--fe-navy-deep);
}

.fe-balance {
	margin-bottom: 10px;
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.fe-amount-in {
	color: var(--bs-success-text-emphasis);
}

.fe-code {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

/* One delivery day on the overview: the date, then what is in the bag. */
.fe-delivery {
	padding: 12px 0;
	border-bottom: 1px solid var(--fe-border);
}

.fe-delivery:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.fe-delivery-day {
	margin-bottom: 4px;
	font-size: 0.875rem;
	font-weight: 700;
}

.fe-delivery-meals {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.84375rem;
}

/* Part label in a fixed column, so a long meal name wraps beside it, not under it. */
.fe-delivery-meals > li {
	display: flex;
	gap: 0.5rem;
}

.fe-delivery-part {
	flex: 0 0 5.5rem;
	color: var(--fe-ink-soft);
	font-weight: 600;
}

/* Weekly meal choice: one block per meal part of a day. */
.fe-slot + .fe-slot {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--fe-border);
}

.fe-slot-title {
	margin: 0 0 12px;
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fe-slot-fixed {
	font-size: 0.9375rem;
	font-weight: 600;
}

/* The save button stays in reach under a long list of days. */
.fe-savebar {
	position: sticky;
	bottom: 16px;
	z-index: 5;
	display: flex;
	justify-content: center;
}

.fe-savebar .btn {
	box-shadow: var(--fe-shadow);
}

.fe-address {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--fe-border);
}

.fe-address:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

@media (max-width: 767.98px) {
	.fe-portal {
		padding: 24px 0 56px;
	}
}

/* ---- Invoice document (portal, staff side, print page) ---- */

.fe-invoice {
	font-size: 0.875rem;
}

.fe-invoice-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.fe-invoice-meta {
	text-align: right;
}

.fe-invoice-title {
	color: var(--fe-ink-soft);
	font-size: 0.78125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fe-invoice-number {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.fe-invoice-to {
	margin-bottom: 24px;
}

.fe-invoice-label {
	margin-bottom: 2px;
	color: var(--fe-ink-soft);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.fe-invoice-totals {
	max-width: 320px;
	margin-left: auto;
}

/* The bare print page: white paper, no shadows. */
.fe-print-page {
	padding: 24px;
	background: #fff;
}

/* ---- Footer ---- */

.fe-footer {
	padding: 50px 0 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--fe-navy);
	color: rgba(255, 255, 255, 0.75);
}

.fe-footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.fe-footer .fe-brand {
	gap: 10px;
	color: #f6f5f0;
}

.fe-footer .fe-brand-name {
	font-size: 1.125rem;
}

.fe-footer .fe-brand-mark {
	width: 30px;
	height: 30px;
}

.fe-footer-tag {
	margin-top: 6px;
	color: var(--fe-lime);
	font-size: 0.84375rem;
}

.fe-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
}

.fe-footer-col h4 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0;
}

.fe-footer-col a,
.fe-footer-col p {
	display: block;
	margin: 0 0 6px;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.84375rem;
	text-decoration: none;
}

.fe-footer-col a:hover {
	color: #fff;
}

.fe-footer-bottom {
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.78125rem;
}


/* =================================================================
   11. Utilities + vendored-library tweaks.
   ================================================================= */

/* Fixed-width filter inputs in list toolbars. */
.w-input-sm {
	width: var(--input-width-sm);
}

.w-input-md {
	width: var(--input-width-md);
}

/* Compact filter dropdowns: shrink-to-content selects. */
.form-select-auto {
	width: auto;
}

/* Narrow table columns (row number, actions) without inline width="". */
.col-shrink {
	width: 1%;
	white-space: nowrap;
}

/* Row numbers without a counter variable in the view: put .fe-numbered
   on the <tbody> and an empty .fe-numbered-cell in each row. */
.fe-numbered {
	counter-reset: fe-row;
}

.fe-numbered-cell::before {
	content: counter(fe-row);
	counter-increment: fe-row;
}

/* SortableJS drop placeholder (script.js [data-sortable]). */
.planner-sort-placeholder {
	min-height: 36px;
	border: 1px dashed var(--bs-border-color);
	background-color: var(--bs-tertiary-bg);
}

/* FullCalendar (when vendored — see script.js [data-calendar]). */
.fc-daygrid-day-frame {
	padding: 0.5rem;
}

.fc-daygrid-day-number,
.fc-col-header-cell-cushion,
.fc-theme-standard a {
	color: var(--bs-body-color);
}

.fc-daygrid-day-number {
	font-weight: 600;
}

.fc-daygrid-event {
	margin-bottom: 0.25rem;
	border: none;
	color: var(--bs-body-color);
}

.fc-col-header-cell {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
	background-color: var(--bs-tertiary-bg);
	font-size: 1rem !important;
	font-weight: 600 !important;
}

.fc-list-day-text {
	margin-right: 0.5rem;
	font-weight: 600;
}


/* =================================================================
   12. Print — drop the chrome, keep the content.
   ================================================================= */

@media print {
	.fe-sidebar,
	.fe-topbar,
	.fe-shell-footer,
	.fe-navbar,
	.fe-footer,
	.fe-plainbar,
	.fe-portal-head,
	.fe-portal-tabs,
	.fe-savebar,
	#zo-toast {
		display: none !important;
	}

	.fe-content {
		max-width: none;
		padding: 0;
	}

	.card {
		box-shadow: none;
	}
}
