/* ============================================================
   Soil2Bloom – Main Stylesheet
   Aesthetic: Organic editorial — warm earthy tones, botanical
   Typography: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ---- Variables ---- */
:root {
  --soil:       #3d2b1f;
  --bark:       #6b4c3b;
  --clay:       #c2855a;
  --sand:       #e8d5b0;
  --sage:       #7a9e7e;
  --leaf:       #4a7c59;
  --moss:       #2d5a3d;
  --bloom:      #c2729e;
  --sky:        #b8d4e8;
  --cream:      #faf6f0;
  --white:      #ffffff;
  --text:       #2c1f15;
  --muted:      #7a6a5a;
  --border:     #e0d0bc;
  --shadow:     0 4px 24px rgba(61,43,31,.10);
  --shadow-lg:  0 8px 48px rgba(61,43,31,.16);
  --radius:     12px;
  --radius-sm:  6px;
  --transition: .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--leaf); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--moss); }

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--soil);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(61,43,31,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--soil);
  letter-spacing: -.02em;
}
.nav-brand .brand-leaf { font-size: 1.4rem; }
.nav-brand span span { color: var(--leaf); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--soil);
  font-size: .92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--sand); color: var(--moss); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cart-btn {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--soil);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
  border: none; background: transparent;
}
.nav-cart-btn:hover { background: var(--sand); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  width: 17px; height: 17px;
  background: var(--bloom);
  color: var(--white);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--leaf); color: var(--white); }
.btn-primary:hover { background: var(--moss); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--sand); color: var(--soil); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--soil); }
.btn-bloom     { background: var(--bloom); color: var(--white); }
.btn-bloom:hover { background: #a85a87; color: var(--white); }
.btn-outline   { background: transparent; border: 1.5px solid var(--leaf); color: var(--leaf); }
.btn-outline:hover { background: var(--leaf); color: var(--white); }
.btn-sm        { padding: 7px 14px; font-size: .84rem; }
.btn-lg        { padding: 14px 32px; font-size: 1rem; }
.btn-full      { width: 100%; justify-content: center; }
.btn-danger    { background: #c0392b; color: var(--white); }
.btn-danger:hover { background: #962d22; color: var(--white); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--moss) 0%, var(--leaf) 50%, var(--sage) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-light {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn-hero-light:hover {
  background: rgba(255,255,255,.28);
  color: var(--white);
}
.btn-hero-white { background: var(--white); color: var(--moss); }
.btn-hero-white:hover { background: var(--cream); color: var(--moss); }

/* ---- Section ---- */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--sand);
  color: var(--bark);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 10px; }
.section-sub   { color: var(--muted); font-size: 1.05rem; }

/* ---- Article Card ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--leaf), var(--sage));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-free    { background: var(--leaf); color: var(--white); }
.badge-premium { background: var(--bloom); color: var(--white); }
.badge-locked  { background: rgba(0,0,0,.55); color: var(--white); }
.card-body     { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta     { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-cat      { font-size: .78rem; color: var(--leaf); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.card-dot      { color: var(--border); }
.card-time     { font-size: .78rem; color: var(--muted); }
.card-title    { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.3; }
.card-title a  { color: var(--soil); }
.card-title a:hover { color: var(--leaf); }
.card-excerpt  { color: var(--muted); font-size: .9rem; line-height: 1.6; flex: 1; }
.card-footer   {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.card-views    { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-read     { font-size: .84rem; font-weight: 500; color: var(--leaf); display: flex; align-items: center; gap: 4px; }
.card-read:hover { color: var(--moss); }

/* ---- Premium Banner ---- */
.premium-banner {
  background: linear-gradient(135deg, var(--bloom), #8b3a6e);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 32px 0;
}
.premium-banner h3 { color: var(--white); margin-bottom: 8px; }
.premium-banner p  { color: rgba(255,255,255,.85); margin-bottom: 24px; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(74,124,89,.12), var(--shadow);
}
.pricing-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--leaf); color: var(--white);
  padding: 4px 16px; border-radius: 99px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.pricing-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pricing-price { font-family: 'Cormorant Garamond', serif; margin-bottom: 4px; }
.pricing-price .amount { font-size: 3.5rem; font-weight: 700; color: var(--soil); }
.pricing-price .period { color: var(--muted); font-size: 1rem; }
.pricing-note  { color: var(--muted); font-size: .84rem; margin-bottom: 24px; min-height: 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--leaf); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.pricing-features .cross { color: #ccc; flex-shrink: 0; margin-top: 2px; }

/* ---- Forms ---- */
.form-group   { margin-bottom: 20px; }
.form-label   { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(74,124,89,.15); }
.form-control.error { border-color: #e74c3c; }
.form-hint    { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.form-error   { color: #e74c3c; font-size: .82rem; margin-top: 4px; }
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='%237a6a5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---- Auth Card ---- */
.auth-wrap  { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card  { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 44px 40px; width: 100%; max-width: 440px; }
.auth-logo  { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--soil); }
.auth-logo a span { color: var(--leaf); }
.auth-title { text-align: center; margin-bottom: 28px; }
.auth-title h2 { margin-bottom: 4px; }
.auth-title p  { color: var(--muted); font-size: .9rem; }
.auth-link  { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.auth-divider { text-align: center; color: var(--border); margin: 16px 0; position: relative; }
.auth-divider::before { content:''; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--border); }
.auth-divider span { background: var(--white); padding: 0 12px; position: relative; font-size: .82rem; color: var(--muted); }

/* ---- Flash messages ---- */
.flash {
  padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ---- Admin Panel ---- */
.admin-wrap  { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--soil);
  color: var(--white);
  padding: 24px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 0 20px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.admin-sidebar-logo span { color: var(--sage); }
.admin-nav { list-style: none; flex: 1; }
.admin-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-left-color: var(--sage);
}
.admin-nav .nav-section {
  padding: 16px 20px 6px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
}
.admin-main { flex: 1; padding: 32px 36px; background: #f8f5f0; overflow-x: hidden; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stat-icon  { font-size: 2rem; margin-bottom: 8px; }
.stat-val   { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--soil); line-height: 1; margin-bottom: 4px; }
.stat-label { color: var(--muted); font-size: .84rem; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 1.1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--cream); padding: 12px 16px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.status-badge { padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.status-free    { background: #e8f5e9; color: #2e7d32; }
.status-premium { background: #fce4ec; color: #880e4f; }
.status-published { background: #e3f2fd; color: #0d47a1; }
.status-draft   { background: #fff8e1; color: #e65100; }

/* ---- User Dashboard ---- */
.user-dash { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; align-items: start; }
.user-sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.user-profile { padding: 28px; text-align: center; background: linear-gradient(135deg, var(--leaf), var(--sage)); color: var(--white); }
.user-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); margin: 0 auto 12px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.user-name   { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; }
.user-plan   { font-size: .82rem; opacity: .85; }
.user-nav { list-style: none; padding: 12px 0; }
.user-nav li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text); font-size: .9rem; transition: all var(--transition); border-left: 3px solid transparent; }
.user-nav li a:hover, .user-nav li a.active { background: var(--cream); color: var(--leaf); border-left-color: var(--leaf); }
.user-main { flex: 1; }
.dash-card  { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.dash-card-title { font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ---- Article page ---- */
.article-wrap { padding: 48px 0; }
.article-hero  { background: linear-gradient(135deg, var(--soil), var(--bark)); color: var(--white); padding: 56px 0; margin-bottom: 0; }
.article-hero h1 { color: var(--white); margin-bottom: 16px; max-width: 800px; }
.article-meta  { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-meta span { font-size: .88rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; }
.article-content { max-width: 780px; margin: 48px auto; padding: 0 24px; }
.article-content h2 { margin: 2rem 0 1rem; }
.article-content h3 { margin: 1.5rem 0 .8rem; }
.article-content p  { margin-bottom: 1.2rem; color: var(--text); }
.article-content ul, .article-content ol { margin: 1rem 0 1.2rem 1.5rem; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote { border-left: 4px solid var(--leaf); padding: 12px 20px; margin: 1.5rem 0; background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--muted); }
.paywall-blur { position: relative; overflow: hidden; max-height: 300px; }
.paywall-blur::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--white) 70%); pointer-events: none; }
.paywall-cta { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 36px; text-align: center; margin: 32px auto; max-width: 560px; }
.paywall-cta h3 { margin-bottom: 8px; }
.paywall-cta p  { color: var(--muted); margin-bottom: 24px; }
.paywall-price-hint { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.price-hint-item { background: var(--cream); padding: 8px 16px; border-radius: var(--radius-sm); font-size: .9rem; }
.price-hint-item strong { color: var(--leaf); }

/* ---- Cart page ---- */
.cart-wrap { max-width: 860px; margin: 48px auto; padding: 0 24px; }
.cart-items { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-item { padding: 24px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-icon { font-size: 2.5rem; }
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.cart-item-desc  { color: var(--muted); font-size: .88rem; }
.cart-item-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--soil); }
.cart-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.cart-summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1.1rem; padding-top: 14px; }

/* ---- Footer ---- */
.footer {
  background: #1e3a2a;
  color: rgba(255,255,255,.88);
  padding: 56px 0 28px;
  margin-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-brand span { color: #8ec99a; }
.footer-tagline { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: 20px; }
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: rgba(255,255,255,.8); font-size: .9rem; transition: color var(--transition); }
.footer ul li a:hover { color: #8ec99a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .84rem; color: rgba(255,255,255,.65); }

/* ---- Category Pills ---- */
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill { padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--border); font-size: .84rem; color: var(--text); transition: all var(--transition); cursor: pointer; text-decoration: none; }
.cat-pill:hover, .cat-pill.active { border-color: var(--leaf); background: var(--leaf); color: var(--white); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .user-dash { grid-template-columns: 1fr; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up-1 { animation-delay: .1s; opacity: 0; }
.fade-up-2 { animation-delay: .2s; opacity: 0; }
.fade-up-3 { animation-delay: .3s; opacity: 0; }

/* ---- Misc ---- */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.flex   { display: flex; }
.gap-2  { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.tag { display: inline-block; background: var(--sand); color: var(--bark); padding: 2px 10px; border-radius: 4px; font-size: .76rem; }
.empty-state { text-align: center; padding: 56px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9rem;
  border: 1.5px solid var(--border); color: var(--text); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--leaf); color: var(--leaf); }
.pagination .current { background: var(--leaf); color: var(--white); border-color: var(--leaf); }
.subscription-active { background: linear-gradient(135deg, var(--leaf), var(--sage)); color: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; }
.subscription-active h4 { color: var(--white); margin-bottom: 4px; }
.subscription-active p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }

/* ============================================================
   v2 Additions — Dark mode, search, progress, share, TOC, 2FA
   ============================================================ */

/* ── Dark Mode ──────────────────────────────────────────────── */
[data-theme="dark"] {
  --soil:   #e8d5b0;
  --bark:   #c9a87a;
  --clay:   #e8a070;
  --sand:   #2a2218;
  --sage:   #7aad7e;
  --leaf:   #6aac79;
  --moss:   #4d8c5e;
  --bloom:  #d480b0;
  --cream:  #1a1610;
  --white:  #232016;
  --text:   #e8d8c0;
  --muted:  #9a8a72;
  --border: #3a3020;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.55);
}
[data-theme="dark"] body       { background: #141210; color: #e8d8c0; }
[data-theme="dark"] .nav       { background: #1e1a14; border-color: #3a3020; }
[data-theme="dark"] .admin-sidebar { background: #0e0c08; }
[data-theme="dark"] .auth-card { background: #232016; }
[data-theme="dark"] .form-control { background: #2a2218; color: #e8d8c0; border-color: #3a3020; }
[data-theme="dark"] .form-control:focus { border-color: var(--leaf); }
[data-theme="dark"] select.form-control { 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='%239a8a72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Dark Mode Toggle Button */
#darkToggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  color: var(--text);
}
#darkToggle:hover { background: var(--sand); }

/* ── Reading Progress Bar ───────────────────────────────────── */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--bloom));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Search Autocomplete ────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input-row:focus-within {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(74,124,89,.15);
}
#searchInput {
  border: none;
  background: transparent;
  padding: 9px 14px;
  font-size: .92rem;
  outline: none;
  flex: 1;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-width: 0;
}
#searchInput::placeholder { color: var(--muted); }
.search-submit {
  padding: 8px 14px;
  background: var(--leaf);
  border: none;
  cursor: pointer;
  color: white;
  font-size: .9rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-submit:hover { background: var(--moss); }

#searchDropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sd-section {
  padding: 8px 14px 4px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--border);
}
.sd-section:first-child { border-top: none; }
.sd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
  cursor: pointer;
}
.sd-item:hover, .sd-item:focus { background: var(--cream); outline: none; }
.sd-icon { font-size: 1.2rem; flex-shrink: 0; }
.sd-label { flex: 1; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-label mark { background: rgba(74,124,89,.2); color: var(--leaf); border-radius: 2px; }
.sd-meta { font-size: .75rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.sd-badge { padding: 1px 6px; border-radius: 99px; font-size: .68rem; font-weight: 700; margin-left: 4px; }
.sd-free    { background: #e8f5e9; color: #2e7d32; }
.sd-premium { background: #fce4ec; color: #880e4f; }
.sd-lock { font-size: .8rem; }
.sd-locked .sd-label { opacity: .65; }
.sd-cat { background: var(--cream); }
.sd-viewall {
  display: block;
  padding: 10px 14px;
  font-size: .84rem;
  color: var(--leaf);
  border-top: 1px solid var(--border);
  text-decoration: none;
  text-align: center;
}
.sd-viewall:hover { background: var(--cream); }
.sd-loading, .sd-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ── Social Share Bar ───────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin: 28px 0;
}
.share-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.share-fb       { background: #1877f2; color: white; }
.share-fb:hover { background: #1464d8; color: white; }
.share-tw       { background: #000; color: white; }
.share-tw:hover { background: #222; color: white; }
.share-pin      { background: #e60023; color: white; }
.share-pin:hover{ background: #c0001e; color: white; }
.share-wa       { background: #25d366; color: white; }
.share-wa:hover { background: #1db954; color: white; }
.share-copy     { background: var(--white); border: 1.5px solid var(--border); color: var(--text); }
.share-copy:hover { background: var(--sand); }

/* ── Table of Contents ──────────────────────────────────────── */
#articleTOC {
  display: none; /* shown by JS only when populated */
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--leaf);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 28px;
}
#articleTOC.toc-ready {
  display: block;
}
#articleTOC::before {
  content: '📋 In this article';
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 5px; }
.toc-list li a {
  font-size: .88rem;
  color: var(--soil);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 2px 0;
}
.toc-list li a:hover, .toc-list li a.toc-active { color: var(--leaf); }
.toc-list li.toc-sub a { padding-left: 14px; color: var(--muted); font-size: .83rem; }
.toc-list li.toc-sub a:hover, .toc-list li.toc-sub a.toc-active { color: var(--leaf); }

/* ── 2FA Code Input ─────────────────────────────────────────── */
.totp-input {
  font-size: 2rem !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  font-family: monospace !important;
}

/* ── SEO Meta Info ──────────────────────────────────────────── */
.og-preview {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}
.og-preview-img { width: 100%; height: 140px; background: linear-gradient(135deg,var(--leaf),var(--sage)); display:flex;align-items:center;justify-content:center;font-size:3rem; }
.og-preview-body { padding: 12px; background: var(--cream); }
.og-preview-domain { font-size:.72rem; color:var(--muted); text-transform:uppercase; margin-bottom:4px; }
.og-preview-title { font-size:.9rem; font-weight:600; color:var(--soil); margin-bottom:2px; }
.og-preview-desc { font-size:.8rem; color:var(--muted); }

/* ── Rate limit warning ─────────────────────────────────────── */
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ── Series card in article ─────────────────────────────────── */
.series-card {
  background: linear-gradient(135deg, var(--sand), var(--cream));
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--soil);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.series-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.series-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: var(--soil); margin-bottom: 6px; }
.series-nav { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ── Stripe badge ────────────────────────────────────────────── */
.stripe-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #635bff; color: white;
  padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 600;
}

/* ── Affiliate links ──────────────────────────────────── */
.affiliate-link { color: var(--leaf); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.affiliate-link:hover { color: var(--moss); }
.affiliate-badge { font-size: .65em; vertical-align: super; color: var(--muted); margin-left: 1px; }

/* ── Sponsored disclosure banner ─────────────────────── */
.sponsored-disclosure { background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .82rem; color: #5d4037; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }

/* ── Internal links (auto-linked plant names, glossary terms) ── */
.internal-plant-link {
  color: var(--leaf);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.internal-plant-link:hover { color: var(--moss); text-decoration-style: solid; }

.internal-glossary-link {
  color: var(--bark);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  border-bottom: none;
}
.internal-glossary-link:hover { color: var(--soil); }

/* ── State locality pages ─────────────────────────────────────── */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }

/* ── Featured snippet answer box (direct answer at top of article) ─ */
.direct-answer {
  background: linear-gradient(135deg, var(--cream), #f5f0e4);
  border: 1px solid var(--border);
  border-left: 5px solid var(--leaf);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.7;
}
.direct-answer .da-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--leaf);
  font-weight: 700;
  margin-bottom: 6px;
}
.direct-answer strong { color: var(--soil); }

/* ── SEO breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--leaf); }
.breadcrumb .sep { color: var(--border); }

/* ── Mobile slide-out nav drawer ──────────────────────────────── */
.nav-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100%;
  background: #1e3a2a;
  z-index: 999;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-drawer.open { right: 0; }
.nav-drawer-overlay.open { display: block; }
.nav-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-drawer-logo { font-family: 'Cormorant Garamond',serif; font-size: 1.4rem; font-weight: 700; color: white; text-decoration: none; }
.nav-drawer-logo span { color: #8bc99a; }
.nav-drawer-close { background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }
.nav-drawer-links { padding: 16px 0; flex: 1; }
.nav-drawer-links a {
  display: block; padding: 12px 22px;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .95rem; border-left: 3px solid transparent;
  transition: all .15s;
}
.nav-drawer-links a:hover { background: rgba(255,255,255,.06); border-left-color: #8bc99a; color: white; }
.nav-drawer-links .drawer-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); padding: 14px 22px 4px; font-weight: 700; }
.nav-drawer-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.nav-drawer-footer .btn { width: 100%; text-align: center; margin-bottom: 8px; }

.hamburger-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: white; font-size: 1.4rem;
}

@media (max-width: 640px) {
  .hamburger-btn { display: flex; align-items: center; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions .nav-icon-btn { display: flex; }

  /* Mobile article reading */
  .article-content { padding: 20px 16px; }
  .article-content img { max-width: 100%; height: auto; }

  /* Mobile calendar */
  .calendar-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Mobile pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Mobile hero font */
  .hero-title { font-size: 2rem !important; }

  /* Mobile dashboard */
  .dash-grid { grid-template-columns: 1fr !important; }
}

/* ── Article reading experience ────────────────────────────────── */
/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--leaf), var(--bloom));
  width: 0%;
  z-index: 1000;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* Floating table of contents */
.article-toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: .86rem;
}
.article-toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--soil);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.article-toc summary::after { content: '▾'; font-size: .8rem; color: var(--muted); transition: transform .2s; }
.article-toc[open] summary::after { transform: rotate(180deg); }
.article-toc ol { margin: 10px 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.article-toc ol li { color: var(--muted); }
.article-toc ol a { color: var(--leaf); text-decoration: none; }
.article-toc ol a:hover { text-decoration: underline; }

/* Pull quotes */
.article-content blockquote {
  border-left: 4px solid var(--leaf);
  padding: 14px 18px;
  margin: 24px 0;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--soil);
}

/* Better code blocks */
.article-content code {
  background: #f1f0e8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: .85em;
  color: #c7522a;
}
.article-content pre {
  background: #1e3a2a;
  color: #e0f0e0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}
.article-content pre code { background: none; color: inherit; padding: 0; }

/* Article image captions */
.article-content figure { margin: 24px 0; }
.article-content figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 6px; font-style: italic; }

/* Better article headings */
.article-content h2 { border-bottom: 2px solid var(--cream); padding-bottom: 8px; margin-top: 36px; }
.article-content h3 { margin-top: 28px; }

/* ── Homepage redesign additions ───────────────────────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: 5px 14px; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 16px;
}
.hero-stats {
  display: flex; gap: 28px; justify-content: center;
  margin-top: 28px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: white; line-height: 1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ── Video embeds ─────────────────────────────────────────────── */
.video-embed {
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: transform .2s;
}
.video-embed:hover { transform: scale(1.005); }

/* ── Recipe card widget ───────────────────────────────────────── */
.recipe-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.recipe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.recipe-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.recipe-meta-item { display: flex; flex-direction: column; align-items: center; }
.recipe-meta-value { font-weight: 700; font-size: 1.1rem; color: var(--soil); }
.recipe-meta-label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.recipe-servings-control { display: flex; align-items: center; gap: 8px; }
.recipe-servings-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--leaf); background: none; color: var(--leaf);
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-weight: 700; line-height: 1;
}
.recipe-servings-btn:hover { background: var(--leaf); color: white; }
.recipe-servings-num { font-size: 1.1rem; font-weight: 700; min-width: 28px; text-align: center; }
.recipe-ingredients { margin: 0 0 20px; padding: 0; list-style: none; }
.recipe-ingredients li {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid #f5f5f5; font-size: .9rem; align-items: baseline;
}
.recipe-ingredients li:last-child { border: none; }
.recipe-ingredient-amount { font-weight: 700; color: var(--leaf); min-width: 70px; flex-shrink: 0; }
.recipe-steps { counter-reset: step; }
.recipe-step {
  display: flex; gap: 14px; margin-bottom: 16px;
  padding: 14px; background: var(--cream); border-radius: var(--radius-sm);
}
.recipe-step-num {
  counter-increment: step;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--leaf); color: white; font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.recipe-step-text { font-size: .9rem; line-height: 1.65; }
.recipe-print-btn { display: inline-flex; align-items: center; gap: 6px; }
@media print {
  .nav, footer, .recipe-print-btn, .recipe-servings-control { display: none !important; }
  .recipe-card { box-shadow: none; border: 1px solid #ccc; }
}
