:root{
  --orange:#f47a18; --orange-dark:#dd6510; --ink:#202124; --muted:#6f7175; --line:#ececec;
  --cream:#fff8f1; --soft:#fff3e8; --white:#fff; --shadow:0 10px 30px rgba(30,30,30,.08);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;color:var(--ink);font-family:"DM Sans",Arial,sans-serif;background:#fff}
a{text-decoration:none;color:inherit} button,input{font:inherit} button{cursor:pointer}
.container{width:min(1180px,calc(100% - 48px));margin:auto}
.site-header{height:74px;background:#fff;border-bottom:1px solid #f0f0f0;position:sticky;top:0;z-index:100}
.nav-wrap{height:74px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:10px;min-width:220px}.brand-logo{width:54px;height:54px;object-fit:contain;border-radius:50%}.brand-text{display:block}
.brand strong{display:block;font-family:"Playfair Display",serif;font-size:20px;line-height:18px}.brand small{display:block;color:var(--orange);font-size:9px;letter-spacing:2.4px;font-weight:700;margin-top:4px}
.desktop-nav{display:flex;align-items:center;gap:31px;font-size:14px}.desktop-nav a{height:74px;display:flex;align-items:center;position:relative}.desktop-nav a.active,.desktop-nav a:hover{color:var(--orange)}.desktop-nav a.active:after{content:"";height:2px;background:var(--orange);left:0;right:0;bottom:0;position:absolute}
.nav-actions{display:flex;align-items:center;gap:13px}.mini-search-wrap{position:relative}.mini-search{height:40px;width:185px;background:#f7f7f7;border-radius:22px;display:flex;align-items:center;padding:0 13px}.mini-search input{border:0;background:transparent;outline:0;width:100%;font-size:12px}.mini-search span{font-size:20px;color:#777}
.heart-btn{border:0;background:transparent;font-size:25px;position:relative;line-height:1}.heart-btn b{position:absolute;top:-6px;right:-7px;background:var(--orange);color:#fff;border-radius:20px;font-size:9px;min-width:16px;height:16px;display:grid;place-items:center}.menu-btn{display:none;border:0;background:#f7f7f7;font-size:22px;width:42px;height:42px;border-radius:10px;align-items:center;justify-content:center;color:#202124}
.hero{height:462px;position:relative;overflow:hidden;background:#f8eee5}.hero-image{position:absolute;inset:0;background-image:url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1800&q=88");background-size:cover;background-position:center 52%}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,250,245,.98) 0%,rgba(255,250,245,.92) 34%,rgba(255,250,245,.30) 62%,rgba(255,250,245,.05) 100%)}
.hero-content{height:100%;display:flex;align-items:center;position:relative}.hero-copy{width:560px}.eyebrow{color:var(--orange);font-size:12px;letter-spacing:2px;font-weight:700;margin:0 0 10px}.hero h1{font-size:50px;line-height:1.08;letter-spacing:-1.7px;margin:0 0 18px;font-weight:700}.hero h1 span{color:var(--orange)}.hero-text{font-size:15px;line-height:1.7;color:#555;max-width:520px;margin:0 0 22px}
.hero-search-wrap{position:relative;max-width:470px}.hero-search{height:52px;width:100%;background:#fff;border:1px solid #eee;border-radius:28px;display:flex;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.07)}.hero-search input{border:0;outline:0;padding:0 19px;flex:1;min-width:0;font-size:13px}.hero-search button{border:0;background:var(--orange);color:#fff;padding:0 24px;font-weight:700}.hero-search button:hover,.primary-btn:hover{background:var(--orange-dark)}
.stats{display:flex;gap:34px;margin-top:28px}.stats div{display:flex;flex-direction:column;border-left:2px solid #f3b47e;padding-left:12px}.stats strong{font-size:20px}.stats span{font-size:11px;color:#777;margin-top:2px}
.categories{padding:38px 0 36px}.section-heading h2,.section-top h2{font-size:28px;margin:0;letter-spacing:-.7px}.centered{text-align:center}.category-row{display:grid;grid-template-columns:repeat(7,1fr);gap:18px;margin-top:25px}.category-card{border:0;background:#fff;display:flex;flex-direction:column;align-items:center;gap:10px;color:#303030}.cat-icon{width:82px;height:82px;border:1px solid #e9e9e9;border-radius:50%;display:grid;place-items:center;font-size:30px;background:#fafafa;box-shadow:inset 0 0 0 7px #fff,0 2px 9px rgba(0,0,0,.05)}.category-card.active .cat-icon,.category-card:hover .cat-icon{border-color:#ffc38e;box-shadow:inset 0 0 0 7px #fff,0 0 0 2px #fff2e6}.category-card b{font-size:13px;font-weight:600}
.recipes-section{padding:30px 0}.section-top{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-top .eyebrow{margin-bottom:7px}.outline-btn{background:#fff;border:1px solid #ddd;border-radius:20px;padding:9px 16px;font-size:12px}.outline-btn:hover{border-color:var(--orange);color:var(--orange)}.recipe-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.recipe-card{border:1px solid #ededed;border-radius:11px;overflow:hidden;background:#fff;transition:.22s;box-shadow:0 3px 10px rgba(0,0,0,.03)}.recipe-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.recipe-photo{height:192px;position:relative;background-size:cover;background-position:center}.time-pill{position:absolute;left:10px;bottom:10px;background:rgba(20,20,20,.72);color:#fff;border-radius:15px;padding:5px 9px;font-size:10px}.save{position:absolute;right:10px;top:10px;width:31px;height:31px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 9px rgba(0,0,0,.14);font-size:18px;color:#555}.save.saved{color:var(--orange)}.recipe-body{padding:14px 13px 15px}.recipe-body h3{font-size:16px;margin:0 0 8px}.stars{color:#f5b400;font-size:13px;letter-spacing:1px}.reviews{font-size:10px;color:#777;margin-left:5px}.recipe-footer{display:flex;justify-content:space-between;margin-top:10px;font-size:10px;color:#777}.protein{font-weight:700;color:#e96810}
.feature-banner{margin-top:35px;background:#fff4e9;border-radius:12px;min-height:170px;display:grid;grid-template-columns:33% 1fr 90px;overflow:hidden}.feature-photo{background:url("https://images.unsplash.com/photo-1556910103-1c02745aae4d?auto=format&fit=crop&w=800&q=85") center/cover}.feature-copy{padding:28px 36px}.feature-copy h2{font-size:26px;line-height:1.15;margin:0 0 8px}.feature-copy p:not(.eyebrow){font-size:13px;color:#666;line-height:1.55;max-width:570px;margin:0 0 14px}.primary-btn{display:inline-flex;align-items:center;gap:13px;background:var(--orange);color:#fff;border:0;border-radius:22px;padding:10px 17px;font-size:12px;font-weight:700}.feature-doodles{color:#efb98d;font-size:28px;display:grid;place-items:center;line-height:1.5}
.latest{padding-top:48px;padding-bottom:62px}.text-link{font-size:12px;font-weight:600}.text-link:hover{color:var(--orange)}
.why-section{background:#202020;color:#fff;padding:58px 0}.why-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:90px;align-items:center}.why-section h2{font-size:40px;line-height:1.15;margin:0}.why-section h2 span{color:#ff9b49}.why-section .eyebrow{color:#ff9b49}.why-points{display:grid;grid-template-columns:1fr 1fr;gap:24px}.why-points div{display:flex;gap:12px}.why-points div>span{width:28px;height:28px;border-radius:50%;background:#3a3a3a;color:#ff9b49;display:grid;place-items:center;font-weight:700}.why-points p{margin:0}.why-points b{display:block;font-size:14px}.why-points small{display:block;color:#aaa;font-size:11px;line-height:1.5;margin-top:4px}
footer{background:#171717;color:#aaa;padding:25px 0 17px}.footer-grid{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-brand strong{color:#fff}.footer-grid>p{font-size:12px;margin:0}.footer-links{display:flex;gap:20px;font-size:11px}.footer-links a:hover{color:#fff}.copyright{border-top:1px solid #2c2c2c;margin-top:20px;padding-top:15px;font-size:10px}
.modal{display:none;position:fixed;inset:0;z-index:100}.modal.show{display:grid;place-items:center}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}.modal-card{position:relative;background:#fff;border-radius:18px;overflow:hidden;width:min(760px,calc(100% - 32px));z-index:1;box-shadow:0 25px 70px rgba(0,0,0,.25);display:grid;grid-template-columns:48% 52%}.modal-card>img{width:100%;height:100%;min-height:360px;object-fit:cover}.modal-body{padding:36px}.modal-body h2{font-size:30px;margin:0 0 10px}.modal-meta{display:flex;gap:18px;color:var(--orange);font-size:12px;font-weight:700;margin-bottom:15px}.modal-body>p:not(.eyebrow){color:#666;line-height:1.7;font-size:13px}.modal-close{position:absolute;right:13px;top:10px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;font-size:24px;z-index:2}.mobile-nav{display:none;position:fixed;top:74px;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:8px 0;box-shadow:0 12px 30px rgba(0,0,0,.12);z-index:99;flex-direction:column}
@media(max-width:900px){
  .desktop-nav{display:none}
  .menu-btn{display:flex}
  .mini-search{display:none}
  .mobile-nav{
    position:fixed;
    top:74px;
    left:0;right:0;
    background:#fff;
    border-bottom:1px solid #eee;
    padding:8px 0 12px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    z-index:99;
  }
  .mobile-nav.show{display:flex;flex-direction:column}
  .mobile-nav a{
    display:block;
    padding:14px 24px;
    font-size:15px;
    font-weight:500;
    border-bottom:1px solid #f3f3f3;
  }
  .mobile-nav a:last-child{border-bottom:0}
  .mobile-nav a:active,.mobile-nav a:hover{color:var(--orange);background:#fff8f1}
  .category-row{grid-template-columns:repeat(4,1fr)}
  .recipe-grid{grid-template-columns:repeat(2,1fr)}
  .hero{height:510px}
  .hero-overlay{background:linear-gradient(90deg,rgba(255,250,245,.98),rgba(255,250,245,.78))}
  .feature-banner{grid-template-columns:38% 1fr}
  .feature-doodles{display:none}
  .why-grid{grid-template-columns:1fr;gap:35px}
}
@media(max-width:600px){.container{width:min(100% - 28px,1180px)}.site-header,.nav-wrap{height:66px}.brand{min-width:auto}.brand-logo{width:48px;height:48px}.brand strong{font-size:17px}.desktop-nav{display:none}.mobile-nav{top:66px!important}.hero{height:570px}.hero-copy{width:100%}.hero h1{font-size:39px}.hero-text{font-size:13px}.hero-search{height:48px}.stats{gap:18px}.stats strong{font-size:17px}.categories{padding-top:30px}.category-row{display:flex;overflow-x:auto;gap:16px;padding:4px 4px 10px}.category-card{min-width:85px}.cat-icon{width:68px;height:68px;font-size:25px}.section-top{align-items:center}.section-top h2{font-size:23px}.outline-btn{font-size:10px}.recipe-grid{grid-template-columns:1fr 1fr;gap:12px}.recipe-photo{height:145px}.recipe-body{padding:11px}.recipe-body h3{font-size:13px}.recipe-footer{font-size:9px}.feature-banner{grid-template-columns:1fr;margin-top:20px}.feature-photo{height:150px}.feature-copy{padding:22px}.feature-copy h2{font-size:23px}.latest{padding-top:35px}.why-section{padding:45px 0}.why-section h2{font-size:32px}.why-points{grid-template-columns:1fr}.footer-grid{align-items:flex-start;flex-direction:column}.modal-card{grid-template-columns:1fr}.modal-card>img{height:220px;min-height:0}.modal-body{padding:24px}.modal-body h2{font-size:25px}}

/* Brand/logo refinements */
.site-header .brand-logo{
  display:block;
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 58px;
}
.site-header .brand{
  flex:0 0 auto;
  min-width:235px;
}
.about-logo-row{
  display:flex;
  align-items:center;
  gap:22px;
  padding-bottom:34px;
}
.about-logo{
  width:105px;
  height:105px;
  object-fit:contain;
  background:#fff;
  border-radius:50%;
  padding:7px;
}
.about-logo-row h2{
  margin:0;
  font-size:32px;
  line-height:1.12;
}
.about-logo-row .eyebrow{margin-bottom:7px}
@media(max-width:600px){
  .site-header .brand{min-width:auto}
  .site-header .brand-logo{width:48px;height:48px;flex-basis:48px}
  .about-logo-row{padding-bottom:25px;gap:14px}
  .about-logo{width:76px;height:76px}
  .about-logo-row h2{font-size:24px}
}

/* ===== Full Recipe Detail Page ===== */
.recipe-detail-wrap{padding:30px 0 60px}
.back-btn{
  background:none;border:none;color:var(--orange);font-weight:600;font-size:14px;
  cursor:pointer;margin-bottom:25px;padding:0;display:inline-flex;align-items:center;gap:6px
}
.back-btn:hover{text-decoration:underline}
.detail-hero{
  display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;margin-bottom:45px
}
.detail-hero img{
  width:100%;height:380px;object-fit:cover;border-radius:18px;box-shadow:0 12px 40px rgba(0,0,0,.12)
}
.detail-hero-info h1{
  font-family:"Playfair Display",serif;font-size:36px;line-height:1.15;margin:8px 0 14px
}
.detail-desc{color:#555;font-size:15px;line-height:1.6;margin-bottom:18px}
.detail-meta{
  display:flex;flex-wrap:wrap;gap:14px 22px;font-size:13px;color:#444;margin-bottom:22px
}
.detail-meta span{background:#f7f7f7;padding:6px 12px;border-radius:20px}
.detail-grid{
  display:grid;grid-template-columns:1fr 1.4fr;gap:35px
}
.ingredients-box,.steps-box{
  background:#fafafa;border-radius:16px;padding:28px 30px
}
.ingredients-box h2,.steps-box h2{
  font-size:20px;margin:0 0 18px;font-family:"Playfair Display",serif
}
.ingredients-box ul{margin:0;padding:0;list-style:none}
.ingredients-box li{
  padding:9px 0;border-bottom:1px solid #eee;font-size:14.5px;display:flex;align-items:flex-start;gap:10px
}
.ingredients-box li:before{content:"•";color:var(--orange);font-weight:700}
.ingredients-box li:last-child{border-bottom:none}
.steps-box ol{margin:0;padding-left:22px}
.steps-box li{
  padding:10px 0;font-size:14.5px;line-height:1.55;color:#333
}
.steps-box li+li{border-top:1px solid #eee}

@media(max-width:800px){
  .detail-hero{grid-template-columns:1fr;gap:22px}
  .detail-hero img{height:260px}
  .detail-hero-info h1{font-size:28px}
  .detail-grid{grid-template-columns:1fr;gap:20px}
}

/* ===== Newsletter Box (About section) ===== */
.newsletter-box{
  max-width:420px;
  margin:36px auto 16px;
  text-align:center;
  background:#fff;
  border-radius:14px;
  padding:28px 24px;
  border:1px solid rgba(232,93,4,.15);
  box-shadow:0 8px 28px rgba(0,0,0,.12);
}
.newsletter-eyebrow{
  color:#e85d04;
  font-size:11px;
  letter-spacing:2px;
  font-weight:700;
  margin:0 0 8px;
  text-transform:uppercase;
}
.newsletter-title{
  font-family:"Playfair Display",serif;
  font-size:22px;
  color:#1a1a1a;
  margin:0 0 8px;
  line-height:1.25;
}
.newsletter-text{
  color:#666;
  font-size:13px;
  line-height:1.5;
  margin:0 0 18px;
  max-width:100%;
  margin-left:auto;
  margin-right:auto;
}
.newsletter-form{
  display:flex;
  gap:8px;
  max-width:100%;
  margin:0 auto 12px;
  justify-content:center;
  flex-wrap:wrap;
}
.newsletter-form input{
  flex:1;
  min-width:140px;
  height:42px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:0 14px;
  font-size:13px;
  background:#f9fafb;
  box-shadow:none;
  outline:none;
}
.newsletter-form input:focus{
  border-color:#e85d04;
  box-shadow:0 0 0 3px rgba(232,93,4,.15);
  background:#fff;
}
.newsletter-form button{
  height:42px;
  padding:0 18px;
  border:none;
  border-radius:10px;
  background:#e85d04;
  color:#fff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition:background .2s;
}
.newsletter-form button:hover{
  background:#d45403;
}
.newsletter-note{
  font-size:11px;
  color:#888;
  margin:0;
}
.newsletter-note strong{
  color:#e85d04;
}
.newsletter-success{
  color:#16a34a;
  font-weight:600;
  margin-top:12px;
  font-size:13px;
}
@media(max-width:600px){
  .newsletter-box{padding:22px 16px;margin:28px 12px 10px;max-width:100%}
  .newsletter-title{font-size:20px}
  .newsletter-form{flex-direction:column;align-items:stretch}
  .newsletter-form input,.newsletter-form button{width:100%}
}


/* Search suggestion dropdown */
.search-suggest{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  min-width:280px;
  max-height:360px;
  overflow-y:auto;
  background:#fff;
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.15);
  border:1px solid #eee;
  z-index:200;
  padding:6px;
}
.search-suggest-hero{
  left:0;
  right:0;
  min-width:100%;
}
.search-suggest-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  text-align:left;
  border:0;
  background:transparent;
  width:100%;
  font:inherit;
  color:inherit;
}
.search-suggest-item:hover,
.search-suggest-item:focus{
  background:#fff8f1;
  outline:none;
}
.search-suggest-item img{
  width:48px;
  height:48px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
  background:#f3f3f3;
}
.search-suggest-item .sg-text{
  flex:1;
  min-width:0;
}
.search-suggest-item .sg-title{
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.search-suggest-item .sg-meta{
  font-size:11px;
  color:#888;
  margin-top:2px;
}
.search-suggest-empty{
  padding:16px;
  text-align:center;
  color:#888;
  font-size:13px;
}

/* Detail action buttons */
.detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.detail-actions .outline-btn{
  background:#fff;border:1.5px solid #ddd;color:#333;height:44px;padding:0 20px;
  border-radius:24px;font-weight:600;font-size:14px;cursor:pointer
}
.detail-actions .outline-btn:hover{border-color:var(--orange);color:var(--orange)}

/* Print styles */
@media print{
  .site-header,.back-btn,.detail-actions,footer,.newsletter-box{display:none!important}
  .detail-hero{grid-template-columns:1fr;gap:16px}
  .detail-hero img{height:220px}
}

/* Better contact footer note */
.footer-contact-note{font-size:12px;color:#888;margin-top:8px}

/* ===== PHASE 1 ENHANCEMENTS ===== */

/* Dark mode */
[data-theme="dark"] {
  --ink: #e8e8e8;
  --muted: #a0a0a0;
  --line: #333;
  --cream: #1a1a1a;
  --soft: #252525;
  --white: #1e1e1e;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  background: #121212;
  color: #e8e8e8;
}
[data-theme="dark"] body { background: #121212; color: #e8e8e8; }
[data-theme="dark"] .site-header { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .desktop-nav a { color: #ddd; }
[data-theme="dark"] .mini-search { background: #2a2a2a; }
[data-theme="dark"] .mini-search input { color: #eee; }
[data-theme="dark"] .recipe-card { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .recipe-body h3 { color: #eee; }
[data-theme="dark"] .category-card { color: #ddd; }
[data-theme="dark"] .cat-icon { background: #2a2a2a; border-color: #444; box-shadow: none; }
[data-theme="dark"] .outline-btn { background: #1e1e1e; border-color: #444; color: #ddd; }
[data-theme="dark"] .hero-overlay { background: linear-gradient(90deg,rgba(18,18,18,.97) 0%,rgba(18,18,18,.9) 34%,rgba(18,18,18,.4) 62%,rgba(18,18,18,.1) 100%); }
[data-theme="dark"] .hero { background: #1a1a1a; }
[data-theme="dark"] .feature-banner { background: #252018; }
[data-theme="dark"] .why-section { background: #0d0d0d; }
[data-theme="dark"] .ingredients-box, [data-theme="dark"] .steps-box { background: #1e1e1e; }
[data-theme="dark"] .detail-meta span { background: #2a2a2a; color: #ddd; }
[data-theme="dark"] .search-suggest { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .search-suggest-item:hover { background: #2a2a2a; }
[data-theme="dark"] .filters-bar { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .filter-select, [data-theme="dark"] .filter-btn { background: #2a2a2a; border-color: #444; color: #eee; }
[data-theme="dark"] .meal-planner-panel { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .macro-badge { background: #2a2a2a; }

/* Theme toggle & language */
.theme-lang-wrap { display: flex; align-items: center; gap: 8px; }
.theme-btn, .lang-btn {
  border: 1px solid #e5e5e5; background: #f7f7f7; width: 38px; height: 38px;
  border-radius: 10px; font-size: 16px; display: grid; place-items: center; cursor: pointer;
}
.theme-btn:hover, .lang-btn:hover { border-color: var(--orange); }
.lang-select {
  height: 38px; border: 1px solid #e5e5e5; border-radius: 10px; padding: 0 8px;
  font-size: 12px; background: #f7f7f7; cursor: pointer; max-width: 110px;
}
[data-theme="dark"] .theme-btn, [data-theme="dark"] .lang-btn, [data-theme="dark"] .lang-select {
  background: #2a2a2a; border-color: #444; color: #eee;
}

/* Macro badges on cards */
.macro-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px;
}
.macro-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px;
  background: #fff3e8; color: #e96810;
}
.macro-badge.cal { background: #f0f0f0; color: #555; }
.macro-badge.time { background: #eef6ff; color: #2563eb; }
[data-theme="dark"] .macro-badge.cal { background: #333; color: #ccc; }
[data-theme="dark"] .macro-badge.time { background: #1e2a3a; color: #60a5fa; }

/* Filters bar */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 0 8px; margin-bottom: 12px;
}
.filters-bar label { font-size: 12px; color: var(--muted); font-weight: 600; }
.filter-select {
  height: 36px; border: 1px solid #ddd; border-radius: 10px; padding: 0 12px;
  font-size: 13px; background: #fff; min-width: 120px;
}
.filter-btn {
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #ddd;
  background: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--orange); color: var(--orange); background: #fff8f1; }

/* Meal planner */
.meal-planner-panel {
  background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 20px;
  margin: 24px 0; box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.meal-planner-panel h3 { margin: 0 0 14px; font-size: 18px; }
.plan-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.plan-day {
  background: #fafafa; border-radius: 10px; padding: 10px 8px; min-height: 90px;
  border: 1px solid #eee;
}
.plan-day strong { display: block; font-size: 11px; color: var(--orange); margin-bottom: 6px; }
.plan-day .plan-item {
  font-size: 11px; padding: 4px 0; border-bottom: 1px solid #f0f0f0;
  display: flex; justify-content: space-between; gap: 4px;
}
.plan-day .plan-item button {
  border: 0; background: none; color: #c00; font-size: 12px; cursor: pointer; padding: 0;
}
.grocery-list { margin-top: 12px; }
.grocery-list ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.add-to-plan-btn {
  background: #fff; border: 1.5px solid var(--orange); color: var(--orange);
  border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.add-to-plan-btn:hover { background: var(--orange); color: #fff; }

/* Rating stars */
.rating-stars { color: #f5b400; font-size: 14px; letter-spacing: 1px; }
.rating-stars .dim { color: #ddd; }
.user-rating { margin-top: 10px; }
.user-rating button {
  background: none; border: none; font-size: 20px; cursor: pointer; padding: 0 2px;
}

/* AI swap panel */
.ai-panel {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin-top: 20px;
}
.ai-panel h4 { margin: 0 0 10px; font-size: 15px; }
.ai-panel textarea {
  width: 100%; min-height: 70px; border: 1px solid #ddd; border-radius: 10px;
  padding: 10px; font-size: 13px; resize: vertical;
}
.ai-panel .ai-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-result {
  margin-top: 12px; padding: 12px; background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb; font-size: 13px; line-height: 1.5; display: none;
}
[data-theme="dark"] .ai-panel { background: #1a222c; border-color: #333; }
[data-theme="dark"] .ai-result { background: #1e1e1e; border-color: #333; }

/* Language overlay note */
.lang-note {
  font-size: 11px; color: var(--muted); margin-top: 4px;
}

@media (max-width: 900px) {
  .plan-days { grid-template-columns: repeat(4, 1fr); }
  .filters-bar { gap: 8px; }
}
@media (max-width: 600px) {
  .plan-days { grid-template-columns: repeat(2, 1fr); }
  .theme-lang-wrap { gap: 4px; }
  .lang-select { max-width: 90px; font-size: 11px; }
}


/* ===== DARK MODE – FULL TEXT FIX ===== */
[data-theme="dark"],
[data-theme="dark"] body {
  background: #121212 !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] label,
[data-theme="dark"] li,
[data-theme="dark"] a,
[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] small,
[data-theme="dark"] div {
  color: inherit;
}
[data-theme="dark"] .site-header {
  background: #1a1a1a !important;
  border-color: #333 !important;
}
[data-theme="dark"] .desktop-nav a,
[data-theme="dark"] .mobile-nav a {
  color: #e8e8e8 !important;
}
[data-theme="dark"] .desktop-nav a.active,
[data-theme="dark"] .desktop-nav a:hover,
[data-theme="dark"] .mobile-nav a:hover {
  color: var(--orange) !important;
}
[data-theme="dark"] .brand strong { color: #f5f5f5 !important; }
[data-theme="dark"] .brand small { color: var(--orange) !important; }

/* Hero */
[data-theme="dark"] .hero { background: #1a1a1a !important; }
[data-theme="dark"] .hero h1 { color: #ffffff !important; }
[data-theme="dark"] .hero h1 span { color: var(--orange) !important; }
[data-theme="dark"] .hero-text { color: #c8c8c8 !important; }
[data-theme="dark"] .eyebrow { color: var(--orange) !important; }
[data-theme="dark"] .stats strong { color: #ffffff !important; }
[data-theme="dark"] .stats span { color: #aaa !important; }
[data-theme="dark"] .hero-search { background: #2a2a2a !important; border-color: #444 !important; }
[data-theme="dark"] .hero-search input { color: #f0f0f0 !important; background: transparent !important; }
[data-theme="dark"] .hero-search input::placeholder { color: #888 !important; }

/* Categories */
[data-theme="dark"] .category-card { color: #f0f0f0 !important; background: transparent !important; }
[data-theme="dark"] .category-card b { color: #f0f0f0 !important; opacity: 1 !important; }
[data-theme="dark"] .section-heading h2,
[data-theme="dark"] .section-top h2 {
  color: #ffffff !important;
}

/* Recipe cards */
[data-theme="dark"] .recipe-card {
  background: #1e1e1e !important;
  border-color: #333 !important;
}
[data-theme="dark"] .recipe-body h3 { color: #f0f0f0 !important; }
[data-theme="dark"] .recipe-body .eyebrow { color: var(--orange) !important; }
[data-theme="dark"] .recipe-footer { color: #bbb !important; }
[data-theme="dark"] .recipe-footer span { color: #bbb !important; }

/* Filters */
[data-theme="dark"] .filters-bar label { color: #ccc !important; }
[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-btn {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}

/* Feature banner */
[data-theme="dark"] .feature-banner { background: #252018 !important; }
[data-theme="dark"] .feature-copy h2 { color: #ffffff !important; }
[data-theme="dark"] .feature-copy p { color: #ccc !important; }

/* Latest section */
[data-theme="dark"] .latest h2 { color: #ffffff !important; }
[data-theme="dark"] .text-link { color: #ddd !important; }

/* Why / About (already dark bg – keep light text) */
[data-theme="dark"] .why-section { background: #0d0d0d !important; color: #f0f0f0 !important; }
[data-theme="dark"] .why-section h2 { color: #ffffff !important; }
[data-theme="dark"] .why-points b { color: #f0f0f0 !important; }
[data-theme="dark"] .why-points small { color: #aaa !important; }

/* Newsletter */
[data-theme="dark"] .newsletter-box {
  background: #1e1e1e !important;
  border-color: #444 !important;
}
[data-theme="dark"] .newsletter-title { color: #ffffff !important; }
[data-theme="dark"] .newsletter-text { color: #bbb !important; }
[data-theme="dark"] .newsletter-form input {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] .newsletter-note { color: #999 !important; }

/* Footer */
[data-theme="dark"] footer { background: #0a0a0a !important; color: #aaa !important; }
[data-theme="dark"] .footer-brand strong { color: #fff !important; }
[data-theme="dark"] .footer-links a { color: #bbb !important; }

/* Recipe detail page */
[data-theme="dark"] .recipe-detail-wrap { color: #f0f0f0 !important; }
[data-theme="dark"] .detail-hero-info h1 { color: #ffffff !important; }
[data-theme="dark"] .detail-desc { color: #ccc !important; }
[data-theme="dark"] .detail-meta span {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
}
[data-theme="dark"] .ingredients-box,
[data-theme="dark"] .steps-box {
  background: #1e1e1e !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .ingredients-box h2,
[data-theme="dark"] .steps-box h2 {
  color: #ffffff !important;
}
[data-theme="dark"] .ingredients-box li,
[data-theme="dark"] .steps-box li {
  color: #ddd !important;
  border-color: #333 !important;
}
[data-theme="dark"] .back-btn { color: var(--orange) !important; }
[data-theme="dark"] .detail-actions .outline-btn {
  background: #1e1e1e !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .add-to-plan-btn {
  background: transparent !important;
  border-color: var(--orange) !important;
  color: var(--orange) !important;
}
[data-theme="dark"] .user-rating { color: #ddd !important; }

/* Meal planner */
[data-theme="dark"] .meal-planner-panel {
  background: #1e1e1e !important;
  border-color: #333 !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .meal-planner-panel h3 { color: #ffffff !important; }
[data-theme="dark"] .plan-day {
  background: #252525 !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}
[data-theme="dark"] .plan-day strong { color: var(--orange) !important; }
[data-theme="dark"] .plan-item { border-color: #333 !important; color: #ddd !important; }
[data-theme="dark"] .grocery-list h4 { color: #fff !important; }
[data-theme="dark"] .grocery-list li { color: #ddd !important; }

/* Search suggest */
[data-theme="dark"] .search-suggest {
  background: #1e1e1e !important;
  border-color: #333 !important;
}
[data-theme="dark"] .search-suggest-item { color: #e8e8e8 !important; }
[data-theme="dark"] .search-suggest-item .sg-title { color: #f0f0f0 !important; }
[data-theme="dark"] .search-suggest-item .sg-meta { color: #999 !important; }
[data-theme="dark"] .search-suggest-empty { color: #888 !important; }

/* AI panel */
[data-theme="dark"] .ai-panel {
  background: #1a222c !important;
  border-color: #333 !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .ai-panel h4 { color: #fff !important; }
[data-theme="dark"] .ai-panel p { color: #bbb !important; }
[data-theme="dark"] .ai-panel textarea {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] .ai-result {
  background: #1e1e1e !important;
  border-color: #333 !important;
  color: #ddd !important;
}

/* Outline / primary buttons */
[data-theme="dark"] .outline-btn {
  background: #1e1e1e !important;
  border-color: #555 !important;
  color: #e8e8e8 !important;
}
[data-theme="dark"] .outline-btn:hover {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
}

/* Mini search */
[data-theme="dark"] .mini-search {
  background: #2a2a2a !important;
}
[data-theme="dark"] .mini-search input {
  color: #f0f0f0 !important;
}
[data-theme="dark"] .mini-search input::placeholder { color: #888 !important; }
[data-theme="dark"] .mini-search span { color: #aaa !important; }

/* Heart / menu */
[data-theme="dark"] .heart-btn { color: #e8e8e8 !important; }
[data-theme="dark"] .menu-btn {
  background: #2a2a2a !important;
  color: #e8e8e8 !important;
}

/* Macro badges keep accent colors but readable */
[data-theme="dark"] .macro-badge {
  background: #2a2a2a !important;
  color: #ff9b49 !important;
}
[data-theme="dark"] .macro-badge.cal {
  background: #333 !important;
  color: #ccc !important;
}
[data-theme="dark"] .macro-badge.time {
  background: #1e2a3a !important;
  color: #60a5fa !important;
}

/* Rating stars dim */
[data-theme="dark"] .rating-stars .dim { color: #555 !important; }

/* ===== DARK MODE – FORCE ALL TEXT LIGHT (final override) ===== */
[data-theme="dark"] {
  color-scheme: dark;
}
[data-theme="dark"] body,
[data-theme="dark"] main,
[data-theme="dark"] #mainContent,
[data-theme="dark"] #home {
  background: #121212 !important;
  color: #f0f0f0 !important;
}

/* Force every common text element to light */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] p,
[data-theme="dark"] span:not(.macro-badge):not(.cat-icon),
[data-theme="dark"] label,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th,
[data-theme="dark"] strong,
[data-theme="dark"] b,
[data-theme="dark"] small,
[data-theme="dark"] em,
[data-theme="dark"] figcaption {
  color: #f0f0f0 !important;
}

/* Links default light, orange on hover/active */
[data-theme="dark"] a {
  color: #e8e8e8 !important;
}
[data-theme="dark"] a:hover,
[data-theme="dark"] a.active {
  color: var(--orange) !important;
}

/* Hardcoded dark colors from original CSS → force light */
[data-theme="dark"] .hero-text,
[data-theme="dark"] .detail-desc,
[data-theme="dark"] .feature-copy p,
[data-theme="dark"] .newsletter-text,
[data-theme="dark"] .recipe-footer,
[data-theme="dark"] .sg-meta,
[data-theme="dark"] .why-points small {
  color: #c8c8c8 !important;
}

/* Section headings */
[data-theme="dark"] .section-heading h2,
[data-theme="dark"] .section-top h2,
[data-theme="dark"] .latest h2,
[data-theme="dark"] .detail-hero-info h1,
[data-theme="dark"] .ingredients-box h2,
[data-theme="dark"] .steps-box h2,
[data-theme="dark"] .meal-planner-panel h3,
[data-theme="dark"] .ai-panel h4,
[data-theme="dark"] .newsletter-title,
[data-theme="dark"] .feature-copy h2 {
  color: #ffffff !important;
}

/* Eyebrow stays orange */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .newsletter-eyebrow {
  color: var(--orange) !important;
}

/* Brand */
[data-theme="dark"] .brand strong { color: #ffffff !important; }
[data-theme="dark"] .brand small { color: var(--orange) !important; }

/* Cards & panels backgrounds */
[data-theme="dark"] .recipe-card,
[data-theme="dark"] .ingredients-box,
[data-theme="dark"] .steps-box,
[data-theme="dark"] .meal-planner-panel,
[data-theme="dark"] .newsletter-box,
[data-theme="dark"] .ai-panel,
[data-theme="dark"] .search-suggest,
[data-theme="dark"] .plan-day {
  background: #1e1e1e !important;
  border-color: #333 !important;
  color: #f0f0f0 !important;
}

/* Inputs */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #888 !important;
}

/* Buttons that were white/light */
[data-theme="dark"] .outline-btn,
[data-theme="dark"] .filter-btn,
[data-theme="dark"] .theme-btn,
[data-theme="dark"] .lang-select,
[data-theme="dark"] .menu-btn {
  background: #2a2a2a !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
}

/* Category labels */
[data-theme="dark"] .category-card,
[data-theme="dark"] .category-card b {
  color: #e8e8e8 !important;
}

/* Stats under hero */
[data-theme="dark"] .stats strong { color: #ffffff !important; }
[data-theme="dark"] .stats span { color: #aaa !important; }

/* Keep orange accents */
[data-theme="dark"] .protein,
[data-theme="dark"] .macro-badge:not(.cal):not(.time) {
  color: #ff9b49 !important;
}

/* Detail meta pills */
[data-theme="dark"] .detail-meta span {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
}

/* Footer */
[data-theme="dark"] footer {
  background: #0a0a0a !important;
  color: #aaa !important;
}
[data-theme="dark"] footer strong { color: #fff !important; }
[data-theme="dark"] .footer-links a { color: #bbb !important; }

/* Mobile nav */
[data-theme="dark"] .mobile-nav {
  background: #1a1a1a !important;
  border-color: #333 !important;
}
[data-theme="dark"] .mobile-nav a {
  color: #e8e8e8 !important;
  border-color: #333 !important;
}

/* Heart icon */
[data-theme="dark"] .heart-btn { color: #e8e8e8 !important; }

/* Prevent pure black text from original rules */
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:black"],
[data-theme="dark"] [style*="color: black"] {
  color: #f0f0f0 !important;
}

/* ===== DARK MODE – CATEGORY CARDS FIX ===== */
[data-theme="dark"] .category-card {
  background: transparent !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] .category-card b {
  color: #f0f0f0 !important;
  opacity: 1 !important;
}
[data-theme="dark"] .cat-icon {
  background: #2a2a2a !important;
  border-color: #444 !important;
  box-shadow: none !important;
  color: #f0f0f0 !important;
}
[data-theme="dark"] .category-card.active .cat-icon,
[data-theme="dark"] .category-card:hover .cat-icon {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 2px rgba(244, 122, 24, 0.35) !important;
  background: #332418 !important;
}
[data-theme="dark"] .category-card.active b,
[data-theme="dark"] .category-card:hover b {
  color: var(--orange) !important;
}

/* Remove any white card background behind categories */
[data-theme="dark"] .category-row .category-card {
  background: transparent !important;
}
[data-theme="dark"] .categories {
  background: transparent !important;
}

/* ===== Card badges (protein + calorie + time) ===== */
.card-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
.card-badges .badge {
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.card-badges .badge.protein { background: rgba(230,90,20,.9); }
.recipe-photo { position: relative; }

/* ===== Star rating on detail ===== */
.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.stars { display: flex; gap: 2px; }
.star-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.star-btn.active, .star-btn:hover { color: #f5a623; }
.star-value { font-weight: 600; font-size: 14px; }

/* ===== AI Adjust box ===== */
.ai-adjust-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--card-bg, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
}
.ai-adjust-box h3 { margin: 0 0 8px; font-size: 18px; }
.ai-hint { font-size: 13px; opacity: .7; margin: 0 0 12px; }
.ai-adjust-box textarea {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #444);
  background: var(--input-bg, #111);
  color: inherit;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}
.ai-result {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(230,90,20,.12);
  border-radius: 10px;
  font-size: 14px;
}

/* ===== Meal planner ===== */
.meal-planner-panel {
  margin-top: 24px;
  padding: 20px;
  background: var(--card-bg, #f8f8f8);
  border-radius: 16px;
  border: 1px solid var(--border, #e5e5e5);
}
body.dark .meal-planner-panel { background: #1a1a1a; border-color: #333; }
.plan-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.plan-day {
  background: var(--bg, #fff);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border, #eee);
}
body.dark .plan-day { background: #222; border-color: #444; }
.plan-day h4 { margin: 0 0 8px; font-size: 14px; color: #e65a14; }
.plan-day ul { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.plan-day li { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-bottom: 4px; }
.plan-day li.empty { opacity: .5; font-style: italic; }
.rm-plan {
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.grocery-list { margin-top: 16px; }
.grocery-list ul { columns: 2; gap: 20px; }

/* ===== Filters bar ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0 20px;
}
.filter-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #ddd);
  background: var(--input-bg, #fff);
  color: inherit;
  font-size: 13px;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #ddd);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

/* ===== RTL support ===== */
[dir="rtl"] .card-badges { left: auto; right: 8px; }
[dir="rtl"] .recipe-footer,
[dir="rtl"] .detail-meta,
[dir="rtl"] .detail-actions { direction: rtl; }
[dir="rtl"] .back-btn { direction: rtl; }
[dir="rtl"] .plan-days { direction: rtl; }
[dir="rtl"] .filters-bar { direction: rtl; }


/* ===== Admin page & toggle ===== */
.admin-wrap {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 0 16px;
}
.admin-title {
  font-size: 28px;
  margin: 12px 0 4px;
}
.admin-sub {
  opacity: 0.7;
  margin-bottom: 28px;
}
.admin-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
[data-theme="dark"] .admin-card {
  background: #1e1e1e;
  border-color: #333;
}
.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.admin-setting-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.admin-setting-info p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.45;
}
.admin-note {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 8px;
}

/* Toggle switch (matches modern admin UIs) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: 0.25s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.toggle-switch input:checked + .toggle-slider {
  background: #f47a18;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}
[data-theme="dark"] .toggle-slider {
  background: #555;
}
[data-theme="dark"] .toggle-switch input:checked + .toggle-slider {
  background: #f47a18;
}


/* ===== Premium / Secret recipes ===== */
.badge.premium,
.floating-premium {
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  font-weight: 600;
}
.premium-badge-detail {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.premium-blur-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
}
.premium-blur-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: blur(6px) brightness(0.45);
  transform: scale(1.05);
}
.premium-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
}
.premium-lock-icon { font-size: 48px; margin-bottom: 8px; }
.premium-lock-overlay h2 { margin: 0 0 6px; font-size: 1.4rem; }
.premium-lock-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; color: #fbbf24; }
.premium-lock-desc { max-width: 420px; opacity: .9; font-size: 0.95rem; margin-bottom: 14px; }
.premium-meta-teaser {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.premium-meta-teaser span {
  background: rgba(255,255,255,.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.premium-code-box {
  margin-top: 16px;
  background: rgba(0,0,0,.35);
  padding: 14px 16px;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
}
.premium-code-box label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: .9;
}
.premium-code-row {
  display: flex;
  gap: 8px;
}
.premium-code-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14px;
}
.premium-code-row input::placeholder { color: rgba(255,255,255,.5); }
.premium-code-hint { font-size: 13px; margin-top: 8px; min-height: 18px; }
.premium-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 700px) {
  .premium-teaser-grid { grid-template-columns: 1fr; }
}
.locked-line { opacity: .5; font-style: italic; }
.recipe-card.premium-dim .recipe-photo::after {
  content: "🔒";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
}


/* Card premium lock badge */

/* ===== Plans / Membership section (3-tier) ===== */
.plans-section {
  padding: 72px 0 56px;
  background: #fffaf6;
}
[data-theme="dark"] .plans-section {
  background: #14110e;
}
.plans-kicker {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f47a18;
  margin: 0 0 10px;
}
.plans-heading {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 22px;
  color: #1a1a1a;
  font-weight: 700;
}
[data-theme="dark"] .plans-heading { color: #f5f5f5; }

.plans-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 14px 18px;
  background: #fff5eb;
  border: 1px solid #ffd8b5;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5c4030;
}
[data-theme="dark"] .plans-notice {
  background: #2a1f16;
  border-color: #5a3d28;
  color: #e8d5c4;
}
.plans-notice-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f47a18;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
}

.plans-grid.three-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 36px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .plans-grid.three-tier { grid-template-columns: 1fr; max-width: 400px; }
}

.plan-card {
  background: #fff;
  border: 1.5px solid #ece6e0;
  border-radius: 20px;
  padding: 28px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
[data-theme="dark"] .plan-card {
  background: #1c1c1c;
  border-color: #333;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }

.plan-card.featured {
  border-color: #f47a18;
  background: #fff8f2;
  box-shadow: 0 12px 36px rgba(244,122,24,.12);
}
[data-theme="dark"] .plan-card.featured {
  background: #221a14;
  border-color: #f47a18;
}

.plan-most-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f47a18;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 12px;
  font-size: 22px;
}
.basic-icon { background: #fff0e6; }
.premium-icon { background: #ffe8d4; }
.secret-icon { background: #2d1f14; color: #f47a18; font-size: 18px; }
[data-theme="dark"] .basic-icon { background: #2a221c; }
[data-theme="dark"] .premium-icon { background: #3a2a1c; }
[data-theme="dark"] .secret-icon { background: #1a1210; }

.plan-tier-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #9a8b7a;
  margin: 0 0 4px;
}
.premium-label { color: #f47a18; }
.secret-label { color: #c45c12; }

.plan-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
[data-theme="dark"] .plan-name { color: #f0f0f0; }
.plan-price-line .price { font-size: 2rem; color: #f47a18; }
.plan-price-line small { font-size: 14px; font-weight: 500; color: #888; }

.plan-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #6b6560;
  margin: 0 0 18px;
  min-height: 40px;
}
[data-theme="dark"] .plan-desc { color: #a8a29e; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe6;
  font-size: 13.5px;
  color: #3d3a36;
}
[data-theme="dark"] .plan-features li {
  border-color: #2a2a2a;
  color: #d4d0cc;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check {
  color: #f47a18;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-sub-box {
  text-align: left;
  padding: 12px 14px;
  border: 1.5px dashed #f5c49a;
  border-radius: 12px;
  background: rgba(244,122,24,.06);
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.45;
  color: #5c4030;
}
.plan-sub-box strong {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  margin-bottom: 4px;
  color: #f47a18;
}
.plan-sub-box.secret-box {
  border-color: #c45c12;
  background: rgba(196,92,18,.08);
}
[data-theme="dark"] .plan-sub-box {
  background: rgba(244,122,24,.1);
  color: #e0cfc0;
  border-color: #8a5a30;
}

.plan-cta {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: .15s;
  font-family: inherit;
}
.plan-cta-outline {
  background: transparent;
  border: 1.5px solid #ddd5cc;
  color: #333;
}
.plan-cta-outline:hover { border-color: #f47a18; color: #f47a18; }
[data-theme="dark"] .plan-cta-outline {
  border-color: #444;
  color: #eee;
}
.plan-cta-primary {
  background: #f47a18;
  color: #fff;
}
.plan-cta-primary:hover { background: #e06a10; }
.plan-cta-secret {
  background: #2d1f14;
  color: #fff;
}
.plan-cta-secret:hover { background: #3d2a1c; }
[data-theme="dark"] .plan-cta-secret {
  background: #f47a18;
}
[data-theme="dark"] .plan-cta-secret:hover { background: #e06a10; }

.plan-foot-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9a8b7a;
  min-height: 1.2em;
}
.plan-sign-in { color: #f47a18; font-weight: 500; }

.plans-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px;
  background: #fff5eb;
  border-radius: 14px;
}
[data-theme="dark"] .plans-trust {
  background: #1c1814;
}
@media (max-width: 700px) {
  .plans-trust { grid-template-columns: 1fr 1fr; }
}
.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
}
.trust-item > span {
  color: #f47a18;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-item strong { display: block; font-size: 13px; color: #2a2a2a; margin-bottom: 2px; }
.trust-item small { color: #7a726a; line-height: 1.4; }
[data-theme="dark"] .trust-item strong { color: #f0f0f0; }
[data-theme="dark"] .trust-item small { color: #a8a29e; }

/* keep card tier badges */

.card-tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.card-tier-badge.free { background: rgba(46,125,50,.9); color: #fff; }
.card-tier-badge.premium { background: rgba(230,81,0,.95); color: #fff; }

/* Premium locked detail */
.premium-lock-overlay {
  margin-top: 20px;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1f14 100%);
  border-radius: 16px;
  color: #fff;
  border: 1px solid #444;
}
.premium-lock-overlay h3 { margin: 0 0 8px; font-size: 1.2rem; }
.premium-lock-overlay p { opacity: .8; margin: 0 0 16px; font-size: 14px; }
.premium-lock-overlay .primary-btn { margin: 0 auto; }
.ingredients-box.locked, .steps-box.locked {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 180px;
  overflow: hidden;
  position: relative;
}
.ingredients-box.locked::after, .steps-box.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--card-bg, #1a1a1a));
}

