/* =========================================================
   NILI'S KITCHEN AI - CLEAN STYLE.CSS
   Old stacked CSS cleaned. Mobile #content / #result are visible.
========================================================= */

*{margin:0;padding:0;box-sizing:border-box}
:root{--page-bg:#e7e9ee;--brand-bg:#fff7ea;--card-bg:#fffaf3;--white:#fff;--green:#315c45;--green-dark:#163f31;--green-soft:#eef6ec;--green-border:#d3e6c9;--orange:#ef6a1a;--orange-dark:#d94d0a;--text:#172033;--muted:#697386;--border:#eadcc9}
html,body{width:100%;min-height:100%;font-family:Arial,sans-serif;background:var(--page-bg);color:var(--text);overflow-x:hidden}body{min-height:100vh}button,input,select{font-family:inherit}button{cursor:pointer}img,video{max-width:100%}

/* LAYOUT */
#sidebar,.sidebar{position:fixed;top:0;left:0;z-index:20;width:360px;height:100vh;padding:16px;overflow:hidden;overflow-x:hidden;background:var(--page-bg);border-right:1px solid rgba(24,34,52,.08);box-shadow:18px 0 48px rgba(24,34,52,.08)}
.sidebar-shell,.sidebar-main,.sidebar-top{display:flex;flex-direction:column;gap:10px}.sidebar-shell{min-height:100%}.sidebar-bottom{display:none}.content,#content{margin-left:360px;min-height:100vh;padding:24px;overflow:hidden;overflow-x:hidden;background:var(--page-bg)}

/* BRAND */
.nk-brand-card,.sidebar-brand,.brand-card{width:100%;min-height:140px;background:var(--brand-bg);border-radius:28px;padding:14px 16px;display:flex;align-items:center;justify-content:center;overflow:visible;box-shadow:0 10px 30px rgba(0,0,0,.04)}
.nk-brand-inner,.brand-main,.brand-row{display:flex;align-items:center;justify-content:center;gap:14px;direction:ltr}.nk-logo,.brand-logo,.logo-shell .logo,.logo{width:82px;height:82px;min-width:82px;min-height:82px;object-fit:contain;display:block}.nk-brand-text,.brand-text{text-align:left;direction:ltr;max-width:190px}.nk-title,.brand-text h1,#sidebar h1,.sidebar h1{margin:0;color:#07172d;font-size:26px;line-height:1.05;font-weight:900;white-space:nowrap}.nk-subtitle,.subtitle,#appSubtitle,.brand-text p{margin:6px 0 0;color:#4b5563;font-size:12px;line-height:1.15;font-weight:800}

/* LANGUAGE */
.floating-lang{position:fixed;top:40px;right:34px;z-index:999999}.lang-wrapper{position:relative;display:inline-block}.lang-btn,#langBtn{border:none;background:transparent;color:#6e747e;font-size:22px;font-weight:900;line-height:1;display:inline-flex;align-items:center;gap:6px}.lang-options,#langOptions{display:none;position:absolute;top:calc(100% + 8px);right:0;width:78px;min-width:78px;background:#fff;border-radius:16px;padding:6px 0;box-shadow:0 14px 30px rgba(0,0,0,.20);overflow:hidden;z-index:1000000}.lang-options.open,#langOptions.open{display:flex;flex-direction:column}.lang-options button,#langOptions button{height:32px;line-height:32px;border:none;background:#fff;font-size:12px;font-weight:800}

/* MOBILE HERO */
.mobile-only,.mobile-hero-big,.mobile-hero-small{display:none}.mobile-hero-big,.mobile-hero-small{position:relative;overflow:hidden;border-radius:16px}.mobile-hero-big img,.mobile-hero-small img{width:100%;object-fit:cover;display:block}.mobile-hero-text{position:absolute;left:14px;right:14px;bottom:16px;z-index:5;color:#fff}.mobile-hero-text .hero-title-text{white-space:normal;word-break:normal;overflow-wrap:anywhere}

/* UPLOAD */
.upload-card,.scan-action,.upload{width:100%;min-height:72px;border:none;border-radius:18px;background:linear-gradient(135deg,var(--green-dark),var(--green));color:#fff;padding:14px 16px;margin:0;display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:center;text-align:left;cursor:pointer;box-shadow:0 14px 30px rgba(22,63,49,.22);overflow:hidden}.upload-card-text{display:flex;flex-direction:column;gap:4px}.upload-card-text strong,#scanTitle,.scan-title,#uploadTitle,.upload h3{display:block;color:#fff;font-size:17px;line-height:1.1;font-weight:900}.upload-card-text span,#statusText,.scan-subtitle{display:block;color:rgba(255,255,255,.82);font-size:12px;line-height:1.2;font-weight:700}.gallery-mini-btn{display:none;width:max-content;margin-top:2px;margin-bottom:2px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:800;border:none}.analyze-progress,.progress{width:100%;height:6px;margin-top:4px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.22)}#bar,.bar{width:0%;height:100%;border-radius:999px;background:linear-gradient(90deg,#ffb347,#ff7b54);transition:width .35s ease}

/* MANUAL */
.manual-box,.manual-panel{background:var(--card-bg);border-radius:18px;padding:12px}.manual{display:grid;grid-template-columns:1fr 42px;gap:8px;align-items:center}#manualInput{width:100%;height:40px;border:1px solid rgba(24,34,52,.10);border-radius:13px;background:#f9fafb;color:var(--text);padding:0 12px;font-size:13px;font-weight:800;outline:none}#manualInput::placeholder{color:#9ca3af}.manual button{width:42px;height:40px;min-width:42px;border:none;border-radius:13px;background:var(--orange);color:#fff;font-size:22px;font-weight:950;line-height:1}

/* CATEGORY */
.category-box,.category-panel{padding:14px;margin:0;background:#fff;border-radius:20px;overflow:visible;border:1px solid rgba(24,34,52,.08);box-shadow:0 14px 34px rgba(24,34,52,.055)}.section-title,.panel-title,#manualTitle,#categoriesTitle{margin:0 0 10px;color:#182234;font-size:14px;line-height:1.2;font-weight:950}.category-grid,.category-grid.collapsed{display:flex;flex-wrap:wrap;gap:8px;height:auto;min-height:0;max-height:none;margin:0;padding:0;overflow:visible;opacity:1;pointer-events:auto}.category-grid button,.category-btn{width:auto;min-height:27px;padding:6px 10px;border-radius:999px;background:var(--green-soft);color:var(--green);border:1px solid var(--green-border);font-size:11px;font-weight:900;line-height:1;white-space:nowrap}.category-grid button:hover,.category-grid button.active,.category-btn:hover,.category-btn.active{background:var(--green);color:#fff;border-color:var(--green)}.category-toggle,#categoryArrow{display:none}.subcategories,#ingredientModalItems{display:flex;flex-wrap:wrap;gap:8px}.sub-btn,.modal-ingredient-btn{border-radius:999px;background:var(--green-soft);color:#2f4a1f;border:1px solid #d7e8c3;padding:9px 13px;font-size:13px;font-weight:800}

/* AD + CREATOR */
.video-ad-box,.fake-ad-box,.ad-box{display:none}.ad-media-box{width:100%;height:180px;margin:0;border-radius:18px;overflow:hidden;position:relative;background:#f3f4f6;box-shadow:0 12px 28px rgba(0,0,0,.08)}.ad-media-box img,.ad-media-box video{width:100%;height:100%;object-fit:cover;display:block}.creator-card,.creator-panel,.creator-auth-card{padding:10px;border-radius:18px;background:var(--card-bg);border:1px solid rgba(24,34,52,.08);box-shadow:0 14px 34px rgba(24,34,52,.055)}.creator-tabs{height:32px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;margin-bottom:8px;background:#f3f4f6;border-radius:14px}.creator-tab{height:24px;border:none;border-radius:10px;background:transparent;color:#6b7280;font-size:10px;font-weight:900}.creator-tab.active{background:#fff;color:#182234}.creator-card-text strong{display:block;color:#182234;font-size:12px;font-weight:950}.creator-card-text span{display:block;color:#6b7280;font-size:11px;line-height:1.25;font-weight:700;margin:2px 0 8px}.creator-card input{width:100%;height:30px;margin-bottom:6px;border:1px solid rgba(24,34,52,.10);border-radius:10px;background:#f9fafb;color:#182234;padding:0 10px;font-size:11px;font-weight:800;outline:none}.creator-password-wrap{display:grid;grid-template-columns:1fr 54px;gap:6px}.creator-password-wrap button{height:30px;border:none;border-radius:10px;background:#eef2f7;color:#374151;font-size:10px;font-weight:900}.creator-continue-btn{width:100%;height:34px;border:none;border-radius:10px;background:#182234;color:#fff;font-size:11px;font-weight:950}

/* DESKTOP HERO */
.hero{width:100%;height:calc(100vh - 48px);overflow:hidden}.hero-bg{width:100%;height:100%;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.75fr);gap:18px;overflow:hidden}.hero-main-card{position:relative;width:100%;height:100%;border-radius:30px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.16)}.hero-main-img{width:100%;height:100%;object-fit:cover}.hero-dark{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,23,42,.82),rgba(15,23,42,.12))}.hero-content{position:absolute;left:48px;top:50%;transform:translateY(-50%);z-index:5;max-width:620px;color:#fff}.hero-badge-text{display:inline-flex;align-items:center;padding:8px 14px;margin-bottom:14px;border-radius:999px;background:linear-gradient(135deg,rgba(255,140,66,.95),rgba(255,94,98,.95));color:#fff;font-size:13px;font-weight:900;line-height:1}.hero-title-text{display:block;margin:0;color:#fff;font-size:54px;font-weight:900;line-height:.98;letter-spacing:-1.2px;text-shadow:0 4px 18px rgba(0,0,0,.30)}.hero-desc-text{display:block;margin-top:16px;max-width:620px;color:rgba(255,255,255,.92);font-size:22px;font-weight:500;line-height:1.45;text-shadow:0 3px 12px rgba(0,0,0,.22)}.hero-side-images{width:100%;height:100%;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:18px}.hero-side-images img{width:100%;height:100%;object-fit:cover;border-radius:28px;box-shadow:0 18px 50px rgba(0,0,0,.12)}

/* RESULTS */
#result,#result.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;width:100%;padding:28px 0 60px;margin:0;visibility:visible;opacity:1}#result p{font-size:18px;color:var(--muted)}.card{width:100%;background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.08);transition:.25s ease}.card:hover{transform:translateY(-4px)}.card img{width:100%;height:240px;object-fit:cover;display:block}.card-body{padding:18px}.card h3{font-size:20px;line-height:1.25;font-weight:900;color:var(--text);margin-bottom:10px}.time{font-size:14px;font-weight:800;color:var(--muted);margin:8px 0}.ingredients-count{font-size:13px;font-weight:800;color:#4f6f2c;margin-bottom:10px}.ingredients{display:flex;flex-wrap:wrap;gap:8px}.ingredients span{display:inline-flex;align-items:center;background:var(--green-soft);color:#2f4a1f;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}

/* SELECTED TRAY */
.selected-tray-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;background:rgba(15,23,42,.55);backdrop-filter:blur(8px);padding:20px}.selected-tray-modal.has-items{display:flex}.selected-tray-box{width:min(390px,92vw);aspect-ratio:9/16;max-height:90vh;background:var(--card-bg);border:1px solid #eadfce;border-radius:28px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 34px 100px rgba(0,0,0,.34)}.selected-tray-header{padding:22px 22px 18px;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;background:linear-gradient(135deg,#182234,var(--green));color:#fff}.selected-tray-header h2{font-size:24px;line-height:1.05;font-weight:950}.selected-tray-header p{margin-top:7px;font-size:13px;line-height:1.35;color:rgba(255,255,255,.78);font-weight:700}.selected-tray-close{width:34px;height:34px;border:none;border-radius:12px;background:rgba(255,255,255,.16);color:#fff;font-size:24px}#selectedTrayItems{flex:1;display:flex;align-content:flex-start;flex-wrap:wrap;gap:8px;padding:20px;overflow-y:auto}.selected-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:999px;background:#fff;color:#182234;border:1px solid #eadfce;font-size:12px;font-weight:900}.selected-chip button{border:none;background:transparent;color:#c2410c;font-size:15px;font-weight:950}.selected-tray-bottom{padding:16px 18px 18px;background:#fff;border-top:1px solid rgba(15,23,42,.08)}.tray-confirm{display:flex;align-items:center;gap:10px;color:#182234;font-size:14px;font-weight:900;margin-bottom:14px}.tray-confirm input{width:18px;height:18px;accent-color:var(--green)}#trayGetRecipesBtn{width:100%;height:52px;border:none;border-radius:18px;background:linear-gradient(135deg,var(--orange),var(--orange-dark));color:#fff;font-size:17px;font-weight:950}.selected-clear-bottom{align-self:center;margin:0 auto 12px;height:34px;border:none;border-radius:999px;background:rgba(24,34,52,.06);color:#6b7280;padding:0 16px;font-size:12px;font-weight:900}

/* MODALS */
.modal,.ingredient-modal{display:none;position:fixed;inset:0;width:100vw;height:100vh;z-index:9999999;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.65)}.ingredient-modal{background:rgba(20,24,18,.58);backdrop-filter:blur(8px)}.modal-content,.ingredient-modal-content{width:min(900px,92vw);max-height:88vh;overflow-y:auto;background:var(--card-bg);border-radius:28px;padding:30px;position:relative;box-shadow:0 30px 100px rgba(0,0,0,.35)}.ingredient-modal-content{width:min(520px,92vw);max-height:72vh;border:1px solid var(--border)}.close,.ingredient-modal-close{position:absolute;top:18px;right:18px;width:38px;height:38px;border:none;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;z-index:10}.ingredient-modal-close{background:var(--orange)}.modal-content img{width:100%;max-height:340px;object-fit:cover;border-radius:24px;margin-bottom:24px}.modal-content h1{font-size:38px;line-height:1.15;color:var(--text);margin-bottom:14px}.modal-content h2,#ingredientModalTitle{font-size:24px;color:var(--text);margin:24px 0 14px;font-weight:900}.modal-content p{font-size:17px;line-height:1.8;color:#374151}

/* RESPONSIVE */
@media(max-width:1200px){#result,#result.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-title-text{font-size:42px}}
@media(max-width:980px){html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;background:var(--page-bg)}#sidebar,.sidebar{position:relative;top:auto;left:auto;width:100%;height:auto;min-height:0;max-height:none;padding:12px;margin:0;overflow:visible;border:none;box-shadow:none;background:var(--page-bg)}.sidebar-shell,.sidebar-main,.sidebar-top{height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;gap:10px;overflow:visible;padding:0;margin:0}.content,#content{display:block;margin-left:0;min-height:0;height:auto;padding:12px;overflow:visible;background:var(--page-bg)}.hero{display:none}.mobile-only,.mobile-hero-big,.mobile-hero-small{display:block}.mobile-hero-big{margin-top:0}.mobile-hero-big img{height:320px;border-radius:16px}.mobile-hero-small img{height:150px;border-radius:16px}.mobile-hero-text .hero-badge-text{padding:6px 12px;margin-bottom:10px;font-size:11px}.mobile-hero-text .hero-title-text{font-size:22px;line-height:1.12;letter-spacing:-.4px}.mobile-hero-text .hero-desc-text{margin-top:8px;font-size:13px;line-height:1.25;max-width:280px}.nk-brand-card{min-height:118px;border-radius:24px;padding:10px 12px}.nk-logo{width:74px;height:74px;min-width:74px;min-height:74px}.nk-title{font-size:25px}.nk-subtitle{font-size:12px}.floating-lang{top:18px;right:18px}.floating-lang .lang-btn{color:#07172d;font-size:18px}.lang-options,#langOptions{width:72px;min-width:72px}.gallery-mini-btn{display:inline-flex}.upload-card{min-height:70px;padding:12px 14px;border-radius:16px}.upload-card-text strong,#scanTitle{font-size:16px}.upload-card-text span,#statusText{font-size:11px}.category-box,.category-panel,.creator-card,.ad-media-box,.mobile-hero-small{border-radius:16px}.ad-media-box{height:190px}#result,#result.grid{display:grid;grid-template-columns:1fr;gap:16px;width:100%;min-height:200px;padding:16px 0 60px;margin:0;visibility:visible;opacity:1}.card{border-radius:22px}.card img{height:210px}.card h3{font-size:18px}.modal-content,.ingredient-modal-content{padding:22px;border-radius:24px}.modal-content h1{font-size:28px}.modal-content h2{font-size:20px}}

/* =========================================================
   FINAL STABLE OVERRIDES - KEEP ONLY THIS FINAL BLOCK
========================================================= */

/* Footer */
.site-footer-note{
  display:block;
  width:100%;
  margin:4px 0 0;
  padding:0;
  text-align:center;
  color:#8a7b68;
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  opacity:.75;
}
.site-footer-note span{display:block;margin:0;padding:0;line-height:1.15}

/* Selected ingredients / subcategory active color */
.sub-btn.active,
.modal-ingredient-btn.active,
.category-grid button.active,
.category-btn.active{
  background:#ef6a1a !important;
  color:#fff !important;
  border-color:#ef6a1a !important;
}

/* Desktop layout stabilization */
@media (min-width:981px){
  #sidebar,
  .sidebar{
    width:360px;
    height:100vh;
    padding:14px 16px;
    overflow:hidden;
    background:var(--page-bg);
  }

  .sidebar-shell{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
    gap:8px;
    overflow:hidden;
  }

  .sidebar-main,
  .sidebar-top{
    flex:0 0 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    gap:6px;
    overflow:visible;
  }

  .nk-brand-card,
  .sidebar-brand,
  .brand-card{
    min-height:112px;
    padding:10px 14px;
    flex:0 0 auto;
  }

  .nk-logo,
  .brand-logo,
  .logo-shell .logo,
  .logo{
    width:74px;
    height:74px;
    min-width:74px;
    min-height:74px;
  }

  .nk-title,
  .brand-text h1,
  #sidebar h1,
  .sidebar h1{
    font-size:24px;
  }

  .upload-card,
  .scan-action,
  .upload{
    min-height:68px;
    padding:12px 14px;
  }

  .category-box,
  .category-panel{
    padding:12px;
  }

  .category-grid,
  .category-grid.collapsed{
    gap:6px;
  }

  .category-grid button,
  .category-btn{
    min-height:22px;
    padding:5px 9px;
    font-size:10.5px;
  }

  .mobile-only,
  .mobile-hero-big,
  .mobile-hero-small{
    display:none !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  .ad-media-box{
    height:clamp(160px, 24vh, 215px);
    margin:0;
    flex:0 0 auto;
  }

  .creator-card,
  .creator-panel,
  .creator-auth-card{
    padding:7px;
    margin:0;
    flex:0 0 auto;
  }

  .creator-tabs{height:30px;margin-bottom:5px}
  .creator-tab{height:22px}
  .creator-card input{height:25px;margin-bottom:4px}
  .creator-password-wrap{gap:5px}
  .creator-password-wrap button{height:25px}
  .creator-continue-btn{height:28px}

  .site-footer-note{
    flex:0 0 auto;
    margin-top:4px;
    margin-bottom:0;
    padding-bottom:0;
  }

  .content,
  #content{
    margin-left:360px;
    height:100vh;
    min-height:100vh;
    overflow:hidden;
  }

  .hero,
  .hero-bg,
  .hero-main-card,
  .hero-side-images{
    height:100%;
    overflow:hidden;
  }

  #result,
  #result.grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:24px !important;
    background:transparent !important;
  }
}

/* Mobile stabilization */
@media (max-width:980px){
  /* On the mobile home page, hide the desktop content so it cannot create bottom blank space */
  body:not(.show-recipes-page) #content{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  body.show-recipes-page #sidebar{
    display:none !important;
  }

  body.show-recipes-page #content{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    padding:12px !important;
    margin:0 !important;
    overflow:visible !important;
  }

  body.show-recipes-page #result,
  body.show-recipes-page #result.grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
    background:transparent !important;
    padding:12px 0 60px !important;
  }

  .floating-lang{
    top:18px !important;
    right:24px !important;
    z-index:999999 !important;
  }

  .floating-lang .lang-btn,
  .floating-lang #langBtn{
    color:#07172d !important;
    font-size:10px !important;
    transform:none !important;
  }

  .site-footer-note{
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    font-size:10px !important;
    min-height:0 !important;
    height:auto !important;
  }

  .site-footer-note span{
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
  }

  .mobile-hero-text .hero-badge-text{
    background:linear-gradient(135deg, rgba(255,140,66,.95), rgba(255,94,98,.95)) !important;
    color:#fff !important;
    box-shadow:0 10px 24px rgba(255,94,98,.28) !important;
  }

  .mobile-hero-text .hero-title-text{
    color:#fff !important;
    text-shadow:0 4px 18px rgba(0,0,0,.30),0 2px 6px rgba(0,0,0,.22) !important;
  }

  .mobile-hero-text .hero-desc-text{
    color:rgba(255,255,255,.92) !important;
    text-shadow:0 3px 12px rgba(0,0,0,.22) !important;
  }
}

.site-footer-note{
  height:auto !important;
  min-height:24px !important;
  line-height:1.25 !important;
  padding-bottom:4px !important;
  overflow:visible !important;
}

.site-footer-note span{
  display:block !important;
  line-height:1.25 !important;
}

@media (min-width:981px){

  #sidebar,
  .sidebar,
  .sidebar-shell{
    overflow: visible !important;
  }

  .sidebar-main{
    padding-bottom: 0px !important;
  }

  .site-footer-note{
    position: relative !important;
    z-index: 5 !important;
    margin-top: 0px !important;
    padding-bottom: 0px !important;
  }

}

@media (max-width:980px){

  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  #sidebar,
  .sidebar{
    width:100%;
    max-width:100%;
    padding-left:8px;
    padding-right:8px;
    box-sizing:border-box;
  }

  .sidebar-shell,
  .sidebar-main{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

}

@media (max-width:980px){

  .nk-brand-card{
    position:fixed !important;
    top:0 !important;
    left:8px !important;
    right:8px !important;
    width:auto !important;
    z-index:999998 !important;
  }

  .floating-lang{
    position:fixed !important;
    top:12px !important;
    right:14px !important;
    z-index:999999 !important;
  }

  #sidebar,
  .sidebar{
    padding-top:105px !important;
  }
}

@media (min-width:981px){

  .hero-content{
    top:auto !important;
    bottom:48px !important;
    left:48px !important;
    transform:none !important;
  }

}

@media (max-width:980px){

  #sidebar,
  .sidebar{
    padding-top:115px !important;
  }

  .mobile-hero-big{
    margin-top:8px !important;
  }

}

@media (max-width:980px){

  .nk-brand-card{
    border-radius:0 !important;
  }

}

@media (max-width:980px){

  .mobile-hero-big{
    margin-top:12px !important;
  }

}

/* CATEGORY HORIZONTAL COMPACT */

.category-grid,
.category-grid.collapsed{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:6px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding-bottom:4px !important;
  max-height:34px !important;
}

.category-grid button,
.category-btn{
  flex:0 0 auto !important;
  width:auto !important;
  min-height:28px !important;
  height:28px !important;
  padding:0 9px !important;
  border-radius:999px !important;
  font-size:10.5px !important;
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  white-space:nowrap !important;
}

.cat-icon{
  font-size:12px !important;
}

/* CATEGORY 2 COLUMN FINAL */

.category-grid,
.category-grid.collapsed{
  display:grid !important;
  grid-template-columns:repeat(2, 1fr) !important;
  gap:5px 7px !important;
}

.category-grid button,
.category-btn{
  width:100% !important;
  height:28px !important;
  min-height:28px !important;
  padding:0 8px !important;
  border-radius:999px !important;
  font-size:10.5px !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  white-space:nowrap !important;
}

.cat-icon{
  font-size:12px !important;
  flex:0 0 auto !important;
}

/* FORCE CATEGORY 2 COLUMNS */

#categoryGrid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px !important;
}

#categoryGrid .category-btn{
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  height:30px !important;
}

#categoryGrid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

#categoryGrid .category-btn{
  display:flex !important;
  width:100% !important;
  height:28px !important;
}

/* FOOTER INSIDE SIDEBAR FIX */

@media (min-width:981px){

  .sidebar,
  #sidebar{
    height:100vh !important;
    overflow:hidden !important;
  }

  .sidebar-shell{
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
  }

  .sidebar-main{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    gap:6px !important;
  }

  .site-footer-note{
    flex:0 0 auto !important;
    margin-top:4px !important;
    padding-bottom:4px !important;
    font-size:9px !important;
    line-height:1.15 !important;
  }

  .category-panel{
    padding:10px !important;
  }

  #categoryGrid .category-btn{
    height:25px !important;
    min-height:25px !important;
    font-size:10px !important;
  }

}

/* SIDEBAR CENTER ALIGN */

.sidebar,
#sidebar{
  text-align:center;
}

.sidebar .panel-title,
.sidebar .section-title,
.sidebar h1,
.sidebar h2,
.sidebar h3,
.sidebar p,
#appSubtitle,
.site-footer-note{
  text-align:center !important;
}

.manual,
.category-grid,
#categoryGrid{
  justify-content:center !important;
}

.manual input,
#manualInput{
  text-align:center !important;
}

.category-btn{
  justify-content:center !important;
}

.upload-card,
.scan-action,
.upload{
  text-align:center !important;
  align-items:center !important;
}

.upload-card-text{
  align-items:center !important;
  text-align:center !important;
}

/* CREATOR SIGNUP HEIGHT FIX */

.creator-card,
.creator-panel,
.creator-auth-card{
  min-height:178px !important;
}

.creator-card-text span{
  min-height:28px !important;
  display:block !important;
}

.creator-card input{
  height:28px !important;
}

.creator-continue-btn{
  height:32px !important;
}

/* COMPACT FOOTER */

.site-footer-note{
  font-size:8.5px !important;
  line-height:1 !important;
  min-height:0 !important;
  height:12px !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.site-footer-note span{
  display:inline !important;
  line-height:1 !important;
}

/* CREATOR CARD COMPACT */

.creator-card,
.creator-panel,
.creator-auth-card{
  padding:6px !important;
}

.creator-card-text strong{
  font-size:11px !important;
  line-height:1.05 !important;
  margin-bottom:1px !important;
}

.creator-card-text span{
  font-size:9.5px !important;
  line-height:1.05 !important;
  margin:1px 0 4px !important;
}

.creator-tabs{
  height:20px !important;
  margin-bottom:4px !important;
}

.creator-tab{
  height:20px !important;
  font-size:9px !important;
}

.creator-card input{
  height:23px !important;
  margin-bottom:3px !important;
  font-size:10px !important;
}

.creator-password-wrap button{
  height:15px !important;
  font-size:9px !important;
}

.creator-continue-btn{
  height:20px !important;
  font-size:10px !important;
}

/* CREATOR + FOOTER TEXT DARKER */

.creator-card-text strong,
#creatorCardTitle{
  color:#111827 !important;
}

.creator-card-text span,
#creatorCardDesc{
  color:#4b5563 !important;
  opacity:1 !important;
}

.site-footer-note{
  color:#5f5142 !important;
  opacity:1 !important;
}

/* SIDEBAR + HERO ALIGN / SAME BACKGROUND */

:root{
  --page-bg:#eef0f3;
}

body,
html,
.sidebar,
#sidebar,
.content,
#content{
  background:#eef0f3 !important;
}

@media (min-width:981px){

  #sidebar,
  .sidebar{
    padding:14px 8px !important;
  }

  .content,
  #content{
    padding:14px 14px 14px 14px !important;
  }

  .hero{
    height:calc(100vh - 36px) !important;
  }

}

.creator-card-text{
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}

#creatorCardTitle{
  font-size:9px !important;
  line-height:1 !important;
  margin:0 0 1px 0 !important;
  padding:0 !important;
}

#creatorCardDesc{
  font-size:7.5px !important;
  line-height:1 !important;
  margin:0 0 2px 0 !important;
  padding:0 !important;
}

.compact-creator-card{
  padding:5px !important;
 height:auto !important;
   min-height:auto !important;

}

.compact-creator-card .creator-tabs{
  height:24px !important;
  padding:3px !important;
  margin-bottom:3px !important;
}

.compact-creator-card .creator-tab{
  height:18px !important;
  font-size:8.5px !important;
}

.compact-creator-card .creator-card-text{
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}

.compact-creator-card #creatorCardTitle{
  display:block !important;
  font-size:9px !important;
  line-height:1 !important;
  margin:0 0 1px !important;
  padding:0 !important;
}

.compact-creator-card #creatorCardDesc{
  display:block !important;
  font-size:7.5px !important;
  line-height:1 !important;
  margin:0 0 3px !important;
  padding:0 !important;
}

.compact-creator-card input{
  height:22px !important;
  margin-bottom:3px !important;
  font-size:9.5px !important;
}

.compact-creator-card .creator-password-wrap{
  gap:4px !important;
}

.compact-creator-card .creator-password-wrap button{
  height:22px !important;
  font-size:8.5px !important;
}

.compact-creator-card .creator-continue-btn{
  height:24px !important;
  min-height:24px !important;
  font-size:9.5px !important;
  display:block !important;
}

.compact-creator-card{
  padding:5px !important;
}

.compact-creator-card .creator-tabs{
  height:24px !important;
  padding:3px !important;
  margin-bottom:3px !important;
}

.compact-creator-card .creator-tab{
  height:18px !important;
  font-size:8.5px !important;
}

.compact-creator-card .creator-card-text{
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}

.compact-creator-card #creatorCardTitle{
  display:block !important;
  font-size:9px !important;
  line-height:1 !important;
  margin:0 0 1px !important;
  padding:0 !important;
}

.compact-creator-card #creatorCardDesc{
  display:block !important;
  font-size:7.5px !important;
  line-height:1 !important;
  margin:0 0 3px !important;
  padding:0 !important;
}

.compact-creator-card input{
  height:22px !important;
  margin-bottom:3px !important;
  font-size:9.5px !important;
}

.compact-creator-card .creator-password-wrap{
  gap:4px !important;
}

.compact-creator-card .creator-password-wrap button{
  height:22px !important;
  font-size:8.5px !important;
}

.compact-creator-card .creator-continue-btn{
  height:24px !important;
  min-height:24px !important;
  font-size:9.5px !important;
  display:block !important;
}

.creator-card-text{
  padding:0 !important;
  margin:0 0 2px 0 !important;
  min-height:auto !important;
}

#creatorCardTitle{
  display:block !important;
  font-size:11px !important;
  line-height:1 !important;
  margin:0 !important;
  padding:0 !important;
}

#creatorCardDesc{
  display:block !important;
  font-size:7px !important;
  line-height:1 !important;
  margin:0 !important;
  padding:0 !important;
}

/* CREATOR CONTINUE FORCE FIX */

.creator-card,
.creator-panel,
.creator-auth-card,
.compact-creator-card{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  padding:5px !important;
}

.creator-continue-btn{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  height:24px !important;
  min-height:24px !important;
  margin-top:3px !important;
  position:relative !important;
  z-index:20 !important;
}

.creator-card input{
  height:21px !important;
  margin-bottom:2px !important;
}

.creator-password-wrap button{
  height:21px !important;
}

.creator-tabs{
  height:22px !important;
  margin-bottom:2px !important;
}

/* ARABIC RTL - KEEP HERO LAYOUT SAME */

html[dir="rtl"] .hero,
html[dir="rtl"] .hero-bg,
html[dir="rtl"] .hero-main-card,
html[dir="rtl"] .hero-side-images{
  direction:ltr !important;
}

html[dir="rtl"] .hero-content{
  direction:rtl !important;
  text-align:right !important;
}
.loading-recipes-box{
  width:100%;
  padding:28px;
  border-radius:22px;
  background:#fff;
  text-align:center;
  font-weight:900;
  box-shadow:0 14px 34px rgba(24,34,52,.08);
}

.loading-recipes-box span{
  display:block;
  margin-top:8px;
  font-size:13px;
  color:#6b7280;
}

 /* PREMIUM SINGLE RECIPE MODAL - FINAL */

.modal,
.ingredient-modal{
  background:rgba(15,23,42,.62) !important;
  backdrop-filter:blur(8px) !important;
}

.modal-content{
  width:min(500px, 92vw) !important;
  max-height:88vh !important;
  padding:10px !important;
  border-radius:28px !important;
  background:#fffaf3 !important;
  overflow-y:auto !important;
  box-shadow:0 40px 120px rgba(0,0,0,.38) !important;
}

.modal-content img{
  width:100% !important;
  height:250px !important;
  max-height:250px !important;
  object-fit:cover !important;
  border-radius:22px !important;
  margin:0 0 14px 0 !important;
}

.modal-content h1{
  font-size:24px !important;
  line-height:1.12 !important;
  margin:0 14px 8px !important;
  color:#07172d !important;
}

.modal-content .time{
  display:inline-flex !important;
  margin:0 14px 16px !important;
  padding:5px 10px !important;
  border-radius:999px !important;
  background:#eef6ec !important;
  color:#315c45 !important;
  font-size:12px !important;
  font-weight:900 !important;
}

.modal-content h2{
  font-size:18px !important;
  line-height:1.15 !important;
  margin:16px 14px 10px !important;
  color:#07172d !important;
}

.modal-content .ingredients{
  margin:0 14px 20px !important;
  gap:7px !important;
}

.modal-content .ingredients span{
  padding:5px 9px !important;
  font-size:10.5px !important;
  border-radius:999px !important;
  background:#eef6ec !important;
  color:#315c45 !important;
  font-weight:850 !important;
}

.modal-content p{
  font-size:14px !important;
  line-height:1.65 !important;
  margin:0 14px 18px !important;
  color:#243044 !important;
}

.close{
  top:18px !important;
  right:18px !important;
  width:36px !important;
  height:36px !important;
  background:#07172d !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(0,0,0,.25) !important;
}
.modal-content{
  max-height:88vh !important;
  overflow-y:auto !important;
}
.modal-content img{
  position:sticky !important;
  top:0 !important;
  z-index:2 !important;
}

@media (max-width: 768px){

  .hero-content{
    left:18px !important;
    right:auto !important;
    text-align:left !important;
    align-items:flex-start !important;
  }

  .hero-badge-text,
  .hero-title-text,
  .hero-desc-text{
    text-align:left !important;
  }

}
@media (max-width:768px){
  .mobile-hero-text .hero-badge-text{
    display:block !important;
    text-align:left !important;
    margin-left:0 !important;
    margin-right:auto !important;
    align-self:flex-start !important;
  }
}

@media (max-width:768px){
  .mobile-hero-text{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .mobile-hero-text .hero-badge-text{
    display:inline-flex !important;
    width:auto !important;
    max-width:fit-content !important;
    align-self:flex-start !important;
    padding:6px 10px !important;
  }
}

.favorite-btn{
  border:none;
  background:white;
  border-radius:50%;
  width:38px;
  height:38px;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.14);
}

.favorite-btn.active{
  transform:scale(1.08);
}

 

.continue-selecting-btn{
  border:none;
  background:linear-gradient(135deg,#f97316,#ea580c);
  color:white;
  padding:10px 12px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(249,115,22,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
}

.continue-selecting-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(249,115,22,.34);
}



.continue-selecting-btn:active{
  transform:scale(.98);
}

.continue-selecting-btn{
  border:none;
  background:#f97316;
  color:white;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  white-space:normal;
  line-height:1.2;
}

.tray-cancel-btn{
  border:1px solid #e5e7eb;
  background:white;
  color:#374151;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.selected-tray-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.selected-tray-header-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  flex-shrink:0;
}

.tray-cancel-btn{
  border:none;
  background:white;
  color:#182234;
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.continue-selecting-btn{
  width:calc(100% - 28px);
  margin:0 14px 10px;
  border:none;
  background:linear-gradient(135deg,#ff7a1a,#ef4f05);
  color:white;
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(239,79,5,.22);
}

@media(max-width:480px){
  .selected-tray-header h2{
    font-size:26px;
    line-height:1;
  }

  .selected-tray-header p{
    font-size:13px;
    line-height:1.25;
  }

  .tray-cancel-btn{
    padding:8px 12px;
    font-size:12px;
  }

  .continue-selecting-btn{
    font-size:12px;
    padding:9px 10px;
  }
}

.clear-selected-btn{
  margin-top:8px;
}

.selected-tray-box{
  overflow:hidden;
}

 

.selected-chip{
  background:#fff7ed !important;
  border:1px solid #fed7aa !important;
  border-radius:999px !important;
  padding:9px 12px !important;
  font-size:13px !important;
  font-weight:900 !important;
}

.continue-selecting-btn{
  width:auto !important;
  margin:0 !important;
  padding:9px 14px !important;
  font-size:12px !important;
  border-radius:999px !important;
  box-shadow:none !important;
}

.selected-tray-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  background:#fffaf3;
  border-top:1px solid #eadfce;
}

.clear-selected-btn{
  margin:0 !important;
  padding:9px 14px !important;
}

.selected-tray-confirm{
  padding:14px 18px 18px;
  background:white;
}
 

.selected-tray-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
  padding:14px 18px !important;
  background:#fffaf3 !important;
}

.continue-selecting-btn,
.clear-selected-btn{
  border:1px solid #e5e7eb !important;
  background:white !important;
  color:#374151 !important;
  padding:10px 14px !important;
  border-radius:999px !important;
  font-size:13px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  min-width:145px !important;
  box-shadow:none !important;
}

.continue-selecting-btn:hover,
.clear-selected-btn:hover{
  background:#f3f4f6 !important;
}

 

.selected-tray-actions{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:10px !important;
  padding:12px 18px !important;
  background:#fffaf3 !important;
  margin-top:auto !important;
}

.continue-selecting-btn,
.clear-selected-btn{
  border:1px solid #e5e7eb !important;
  background:white !important;
  color:#374151 !important;
  padding:9px 12px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  width:145px !important;
  min-height:40px !important;
  white-space:normal !important;
  line-height:1.15 !important;
  text-align:center !important;
  box-shadow:none !important;
}

.selected-tray-confirm{
  margin-top:auto !important;
}

.selected-tray-box{
  display:flex !important;
  flex-direction:column !important;
  min-height:680px !important;
}

 

.selected-tray-actions{
  margin-top:auto !important;
}

.selected-tray-confirm{
  margin-top:0 !important;
  padding:16px 18px 20px !important;
  background:white !important;
  border-top:1px solid #eadfce !important;
}

.selected-tray-box{
  display:flex !important;
  flex-direction:column !important;
  height:82vh !important;
  max-height:760px !important;
  overflow:hidden !important;
}

.selected-tray-header{
  flex-shrink:0 !important;
}

 

.selected-clear-bottom{
  flex-shrink:0 !important;
  margin:0 auto 10px !important;
}

.selected-tray-bottom{
  margin-top:auto !important;
  flex-shrink:0 !important;
  padding:16px 18px 20px !important;
  background:white !important;
  border-top:1px solid #eadfce !important;
}

.tray-bottom-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin-bottom:12px !important;
}

.selected-clear-bottom{
  margin:0 !important;
  border:1px solid #e5e7eb !important;
  background:#f9fafb !important;
  color:#374151 !important;
  padding:8px 12px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}

.tray-confirm{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 !important;
}

.signup-invite-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:18px;
}

.signup-invite-box{
  width:100%;
  max-width:420px;
  background:white;
  border-radius:28px;
  padding:28px;
  text-align:center;
  position:relative;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.signup-invite-close{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  background:#f3f4f6;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
}

.signup-invite-box h2{
  font-size:28px;
  margin:10px 0 12px;
}

.signup-invite-box p{
  color:#667085;
  font-weight:700;
  line-height:1.5;
  margin-bottom:22px;
}

.signup-main-btn,
.signup-guest-btn{
  width:100%;
  height:48px;
  border:none;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  margin-top:10px;
}

.signup-main-btn{
  background:#f97316;
  color:white;
}

.signup-guest-btn{
  background:#f3f4f6;
  color:#374151;
}

.user-menu{
  position:relative;
}

.user-menu-btn{
  border:none;
  background:#fff3e8;
  color:#9a3412;
  padding:9px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}

.user-menu-dropdown{
  display:none;
  position:absolute;
  right:0;
  top:44px;
  background:white;
  border:1px solid #eadfce;
  border-radius:16px;
  box-shadow:0 14px 35px rgba(0,0,0,.14);
  min-width:170px;
  overflow:hidden;
  z-index:9999;
}

.user-menu-dropdown a,
.user-menu-dropdown button{
  display:block;
  width:100%;
  padding:12px 14px;
  background:white;
  border:none;
  text-align:left;
  font-weight:800;
  color:#182234;
  text-decoration:none;
  cursor:pointer;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover{
  background:#fff7ed;
}

.user-menu.open .user-menu-dropdown{
  display:block;
}

.floating-lang{
  position:fixed !important;
  top:18px !important;
  right:18px !important;
  z-index:9999 !important;
  display:flex !important;
  flex-direction:column-reverse !important;
  align-items:flex-end !important;
  gap:8px !important;
}

 .floating-lang{
  position:fixed !important;
  top:18px !important;
  right:18px !important;
  z-index:9999 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

.lang-wrapper,
.user-menu{
  position:relative !important;
}

.lang-btn,
.user-menu-btn{
  border:none !important;
  background:#fff3e8 !important;
  color:#9a3412 !important;
  padding:9px 14px !important;
  border-radius:999px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  box-shadow:0 8px 20px rgba(0,0,0,.12) !important;
  height:40px !important;
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}

.lang-options,
.user-menu-dropdown{
  position:absolute !important;
  top:48px !important;
  right:0 !important;
  background:white !important;
  border:1px solid #eadfce !important;
  border-radius:16px !important;
  box-shadow:0 14px 35px rgba(0,0,0,.14) !important;
  min-width:160px !important;
  overflow:hidden !important;
  z-index:99999 !important;
}

.lang-options button,
.user-menu-dropdown a,
.user-menu-dropdown button{
  display:block !important;
  width:100% !important;
  padding:12px 14px !important;
  background:white !important;
  border:none !important;
  text-align:left !important;
  font-weight:800 !important;
  color:#182234 !important;
  text-decoration:none !important;
  cursor:pointer !important;
}

.lang-options button:hover,
.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover{
  background:#fff7ed !important;
}

@media (min-width:981px){

  body.show-recipes-page #content{
    height:100vh !important;
    overflow:hidden !important;
  }

  body.show-recipes-page #result{
    max-height:calc(100vh - 40px) !important;
    padding-bottom:90px !important;
  }

  .show-more-recipes-btn{
    grid-column:1 / -1 !important;
    justify-self:center !important;
    margin:20px auto 40px !important;
  }

}

@media (min-width:981px){

  body.show-recipes-page .hero,
  body.show-recipes-page .hero-bg,
  body.show-recipes-page .mobile-only,
  body.show-recipes-page .mobile-hero-big,
  body.show-recipes-page .mobile-hero-small{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
  }

  body.show-recipes-page #content{
    padding-top:0 !important;
    margin-top:0 !important;
  }

  body.show-recipes-page #result{
    margin-top:0 !important;
    padding-top:20px !important;
  }

}

.show-more-recipes-btn{
  display:block !important;
  margin:18px auto 40px !important;
  border:none !important;
  background:#f97316 !important;
  color:white !important;
  padding:13px 24px !important;
  border-radius:999px !important;
  font-weight:900 !important;
  cursor:pointer !important;
  position:relative !important;
  z-index:50 !important;
}

@media (min-width:981px){

  body.show-recipes-page #result{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:12px !important;
    padding:10px 18px !important;
  }

  body.show-recipes-page .recipe-card{
    min-height:0 !important;
  }

  body.show-recipes-page .recipe-card-image-wrap img{
    height:115px !important;
    object-fit:cover !important;
  }

  body.show-recipes-page .recipe-card-body{
    padding:10px !important;
  }

  body.show-recipes-page .recipe-card-body h3{
    font-size:14px !important;
    line-height:1.15 !important;
    margin:0 0 5px !important;
  }

  body.show-recipes-page .recipe-time,
  body.show-recipes-page .ingredients-count{
    font-size:12px !important;
    margin:4px 0 !important;
  }

  body.show-recipes-page .recipe-ingredients{
    max-height:28px !important;
    overflow:hidden !important;
  }

  .show-more-recipes-btn{
  display:block !important;
  margin:18px auto 32px !important;
  border:none !important;
  background:#f97316 !important;
  color:white !important;
  padding:13px 24px !important;
  border-radius:999px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}
}

.recipe-result-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:18px auto 34px;
}

.recipe-back-btn,
.show-more-recipes-btn{
  border:none;
  border-radius:999px;
  padding:13px 22px;
  font-weight:900;
  cursor:pointer;
}

.recipe-back-btn{
  background:#f3f4f6;
  color:#374151;
}

.show-more-recipes-btn{
  background:#f97316;
  color:white;
}

.recipe-action-error{
  color:#8b2f1f;
  font-size:13px;
  font-weight:800;
}

@media(max-width:768px){
  .recipe-result-actions{
    flex-direction:column;
  }

  .recipe-back-btn,
  .show-more-recipes-btn{
    width:100%;
    max-width:280px;
  }
}

@media (min-width:981px){

  body.show-recipes-page #content{
    min-height:100vh !important;
    height:auto !important;
    overflow:visible !important;
    padding:18px !important;
  }

  body.show-recipes-page #result{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:14px !important;
    padding:0 !important;
    margin:0 !important;
  }

  body.show-recipes-page .recipe-card{
    height:265px !important;
    overflow:hidden !important;
  }

  body.show-recipes-page .recipe-card-image-wrap img{
    height:120px !important;
    object-fit:cover !important;
  }

  body.show-recipes-page .recipe-card-body{
    padding:10px 12px !important;
  }

  body.show-recipes-page .recipe-card-body h3{
    font-size:15px !important;
    line-height:1.15 !important;
    margin:0 0 6px !important;
  }

  body.show-recipes-page .recipe-time,
  body.show-recipes-page .ingredients-count{
    font-size:12px !important;
    margin:4px 0 !important;
  }

  body.show-recipes-page .recipe-ingredients{
    max-height:32px !important;
    overflow:hidden !important;
  }

  .recipe-result-actions{
    display:flex !important;
    justify-content:center !important;
    gap:12px !important;
    margin:16px auto 0 !important;
  }
}

.recipe-result-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:18px auto 34px;
}

.recipe-back-btn,
.recipe-next-btn{
  border:none;
  border-radius:999px;
  padding:13px 22px;
  font-weight:900;
  cursor:pointer;
}

.recipe-back-btn{
  background:#f3f4f6;
  color:#374151;
}

.recipe-next-btn{
  background:#f97316;
  color:white;
}

.recipe-page-info{
  font-weight:900;
  color:#374151;
}

@media (min-width:981px){

  body.show-recipes-page #result{
    grid-template-columns:repeat(3, 1fr) !important;
    gap:22px !important;
    padding:24px 34px 10px !important;
  }

  body.show-recipes-page .recipe-card{
    min-height:310px !important;
  }

  body.show-recipes-page .recipe-card-image-wrap img{
    height:175px !important;
    object-fit:cover !important;
  }

  body.show-recipes-page .recipe-card-body{
    padding:16px !important;
  }

  body.show-recipes-page .recipe-card-body h3{
    font-size:18px !important;
    line-height:1.25 !important;
  }

  .recipe-result-actions{
    margin-top:18px !important;
  }
}

@media (min-width:981px){

  body.show-recipes-page #result{
    grid-template-columns:repeat(3, 1fr) !important;
    gap:22px !important;
    padding:24px 34px 0 !important;
  }

  body.show-recipes-page .recipe-card{
    height:380px !important;
  }

  body.show-recipes-page .recipe-card-image-wrap img{
    height:225px !important;
    object-fit:cover !important;
  }

  body.show-recipes-page .recipe-card-body{
    padding:18px !important;
  }

  body.show-recipes-page .recipe-card-body h3{
    font-size:19px !important;
    line-height:1.25 !important;
  }

  .recipe-result-actions{
    margin:22px auto 0 !important;
  }
}

.user-menu-dropdown a,
.user-menu-dropdown button{
  height:44px !important;
  min-height:44px !important;
  padding:0 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  font-size:14px !important;
  line-height:1 !important;
  font-weight:800 !important;
  font-family:Arial, sans-serif !important;
  box-sizing:border-box !important;
}

.user-menu-dropdown{
  min-width:190px !important;
}
 
.custom-upload-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:10px;
  background:#f3f4f6;
  border:1px solid #d1d5db;
  cursor:pointer;
  font-weight:700;
  color:#374151;
}

.custom-upload-btn:hover{
  background:#e5e7eb;
}

.selected-file-name{
  margin-left:10px;
  font-size:14px;
  color:#6b7280;
}


@media(max-width:768px){

  .floating-lang{
    position:fixed !important;
    top:78px !important;
    left:18px !important;
    right:18px !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    z-index:99999 !important;
  }

  .lang-wrapper{
  order:1 !important;
}

.user-menu{
  order:2 !important;
}
  .user-menu-btn,
  .lang-btn{
    height:32px !important;
    padding:6px 10px !important;
    font-size:12px !important;
    border-radius:999px !important;
    box-shadow:0 6px 16px rgba(0,0,0,.12) !important;
  }

  .lang-options{
    top:38px !important;
    right:0 !important;
  }

  .user-menu-dropdown{
    top:38px !important;
    left:0 !important;
    right:auto !important;
  }
}

@media(max-width:768px){

  .floating-lang{
    position:fixed !important;
    top:92px !important;
    left:34px !important;
    right:34px !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    z-index:99999 !important;
  }

  .lang-btn,
  .user-menu-btn{
    background:transparent !important;
    box-shadow:none !important;
    border:none !important;
    padding:0 !important;
    height:auto !important;
    font-size:12px !important;
    color:#6b7280 !important;
    font-weight:800 !important;
  }

  .lang-wrapper{
    order:1 !important;
  }

  .user-menu{
    order:2 !important;
  }

}

@media(max-width:768px){

  .lang-options{
    background:white !important;
    border:1px solid #eadfce !important;
    border-radius:14px !important;
    box-shadow:0 14px 35px rgba(0,0,0,.16) !important;
    overflow:hidden !important;
  }

  .lang-options button{
    display:block !important;
    width:100% !important;
    background:white !important;
    color:#182234 !important;
    padding:10px 14px !important;
    font-size:13px !important;
    font-weight:900 !important;
    text-align:left !important;
  }
}

@media(max-width:768px){

  .floating-lang{
    left:22px !important;
    right:22px !important;
  }

  .lang-options{
    left:0 !important;
    right:auto !important;
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
  }

  .lang-options button{
    width:72px !important;
    min-width:72px !important;
    padding:8px 0 !important;
    text-align:center !important;
    font-size:12px !important;
  }

  .user-menu-dropdown{
    right:0 !important;
    left:auto !important;
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
  }

  .user-menu-dropdown a,
  .user-menu-dropdown button{
    width:100% !important;
    padding:10px 12px !important;
    font-size:12px !important;
    white-space:normal !important;
    line-height:1.2 !important;
  }
}

@media(max-width:768px){
  .mobile-hero-text .hero-title-text,
  .hero-content .hero-title-text{
    max-width:220px !important;
    white-space:normal !important;
    line-height:1.08 !important;
    font-size:28px !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
}

@media(min-width:981px){

  .hero-main-img{
    filter:none !important;
    opacity:1 !important;
    mix-blend-mode:normal !important;
  }

  .hero-dark{
    background:rgba(0,0,0,.18) !important;
  }

}

.how-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999999;
  padding:18px;
}

.how-box{
  width:100%;
  max-width:440px;
  background:white;
  border-radius:28px;
  padding:28px;
  position:relative;
  box-shadow:0 25px 80px rgba(0,0,0,.25);
}

.how-close{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  background:#f3f4f6;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:20px;
  cursor:pointer;
}

.how-box h2{
  margin:10px 0 18px;
  font-size:26px;
}

.how-steps p{
  margin:10px 0;
  font-weight:800;
  color:#374151;
  line-height:1.45;
}

.how-start-btn{
  width:100%;
  margin-top:18px;
  height:48px;
  border:none;
  border-radius:999px;
  background:#f97316;
  color:white;
  font-weight:900;
  cursor:pointer;
}

.lang-options{
  width:92px !important;
  min-width:92px !important;
  max-width:92px !important;
}

.lang-options button{
  width:100% !important;
  padding:9px 10px !important;
  font-size:13px !important;
  text-align:left !important;
  white-space:nowrap !important;
}

.lang-options{
  width:94px !important;
  min-width:94px !important;
  max-width:94px !important;
}

.lang-options button{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  width:100% !important;
  padding:9px 10px !important;
  font-size:13px !important;
  font-weight:900 !important;
  text-align:left !important;
  white-space:nowrap !important;
}
.lang-options button img{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:cover;
  margin-right:7px;
}

.lang-options button{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}

.lang-btn{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-btn img{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:cover;
}


.lang-options button{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

.lang-options button img{
  width:18px;
  height:18px;
  border-radius:50%;
  object-fit:cover;
}

.how-more-info-link{
  display:block;
  text-align:center;
  margin-top:14px;
  color:#9a3412;
  font-weight:900;
  text-decoration:none;
}

.how-more-info-link:hover{
  text-decoration:underline;
}

@media(max-width:980px){
  body.hide-mobile-top-menu .floating-lang{
    display:none !important;
  }
}

.signup-invite-modal{
  z-index:9999999 !important;
}

.signup-invite-box{
  z-index:10000000 !important;
  position:relative !important;
}

.signup-input{
  width:100%;
  height:46px;
  border:1px solid #eadfce;
  border-radius:14px;
  padding:0 14px;
  margin-top:10px;
  font-size:14px;
  font-weight:800;
  outline:none;
  background:#fffaf3;
  color:#182234;
}

.creator-auth-tabs{
  display:flex;
  gap:8px;
  margin:16px 0 8px;
  background:#f3f4f6;
  padding:5px;
  border-radius:999px;
}

.creator-auth-tabs button{
  flex:1;
  border:none;
  border-radius:999px;
  padding:9px 10px;
  font-weight:900;
  cursor:pointer;
  background:transparent;
  color:#6b7280;
}

.creator-auth-tabs button.active{
  background:white;
  color:#f97316;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.creator-password-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

.creator-password-wrap .signup-input{
  flex:1;
}

.creator-password-wrap button{
  margin-top:10px;
  height:46px;
  border:none;
  border-radius:14px;
  padding:0 12px;
  background:#f3f4f6;
  color:#374151;
  font-weight:900;
  cursor:pointer;
}

.signup-invite-box{
  max-width:430px;
}

 .signup-invite-box{
  width:min(92vw,430px);
  border-radius:24px;
  padding:24px;
  background:#fff;
  box-shadow:0 25px 60px rgba(0,0,0,.18);
}

.signup-main-btn{
  width:100%;
  height:48px;
  border:none;
  border-radius:14px;
  background:#f97316;
  color:#fff;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  margin-top:14px;
}

.signup-main-btn:hover{
  transform:translateY(-1px);
}

.signup-guest-btn{
  width:100%;
  height:44px;
  border:none;
  border-radius:14px;
  background:#f3f4f6;
  color:#374151;
  font-weight:800;
  cursor:pointer;
  margin-top:10px;
}

#signupInviteTitle{
  margin-bottom:8px;
  text-align:center;
}

#signupInviteDesc{
  text-align:center;
  color:#6b7280;
  line-height:1.5;
  margin-bottom:14px;
}

.nk-mini-card{
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:8px;
  margin:8px 0 10px;
  padding:10px;
  border-radius:16px;
  background:#fff;
  border:1px solid #f0e4d5;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}

.nk-mini-icon{
  width:34px;
  height:34px;
  border-radius:10px;
  font-size:17px;
}

.nk-mini-content h4{
  font-size:12px;
  line-height:1.15;
}

.nk-mini-content p{
  font-size:10px;
  line-height:1.25;
}

.nk-mini-card button{
  padding:7px 10px;
  font-size:10px;
  white-space:nowrap;
}

#categoryGrid .category-btn{
  min-height:28px !important;
  font-size:12px !important;
  font-weight:900 !important;
  padding:8px 6px !important;
  border-radius:15px !important;
}

#categoryGrid{
  gap:8px !important;
}

@media(max-width:768px){
  .mobile-hero-small img{
    width:100% !important;
    height:auto !important;
    object-fit:contain !important;
  }

  .mobile-hero-small{
    height:auto !important;
  }

  @media(max-width:768px){
  .mobile-hero-small img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
}
}

.mobile-tip-card{
  display:none;
}

.mobile-feature-strip{
  display:none;
}

@media(max-width:768px){
  .mobile-feature-strip{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin:14px 0;
  }

  .mobile-feature-strip div{
    background:linear-gradient(135deg,#fff7ed,#ffffff);
    border:1px solid #eadfce;
    border-radius:16px;
    padding:10px 8px;
    text-align:center;
    box-shadow:0 8px 18px rgba(0,0,0,.05);
  }

  .mobile-feature-strip strong{
    display:block;
    font-size:12px;
    color:#182234;
    margin-bottom:4px;
  }

  .mobile-feature-strip span{
    display:block;
    font-size:10px;
    color:#6b7280;
    font-weight:800;
    line-height:1.25;
  }
}

.mobile-hero-small{
  aspect-ratio:1/1 !important;
}

.mobile-hero-small{
  position:relative;
  overflow:hidden;
}

.mobile-hero-small-text{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:2;
  color:white;
}

.mobile-hero-small::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,.15),
    transparent
  );
}

.mobile-hero-small-text strong{
  display:block;
  font-size:20px;
  font-weight:900;
  margin-bottom:4px;
}

.mobile-hero-small-text span{
  display:block;
  font-size:13px;
  line-height:1.4;
  font-weight:600;
}

@media(min-width:981px){

  .nk-mini-card{
  margin:6px 0 8px;
}

.site-footer-note{
  margin-top:6px;
  padding-top:0;
}
}

@media(min-width:981px){

  #sidebar,
  .sidebar-shell{
    min-height:auto !important;
    height:auto !important;
  }

  .sidebar-main{
    flex:unset !important;
  }

  .site-footer-note{
    margin-top:6px !important;
    margin-bottom:0 !important;
    padding-bottom:0 !important;
  }
}


.join-area{
  margin-top:5px;
  padding:0;
  box-sizing:border-box;
}

.nk-mini-card{
  width:100%;
  max-width:520px;
  margin:0 auto 14px auto;
}

.site-footer-note{
  width:100%;
  clear:both;
  display:block;
  padding:10px 12px;
  box-sizing:border-box;
  text-align:center;
  font-size:12px;
  background:#fffaf3;
}

#joinNiliBtn{
  width:120px !important;
  min-width:120px !important;
  max-width:120px !important;

  min-height:48px !important;

  background:#ef6a1a !important;
  color:#fff !important;

  border:none !important;
  border-radius:14px !important;

  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.15 !important;

  white-space:normal !important;
  text-align:center !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:6px 8px !important;
  box-sizing:border-box !important;
}

#joinNiliBtn{
  flex:0 0 120px !important;
}

.nk-mini-content{
  min-width:0 !important;
  flex:1 1 auto !important;
}

.nk-mini-card{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}

.nk-mini-icon{
  flex:0 0 34px !important;
}

#joinNiliTitle,
#joinNiliDesc{
  margin-right:8px !important;
}

.floating-lang{
  direction:ltr !important;
  flex-direction:row !important;
}

.floating-lang .user-menu{
  order:1 !important;
  direction:ltr !important;
}

.floating-lang .lang-wrapper{
  order:2 !important;
  direction:ltr !important;
}

.floating-lang .user-menu-dropdown,
.floating-lang .lang-options{
  direction:ltr !important;
}

@media(max-width:600px){

  .user-menu-dropdown{
    position:absolute !important;
    right:0 !important;
    left:auto !important;
    top:calc(100% + 8px) !important;
    width:190px !important;
    max-width:calc(100vw - 24px) !important;
    transform:none !important;
  }

  .lang-options{
    position:absolute !important;
    right:0 !important;
    left:auto !important;
    top:calc(100% + 8px) !important;
    width:120px !important;
    max-width:calc(100vw - 24px) !important;
    transform:none !important;
  }

}

@media(max-width:600px){

  #langOptions{
    width:55px !important;
    min-width:55px !important;
    max-width:55px !important;
    padding:5px !important;
    box-sizing:border-box !important;
  }

  #langOptions button{
    font-size:10px !important;
    padding:3px 5px !important;
    gap:4px !important;
  }

  #langOptions img{
    width:10px !important;
    height:10px !important;
  }

  #userMenuDropdown{
    width:85px !important;
    min-width:85px !important;
    max-width:85px !important;
    padding:5px !important;
    box-sizing:border-box !important;
  }

  #userMenuDropdown a,
  #userMenuDropdown button{
    font-size:10px !important;
    padding:5px 8px !important;
    white-space:nowrap !important;
  }
}

  #userMenuDropdown{

  /* SAĞ-SOL */
  right:auto !important;
  left:8 !important;

  /* YUKARI-AŞAĞI */
  top:100% !important;
  margin-top:6px !important;

  /* BOYUT */
  width:130px !important;
  min-width:130px !important;
  max-width:130px !important;

  /* İÇ BOŞLUK */
  padding:5px !important;

  /* KÖŞE */
  border-radius:14px !important;

  /* GÖLGE */
  box-shadow:0 10px 25px rgba(0,0,0,.15) !important;
}

#userMenuDropdown a,
#userMenuDropdown button{

  font-size:12px !important;
  padding:8px 12px !important;

}

#langOptions{

  /* SAĞ-SOL */
  right:0 !important;
  left:auto !important;

  /* YUKARI-AŞAĞI */
  top:100% !important;
  margin-top:6px !important;

  /* BOYUT */
  width:64px !important;
  min-width:64px !important;
  max-width:64px !important;

  /* İÇ BOŞLUK */
  padding:3px !important;

  /* KÖŞE */
  border-radius:14px !important;

  /* GÖLGE */
  box-shadow:0 10px 25px rgba(0,0,0,.15) !important;
}

#langOptions button{

  font-size:10px !important;
  padding:5px 6px !important;
  gap:4px !important;

}

#langOptions img{

  width:14px !important;
  height:14px !important;

}

.ingredient-modal-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
}

#ingredientModalTitle{
  font-size:22px;
  font-weight:900;
  color:#e67e22;
  display:flex;
  align-items:center;
  gap:8px;
}

@media (max-width:768px){

  #selectedTrayItems{
    display:block !important;
    height:130px !important;
    min-height:130px !important;
    max-height:130px !important;
    overflow-y:auto !important;
    flex:none !important;
  }

}


/* =========================================================
   HOMEPAGE REFRESH - BRIGHT EDITORIAL LUXURY
========================================================= */

:root{
  --page-bg:#f4efe6;
  --brand-bg:#fbf7f0;
  --card-bg:#fffdf9;
  --white:#fff;
  --green:#415748;
  --green-dark:#233229;
  --green-soft:#eef1eb;
  --green-border:#dde6dc;
  --orange:#b56a3c;
  --orange-dark:#95522a;
  --text:#223028;
  --muted:#756d62;
  --border:#e7dccd;
}

html,body{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(180deg, #faf7f2 0%, #f1eadd 100%);
  color:var(--text);
}

#sidebar,
.sidebar,
.content,
#content{
  background:transparent;
}

.floating-lang{
  top:26px;
  right:28px;
}

.lang-btn,
.user-menu-btn{
  background:rgba(255,252,248,.88) !important;
  backdrop-filter:blur(12px);
  border:1px solid rgba(120,96,71,.12) !important;
  box-shadow:0 14px 30px rgba(68,49,28,.06);
  border-radius:999px !important;
  padding:11px 14px !important;
  color:#66584b !important;
}

.lang-btn img{
  width:18px;
  height:18px;
}

.nk-brand-card,
.category-panel,
.ad-media-box,
.nk-mini-card,
.manual,
.upload-card{
  border:1px solid rgba(126,101,76,.11);
  box-shadow:0 14px 34px rgba(79,57,31,.06);
}

.nk-brand-card{
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(250,241,227,.96));
  border-radius:32px;
  min-height:152px;
  position:relative;
  overflow:hidden;
}

.nk-brand-card::after{
  content:"";
  position:absolute;
  inset:auto -30px -36px auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(216,120,61,.18), transparent 68%);
  pointer-events:none;
}

.nk-brand-inner{
  width:100%;
  justify-content:flex-start;
  gap:18px;
}

.nk-logo{
  width:88px;
  height:88px;
  min-width:88px;
  min-height:88px;
  padding:10px;
  border-radius:24px;
  background:rgba(255,255,255,.88);
  box-shadow:0 14px 30px rgba(96,73,48,.08);
}

.nk-brand-text{
  max-width:none;
}

.nk-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(216,120,61,.12);
  color:#a75a2d;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.nk-title{
  font-family:Georgia, "Times New Roman", serif;
  font-size:34px;
  font-weight:700;
  letter-spacing:-.04em;
  color:#223328;
}

.nk-subtitle{
  font-size:13px;
  color:#7d7469;
  font-weight:700;
}

.upload-card{
  min-height:112px;
  padding:18px 18px 16px;
  border-radius:24px;
  background:
    linear-gradient(145deg, rgba(255,250,244,.97), rgba(248,240,230,.98));
  color:var(--text);
  box-shadow:0 18px 40px rgba(82,56,30,.08);
}

.upload-card-text strong,
#scanTitle{
  color:#223328;
  font-size:22px;
  font-weight:900;
}

.upload-card-text span,
#statusText{
  color:#7d7469;
  font-size:13px;
}

.gallery-mini-btn{
  display:inline-flex;
  background:#fff;
  color:#8c5833;
  border:1px solid rgba(216,120,61,.18);
  box-shadow:0 10px 24px rgba(101,71,42,.08);
}

.analyze-progress{
  background:rgba(79,107,87,.12);
  height:8px;
}

#bar{
  background:linear-gradient(90deg, #e4a66f, #d8783d);
}

.manual{
  background:rgba(255,253,249,.8);
  border-radius:20px;
  padding:12px;
}

#manualInput{
  height:48px;
  border-radius:15px;
  background:#fff;
  border:1px solid rgba(111,122,115,.14);
  font-size:14px;
}

.manual button{
  width:48px;
  height:48px;
  border-radius:15px;
  background:linear-gradient(135deg, #d8783d, #b85f2b);
  box-shadow:0 12px 24px rgba(184,95,43,.18);
}

.category-panel{
  background:rgba(255,252,247,.9);
  border-radius:24px;
  padding:18px;
}

.panel-title{
  font-size:15px;
  color:#2b3a2f;
  margin-bottom:12px;
}

#categoryGrid .category-btn{
  background:#fff;
  color:#556257;
  border:1px solid rgba(111,122,115,.14);
  box-shadow:0 8px 18px rgba(70,56,40,.04);
  padding:9px 12px !important;
  font-size:12px !important;
}

#categoryGrid .category-btn:hover{
  border-color:rgba(216,120,61,.32);
  color:#8f552f;
}

.ad-media-box{
  height:205px;
  border-radius:28px;
}

.nk-mini-card{
  background:linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,241,230,.96));
  border-radius:22px;
  padding:14px 16px;
}

.nk-mini-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(216,120,61,.12);
  color:#b5612d;
}

#joinNiliBtn{
  background:linear-gradient(135deg, #d8783d, #b85f2b) !important;
  box-shadow:0 12px 24px rgba(184,95,43,.2);
}

.site-footer-note{
  background:transparent;
  color:#8e8376;
}

.hero{
  height:calc(100vh - 54px);
}

.hero-bg{
  grid-template-columns:minmax(0,1.72fr) minmax(300px,.72fr);
  gap:22px;
}

.hero-main-card{
  border-radius:38px;
  box-shadow:0 26px 70px rgba(74,54,31,.12);
}

.hero-main-img{
  transform:scale(1.02);
  filter:saturate(1.01) brightness(.98);
}

.hero-dark{
  background:
    linear-gradient(90deg, rgba(26,35,28,.44) 0%, rgba(26,35,28,.22) 22%, rgba(26,35,28,.06) 42%, rgba(26,35,28,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.16));
}

.hero-content{
  left:48px;
  top:30%;
  transform:translateY(-50%);
  max-width:360px;
  padding:0;
  border-radius:0;
  background:transparent;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
  color:#233228;
}

.hero-badge-text{
  background:rgba(255,250,244,.88);
  color:#8b5939;
  box-shadow:0 10px 24px rgba(72,52,31,.08);
  backdrop-filter:blur(8px);
}

.hero-kicker{
  margin:0 0 10px;
  max-width:320px;
  color:rgba(255,247,238,.82);
  font-size:12px;
  line-height:1.55;
  font-weight:700;
  text-shadow:0 2px 14px rgba(0,0,0,.22);
}

.hero-title-text{
  color:#fff8f1;
  font-family:Georgia, "Times New Roman", serif;
  font-size:48px;
  line-height:.96;
  font-weight:700;
  letter-spacing:-.055em;
  text-shadow:0 10px 28px rgba(0,0,0,.3);
}

.hero-desc-text{
  margin-top:12px;
  max-width:330px;
  color:rgba(255,247,239,.88);
  font-size:16px;
  font-weight:600;
  line-height:1.5;
  text-shadow:0 4px 16px rgba(0,0,0,.22);
}

.hero-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:16px;
  position:relative;
  z-index:7;
}

.hero-primary-btn,
.hero-secondary-btn{
  height:54px;
  border:none;
  border-radius:999px;
  padding:0 24px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
}

.hero-primary-btn{
  background:linear-gradient(135deg, #b56a3c, #95522a);
  color:#fff;
  box-shadow:0 14px 24px rgba(149,82,42,.22);
}

.hero-secondary-btn{
  background:rgba(255,251,247,.88);
  color:#425345;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 10px 22px rgba(69,56,40,.12);
}

.hero-floating-strip{
  position:absolute;
  left:34px;
  right:34px;
  bottom:22px;
  z-index:6;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.hero-strip-item{
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,251,247,.95);
  border:1px solid rgba(126,101,76,.11);
  box-shadow:0 14px 26px rgba(70,56,40,.06);
  backdrop-filter:blur(12px);
}

.hero-strip-label{
  display:block;
  margin-bottom:6px;
  color:#936040;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero-strip-item strong{
  display:block;
  color:#243329;
  font-size:15px;
  line-height:1.35;
}

.hero-side-images img{
  border-radius:32px;
  box-shadow:0 20px 54px rgba(75,57,35,.12);
}

.floating-lang{
  gap:10px;
}

.user-menu-btn{
  color:#745a47 !important;
  font-weight:900 !important;
}

.upload-card{
  min-height:100px;
}

.upload-card-text strong,
#scanTitle{
  font-size:20px;
  line-height:1.05;
}

.panel-title{
  font-size:14px;
}

.hero-main-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.14), transparent 20%),
    linear-gradient(90deg, rgba(18,28,22,.38) 0%, rgba(18,28,22,.14) 28%, rgba(18,28,22,0) 54%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.1));
}

.hero-badge-text{
  background:rgba(255,250,244,.88);
  color:#8b5939;
}

@media (min-width:981px){
  #sidebar,
  .sidebar{
    height:100vh !important;
    overflow:hidden !important;
    padding:12px 14px 10px !important;
  }

  .sidebar-shell{
    height:100% !important;
    min-height:0 !important;
    gap:8px !important;
    overflow:hidden !important;
  }

  .sidebar-main{
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding-right:4px !important;
    padding-bottom:10px !important;
    scrollbar-width:thin;
  }

  .sidebar-main::-webkit-scrollbar{
    width:6px;
  }

  .sidebar-main::-webkit-scrollbar-thumb{
    background:rgba(111,122,115,.24);
    border-radius:999px;
  }

  .nk-brand-card{
    min-height:110px !important;
    padding:10px 12px !important;
  }

  .nk-logo{
    width:68px !important;
    height:68px !important;
    min-width:68px !important;
    min-height:68px !important;
  }

  .nk-title{
    font-size:21px !important;
  }

  .nk-subtitle{
    font-size:11px !important;
  }

  .nk-eyebrow{
    margin-bottom:6px !important;
    font-size:10px !important;
    padding:6px 10px !important;
  }

  .upload-card{
    min-height:88px !important;
    padding:14px !important;
  }

  .upload-card-text strong,
  #scanTitle{
    font-size:17px !important;
  }

  .upload-card-text span,
  #statusText{
    font-size:12px !important;
  }

  .manual{
    padding:10px !important;
  }

  #manualInput,
  .manual button{
    height:42px !important;
  }

  .category-panel{
    padding:14px !important;
  }

  #categoryGrid{
    gap:6px !important;
  }

  #categoryGrid .category-btn{
    min-height:0 !important;
    padding:7px 9px !important;
    font-size:11px !important;
  }

  .ad-media-box{
    height:132px !important;
    min-height:132px !important;
    border-radius:22px !important;
  }

  .join-area{
    margin-top:auto !important;
    padding-top:8px !important;
    flex:0 0 auto !important;
  }

  .nk-mini-card{
    margin:0 auto 0 auto !important;
    padding:10px 12px !important;
  }

  .site-footer-note{
    margin-top:4px !important;
    padding:4px 8px 10px !important;
    font-size:10px !important;
    flex:0 0 auto !important;
  }

  #categoryGrid .category-btn{
    white-space:normal !important;
    line-height:1.15 !important;
    min-height:34px !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }
}

@media(max-width:1200px){
  .hero-title-text{
    font-size:40px;
  }

  .hero-floating-strip{
    grid-template-columns:1fr;
    left:24px;
    right:24px;
    bottom:20px;
  }

  .hero-content{
    max-width:320px;
    padding:0;
  }
}

@media(max-width:980px){
  html,body{
    background:linear-gradient(180deg, #fbf7f1 0%, #f5efe6 100%);
  }

  .floating-lang{
    top:18px !important;
  }

  .nk-brand-card{
    min-height:136px;
    border-radius:26px;
  }

  .nk-eyebrow{
    margin-bottom:8px;
    font-size:10px;
  }

  .nk-title{
    font-size:29px;
  }

  .mobile-hero-big{
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 22px 44px rgba(74,54,31,.12);
  }

  .mobile-hero-big::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(30,38,32,.38));
  }

  .mobile-hero-text{
    z-index:3;
  }

  .mobile-hero-text .hero-badge-text{
    background:rgba(255,255,255,.82);
    color:#9a5c32;
  }

  .mobile-hero-text .hero-title-text{
    color:#fff9f1;
    font-family:Georgia, "Times New Roman", serif;
    text-shadow:0 10px 24px rgba(0,0,0,.2);
  }

  .mobile-hero-text .hero-desc-text{
    color:rgba(255,250,244,.92);
  }

  .upload-card{
    min-height:96px;
    border-radius:20px;
  }

  .upload-card-text strong,
  #scanTitle{
    font-size:18px;
  }

  .manual,
  .category-panel,
  .ad-media-box,
  .mobile-hero-small{
    border-radius:20px;
  }

  .mobile-feature-strip div{
    background:rgba(255,253,249,.9);
    border:1px solid rgba(140,112,79,.12);
  }
}

/* =========================================================
   HOMEPAGE REBUILD V2 - QUIET LUXURY DESKTOP
========================================================= */

@media (min-width:981px){
  html,body{
    background:
      radial-gradient(circle at top right, rgba(210,171,120,.14), transparent 28%),
      radial-gradient(circle at top left, rgba(255,255,255,.94), transparent 32%),
      linear-gradient(180deg, #faf6ef 0%, #f2ebdf 100%) !important;
  }

  .floating-lang{
    top:42px !important;
    right:54px !important;
    z-index:120 !important;
  }

  #content,
  .content{
    margin-left:0 !important;
    min-height:auto !important;
    height:auto !important;
    padding:22px 28px 56px !important;
    overflow:visible !important;
  }

  #sidebar,
  .sidebar{
    position:fixed !important;
    top:98px !important;
    right:36px !important;
    left:auto !important;
    width:332px !important;
    height:calc(100vh - 132px) !important;
    padding:18px 16px 14px !important;
    background:linear-gradient(180deg, rgba(255,251,246,.98), rgba(248,241,231,.98)) !important;
    border:1px solid rgba(124,95,67,.14) !important;
    border-radius:30px !important;
    box-shadow:0 24px 70px rgba(70,50,28,.16) !important;
    z-index:70 !important;
    overflow:hidden !important;
  }

  .sidebar-shell{
    height:100% !important;
    gap:14px !important;
    overflow:hidden !important;
  }

  .sidebar-main{
    flex:1 1 auto !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding-right:4px !important;
    padding-bottom:10px !important;
    gap:12px !important;
  }

  .sidebar-main::-webkit-scrollbar{
    width:6px;
  }

  .sidebar-main::-webkit-scrollbar-thumb{
    background:rgba(120,98,71,.18);
    border-radius:999px;
  }

  .nk-brand-card{
    min-height:auto !important;
    padding:0 !important;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    border-radius:0 !important;
  }

  .nk-brand-card::after{
    display:none !important;
  }

  .nk-brand-inner{
    gap:12px !important;
    align-items:center !important;
  }

  .nk-logo{
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    padding:8px !important;
    border-radius:18px !important;
    box-shadow:0 10px 18px rgba(86,63,34,.08) !important;
  }

  .nk-eyebrow{
    font-size:9px !important;
    padding:5px 10px !important;
    margin-bottom:6px !important;
    background:rgba(181,106,60,.08) !important;
    color:#8f603e !important;
  }

  .nk-title{
    font-size:24px !important;
    line-height:1 !important;
    color:#2b241d !important;
  }

  .nk-subtitle{
    font-size:11px !important;
    color:#7a7064 !important;
  }

  .upload-card{
    min-height:auto !important;
    padding:20px 18px !important;
    border-radius:24px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,245,237,.96)) !important;
    border:1px dashed rgba(188,149,103,.34) !important;
    box-shadow:none !important;
    align-items:center !important;
    text-align:center !important;
  }

  .upload-card-text{
    align-items:center !important;
  }

  .upload-card-text strong,
  #scanTitle{
    font-family:Georgia, "Times New Roman", serif !important;
    font-size:27px !important;
    line-height:1.08 !important;
    font-weight:500 !important;
    color:#2f261f !important;
  }

  .upload-card-text span,
  #statusText{
    max-width:228px !important;
    color:#7e7367 !important;
    font-size:14px !important;
    line-height:1.45 !important;
    font-weight:600 !important;
  }

  .gallery-mini-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin-top:10px !important;
    padding:12px 18px !important;
    border-radius:18px !important;
    background:#fff !important;
    color:#374137 !important;
    border:1px solid rgba(184,151,110,.22) !important;
    box-shadow:none !important;
  }

  .analyze-progress{
    width:100% !important;
    margin-top:12px !important;
  }

  .manual{
    padding:0 !important;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
  }

  #manualInput{
    height:50px !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.9) !important;
    border:1px solid rgba(124,95,67,.14) !important;
  }

  .manual button{
    width:50px !important;
    height:50px !important;
    border-radius:18px !important;
    background:linear-gradient(135deg, #b56a3c, #95522a) !important;
  }

  .category-panel{
    padding:16px !important;
    border-radius:24px !important;
    background:rgba(255,255,255,.68) !important;
    border:1px solid rgba(124,95,67,.1) !important;
    box-shadow:none !important;
  }

  .panel-title{
    text-align:center !important;
    font-size:14px !important;
    color:#332a23 !important;
  }

  #categoryGrid{
    gap:8px !important;
  }

  #categoryGrid .category-btn{
    min-height:38px !important;
    padding:8px 12px !important;
    border-radius:999px !important;
    background:rgba(255,252,247,.96) !important;
    border:1px solid rgba(124,95,67,.12) !important;
    box-shadow:none !important;
    color:#4d5148 !important;
    font-size:11px !important;
    font-weight:800 !important;
  }

  .ad-media-box{
    height:122px !important;
    min-height:122px !important;
    border-radius:22px !important;
    box-shadow:none !important;
  }

  .join-area{
    margin-top:auto !important;
    padding-top:4px !important;
  }

  .nk-mini-card{
    background:rgba(255,255,255,.78) !important;
    border:1px solid rgba(124,95,67,.1) !important;
    box-shadow:none !important;
    border-radius:22px !important;
  }

  #joinNiliBtn{
    background:linear-gradient(135deg, #b56a3c, #95522a) !important;
    box-shadow:none !important;
  }

  .site-footer-note{
    padding:4px 8px 0 !important;
    color:#8d8071 !important;
  }

  .hero{
    height:640px !important;
    margin-right:382px !important;
  }

  .hero-bg{
    grid-template-columns:1fr !important;
    height:100% !important;
  }

  .hero-side-images{
    display:none !important;
  }

  .hero-main-card{
    position:relative !important;
    border-radius:34px !important;
    overflow:hidden !important;
    box-shadow:0 28px 70px rgba(47,31,15,.16) !important;
    background:#181811 !important;
  }

  .hero-main-img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    transform:none !important;
    filter:saturate(.98) brightness(.88) !important;
  }

  .hero-dark{
    background:
      linear-gradient(90deg, rgba(15,18,12,.92) 0%, rgba(15,18,12,.8) 24%, rgba(15,18,12,.42) 46%, rgba(15,18,12,.06) 67%, rgba(15,18,12,0) 100%) !important;
  }

  .hero-main-card::after{
    background:
      radial-gradient(circle at 22% 18%, rgba(123,93,44,.18), transparent 18%),
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.12)) !important;
  }

  .hero-topbar{
    position:absolute;
    top:22px;
    left:34px;
    right:34px;
    z-index:8;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
  }

  .hero-branding{
    display:flex;
    align-items:center;
    gap:10px;
    color:#f5edde;
  }

  .hero-brand-mark{
    color:#c59a4f;
    font-size:15px;
  }

  .hero-brand-name{
    font-family:Georgia, "Times New Roman", serif;
    font-size:20px;
    letter-spacing:-.03em;
  }

  .hero-nav{
    display:flex;
    align-items:center;
    gap:28px;
  }

  .hero-nav a{
    position:relative;
    color:rgba(248,240,228,.86);
    text-decoration:none;
    font-size:14px;
    font-weight:500;
  }

  .hero-nav a.active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-10px;
    height:2px;
    border-radius:999px;
    background:#c59a4f;
  }

  .hero-content{
    top:52% !important;
    left:56px !important;
    max-width:420px !important;
    z-index:9 !important;
  }

  .hero-badge-text{
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:0 !important;
    margin-bottom:16px !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#c9a45b !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    font-size:13px !important;
    letter-spacing:.16em !important;
    text-transform:uppercase !important;
  }

  .hero-title-text{
    font-size:82px !important;
    line-height:.92 !important;
    color:#f8f1e3 !important;
    font-weight:500 !important;
    letter-spacing:-.055em !important;
    text-shadow:none !important;
  }

  .hero-kicker{
    display:none !important;
  }

  .hero-desc-text{
    margin-top:18px !important;
    max-width:380px !important;
    color:rgba(244,235,221,.88) !important;
    font-size:17px !important;
    line-height:1.55 !important;
    font-weight:500 !important;
    text-shadow:none !important;
  }

  .hero-stats{
    display:flex;
    align-items:center;
    gap:22px;
    margin-top:30px;
    color:#e8d4a8;
  }

  .hero-stat-item{
    display:flex;
    flex-direction:column;
    gap:4px;
  }

  .hero-stat-item strong{
    font-size:42px;
    font-weight:500;
    font-family:Georgia, "Times New Roman", serif;
    line-height:1;
  }

  .hero-stat-item span{
    font-size:14px;
    color:rgba(244,235,221,.78);
  }

  .hero-stat-divider{
    width:1px;
    height:48px;
    background:rgba(221,198,149,.3);
  }

  .hero-actions{
    position:absolute !important;
    right:-356px !important;
    top:140px !important;
    margin-top:0 !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    width:292px !important;
    display:none !important;
  }

  .hero-primary-btn,
  .hero-secondary-btn{
    width:100% !important;
    height:50px !important;
    border-radius:18px !important;
    font-size:15px !important;
  }

  .hero-floating-strip{
    left:34px !important;
    right:34px !important;
    bottom:26px !important;
    display:flex !important;
    align-items:center !important;
    gap:14px !important;
    overflow:hidden !important;
  }

  .hero-strip-item{
    min-width:0 !important;
    flex:1 1 0 !important;
    padding:14px 16px !important;
    border-radius:18px !important;
    background:rgba(255,249,241,.95) !important;
    border:1px solid rgba(194,163,122,.16) !important;
    box-shadow:0 12px 24px rgba(59,41,19,.09) !important;
  }

.hero-strip-item strong{
    font-size:14px !important;
    line-height:1.35 !important;
  }

  #result{
    margin-right:382px !important;
    padding:24px 0 40px !important;
  }
}

html body .nk-title{
  font-family:"Sora",sans-serif!important;
  font-weight:600!important;
  display:inline-block!important;
  max-width:100%!important;
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  transform:scaleX(.9)!important;
  transform-origin:center center!important;
  color:#13202b!important;
}

@media(max-width:980px){
  html body .nk-title{
    font-size:28px!important;
    line-height:1!important;
    letter-spacing:-.04em!important;
    transform:scaleX(.88)!important;
  }
}
