:root {
  --green:        #79c843;
  --green-dark:   #5fa832;
  --green-light:  #95d460;
  --green-pale:   #eef7e6;
  --white:        #ffffff;
  --beige:        #f5f0e8;
  --beige-dark:   #e8dfc8;
  --brown:        #4a3728;
  --brown-mid:    #7a5c3c;
  --brown-light:  #c8a87a;
  --cream:        #faf7f2;
  --text:         #2c2416;
  --text-mid:     #5c4f3d;
  --text-light:   #9a8c7a;
  --gray:         #e8e4dc;
  --gray-light:   #f2efe8;
  --red:          #c0392b;
  --red-light:    #fdf0ee;

  --font-serif:   'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans:    'Open Sans', 'Segoe UI', Arial, sans-serif;

  --shadow-xs:    0 1px 2px rgba(74,55,40,0.06);
  --shadow-sm:    0 2px 6px rgba(74,55,40,0.10);
  --shadow-md:    0 4px 16px rgba(74,55,40,0.13);
  --shadow-lg:    0 8px 32px rgba(74,55,40,0.16);

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --transition:   0.2s ease;
  --max-w:        1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--brown);
  line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── TOPBAR / HEADER ───────────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
}

.logo:hover { color: var(--green-dark); }

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--green-dark);
  background: var(--green-pale);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
}

.lang-switch a {
  padding: 0.2rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-pale);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--brown);
}

/* ─── HERO ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/public/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  max-width: 640px;
  padding: 4rem 1.25rem;
  margin: 0 auto 0 0;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(121,200,67,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--gray);
}

.btn-ghost:hover {
  background: var(--gray-light);
  color: var(--brown);
  border-color: var(--beige-dark);
}

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-danger:hover {
  background: #a93226;
  border-color: #a93226;
  color: var(--white);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

/* ─── BADGES ────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-premium {
  background: linear-gradient(135deg, #c8a87a, #e0c090);
  color: var(--brown);
}

.badge-free {
  background: var(--green-pale);
  color: var(--green-dark);
}

.badge-draft {
  background: var(--gray);
  color: var(--text-mid);
}

.badge-published {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* ─── SECTION ───────────────────────────────────────────────────── */

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 0.4rem;
  color: var(--brown);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 0.6rem 0 1rem;
}

/* ─── RECIPE CARDS ──────────────────────────────────────────────── */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.recipe-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--beige);
}

.recipe-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card__img img {
  transform: scale(1.04);
}

.recipe-card__badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.recipe-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}

.recipe-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  flex: 1;
}

.recipe-card__title a {
  color: inherit;
}

.recipe-card__title a:hover {
  color: var(--green-dark);
}

.recipe-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ─── FEATURED STRIP ────────────────────────────────────────────── */

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

.featured-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-main__overlay {
  position: relative;
  background: linear-gradient(to top, rgba(74,55,40,0.9) 0%, transparent 100%);
  padding: 2rem;
  width: 100%;
  color: var(--white);
}

.featured-main__overlay h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-side-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.featured-side-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-side-card__overlay {
  position: relative;
  background: linear-gradient(to top, rgba(74,55,40,0.85) 0%, transparent 100%);
  padding: 0.75rem 1rem;
  width: 100%;
  color: var(--white);
}

.featured-side-card__overlay h4 {
  color: var(--white);
  font-size: 0.9rem;
}

/* ─── CATEGORIES BAR ────────────────────────────────────────────── */

.categories-section {
  background: var(--beige);
  padding: 2.5rem 0;
  border-top: 1px solid var(--beige-dark);
  border-bottom: 1px solid var(--beige-dark);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  color: var(--text-mid);
  text-align: center;
  text-decoration: none;
}

.cat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--green-dark);
  background: var(--green-pale);
}

.cat-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cat-item:hover .cat-icon {
  background: var(--green);
}

.cat-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.cat-count {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ─── SEARCH / FILTER ───────────────────────────────────────────── */

.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  box-shadow: var(--shadow-xs);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(121,200,67,0.18);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a8c7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* ─── RECIPE SHOW PAGE ──────────────────────────────────────────── */

.recipe-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--beige);
}

.recipe-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,55,40,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
}

.recipe-hero-content {
  padding: 2rem;
  color: var(--white);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.recipe-hero-content h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.recipe-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.recipe-ingredients {
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.recipe-ingredients h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--beige-dark);
}

.recipe-ingredients ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.recipe-steps ol {
  counter-reset: step;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-steps ol li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
}

.recipe-steps ol li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.25rem 0.65rem;
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-mid);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
}

/* ─── PREMIUM WALL ──────────────────────────────────────────────── */

.premium-wall {
  background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
  border: 2px solid var(--brown-light);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.premium-wall h2 {
  margin-bottom: 0.75rem;
  color: var(--brown);
}

.premium-wall p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

/* ─── FORMS ─────────────────────────────────────────────────────── */

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.35rem;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── ALERTS ────────────────────────────────────────────────────── */

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.alert-success {
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid rgba(121,200,67,0.35);
}

.alert-error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(192,57,43,0.25);
}

.alert-info {
  background: #eef4fb;
  color: #2c5f8a;
  border: 1px solid rgba(44,95,138,0.25);
}

/* ─── SUBSCRIPTION PAGE ─────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(121,200,67,0.12);
}

.pricing-card__label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 0.2rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card__price {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brown);
  margin: 1rem 0 0.25rem;
  font-weight: 700;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── USER PROFILE ──────────────────────────────────────────────── */

.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.profile-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.profile-nav a:hover,
.profile-nav a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.profile-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 2rem;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */

.site-footer {
  background: var(--brown);
  color: var(--beige);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.8);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--green);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.55);
}

.footer-bottom a {
  color: rgba(245,240,232,0.7);
}

.footer-bottom a:hover {
  color: var(--green-light);
}

/* ─── COOKIE BANNER ─────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--beige-dark);
  box-shadow: 0 -4px 20px rgba(74,55,40,0.15);
  z-index: 999;
  padding: 1rem 1.25rem;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ─── PAGINATION ────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.pagination a,
.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-mid);
  border: 1.5px solid var(--gray);
  transition: all var(--transition);
  background: var(--white);
}

.pagination a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.pagination__page--active {
  background: var(--green);
  color: var(--white) !important;
  border-color: var(--green);
}

/* ─── ADMIN LAYOUT ──────────────────────────────────────────────── */

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--brown);
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(245,240,232,0.75);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--white);
  background: rgba(121,200,67,0.15);
  border-left-color: var(--green);
}

.admin-main {
  background: var(--gray-light);
  padding: 2rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-page-title {
  font-size: 1.5rem;
  color: var(--brown);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  background: var(--beige);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--beige-dark);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--cream);
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ─── EMPTY STATE ───────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-side { flex-direction: row; }
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-ingredients { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 99;
    overflow-y: auto;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .filter-bar { flex-direction: column; }
  .recipe-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .recipe-hero { height: 260px; }
  .form-card { padding: 1.75rem 1.25rem; }
  .admin-main { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
}
