:root,
[data-theme="dark"],
html.dark,
html.dark-mode,
body.dark-mode {
  --bg-main: #121214;
  --bg-page: #121214;
  --bg-card: #1e1e24;
  --bg-card-hover: #26262e;
  --bg-card-surface: #1e1e24;
  --bg-dropdown: #1e1e24;
  --bg-dropdown-header: #17171c;
  --bg-bullet: #1e1e24;
  --bg-body-outer: #121214;
  --bg-nav: rgba(18, 18, 20, 0.94);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-main: #f9fafb;
  --text-dark: #f9fafb;
  --text-body: #e5e7eb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --text-white: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-dropdown: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-dropdown: 0 16px 36px rgba(0, 0, 0, 0.7);
  --shadow-mobile-frame: 0 20px 48px -12px rgba(0, 0, 0, 0.75);

  --primary-orange: #DF7B3C;
  --primary-orange-hover: #FF8F4D;
  --primary-orange-light: rgba(223, 123, 60, 0.18);
  --primary-orange-glow: rgba(223, 123, 60, 0.4);
  --primary-orange-gradient: linear-gradient(135deg, #FF8F4D 0%, #DF7B3C 50%, #C86427 100%);

  --radius-header: 9999px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-dropdown: 18px;
  --radius-chip: 12px;

  --font-logo: 'Caveat', 'Great Vibes', 'Pacifico', cursive;
  --font-heading: 'Lora', 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"],
html.light-mode,
body.light-mode {
  --bg-main: #f4f5f7;
  --bg-page: #f4f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #ededf0;
  --bg-card-surface: #ffffff;
  --bg-dropdown: #ffffff;
  --bg-dropdown-header: #faf9f8;
  --bg-bullet: #faf9fa;
  --bg-body-outer: #f4f5f7;
  --bg-nav: rgba(255, 255, 255, 0.94);

  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-main: #1f2937;
  --text-dark: #1f2937;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  --border-subtle: #e5e7eb;
  --border-dropdown: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(223, 123, 60, 0.12);
  --shadow-dropdown: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-mobile-frame: 0 20px 48px -12px rgba(0, 0, 0, 0.15);

  --primary-orange: #DF7B3C;
  --primary-orange-hover: #C9682C;
  --primary-orange-light: #FBEFE7;
  --primary-orange-glow: rgba(223, 123, 60, 0.25);
  --primary-orange-gradient: linear-gradient(135deg, #E6884C 0%, #DF7B3C 50%, #D86F2E 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-body);
  background-color: var(--bg-main, #121214);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark-mode,
body.dark-mode,
[data-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] body,
html[data-theme="dark"] body,
html.dark body,
html.dark-mode body {
  background-color: #121214 !important;
}

[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"],
[data-theme="light"] body,
html[data-theme="light"] body,
html.light-mode body {
  background-color: #f3f4f6 !important;
}

.mobile-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  background-color: var(--bg-main, #121214);
}

body.dark-mode .mobile-wrapper,
html.dark-mode .mobile-wrapper,
html.dark .mobile-wrapper,
[data-theme="dark"] .mobile-wrapper,
.dark-mode .mobile-wrapper {
  background-color: #121214 !important;
}

[data-theme="light"] .mobile-wrapper {
  background-color: #f3f4f6 !important;
}

.mobile-screen {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 16px 18px 125px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-mobile-frame);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 767px) {
  .mobile-wrapper {
    padding: 0;
  }

  .mobile-screen {
    max-width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 14px 16px 120px 16px;
  }
}

.header-card {
  width: 100%;
  max-width: 1200px;
  background: var(--primary-orange-gradient) !important;
  border-radius: 9999px !important;
  padding: 8px 18px 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(223, 123, 60, 0.28);
  margin: 12px auto 20px auto;
  user-select: none;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-link:active .brand-logo-img {
  transform: scale(0.96);
}

.header-left-actions,
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-card .theme-toggle-btn,
.header-card .mobile-notif-btn,
.mobile-notif-btn {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  color: #ffffff !important;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-card .theme-toggle-btn:hover,
.header-card .mobile-notif-btn:hover,
.mobile-notif-btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.08);
}

.header-card .theme-toggle-btn:active,
.header-card .mobile-notif-btn:active,
.mobile-notif-btn:active {
  transform: scale(0.92);
}

.header-card .mobile-notif-btn svg,
.mobile-notif-btn svg {
  width: 20px;
  height: 20px;
  fill: #ffffff !important;
  color: #ffffff !important;
  display: block;
}

.nav-all-recipes-btn,
.nav-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav-all-recipes-btn:hover,
.nav-back-pill:hover {
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.nav-all-recipes-btn:active,
.nav-back-pill:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.2);
}

.nav-all-recipes-btn .nav-btn-icon,
.nav-back-pill svg {
  flex-shrink: 0;
  stroke: #FFFFFF;
}

@media (max-width: 767px) {
  .header-card {
    padding: 8px 14px 8px 18px;
    margin: 10px auto 16px auto;
    box-sizing: border-box;
    width: 100%;
    border-radius: 9999px !important;
  }

  .brand-logo-img {
    height: 30px;
    max-width: 125px;
  }

  .header-left-actions,
  .header-right-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-all-recipes-btn {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-all-recipes-btn .nav-btn-text {
    display: none;
  }

  .nav-all-recipes-btn .nav-btn-icon {
    width: 17px;
    height: 17px;
  }

  .header-card .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }

  .profile-avatar-btn .profile-avatar {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 380px) {
  .header-card {
    padding: 6px 10px 6px 14px;
    margin: 8px auto 14px auto;
    border-radius: 9999px !important;
  }

  .brand-logo-img {
    height: 26px;
    max-width: 110px;
  }

  .header-right-actions {
    gap: 4px;
  }

  .nav-all-recipes-btn {
    width: 31px;
    height: 31px;
  }

  .nav-all-recipes-btn .nav-btn-icon {
    width: 15px;
    height: 15px;
  }

  .header-card .theme-toggle-btn {
    width: 31px;
    height: 31px;
  }

  .profile-avatar-btn .profile-avatar {
    width: 31px;
    height: 31px;
  }
}

.profile-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.profile-avatar:active {
  transform: scale(0.95);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--primary-orange);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

.theme-toggle-btn svg {
  stroke: #9ca3af !important;
  fill: none !important;
}

[data-theme="light"] .theme-toggle-btn svg,
html.light-mode .theme-toggle-btn svg,
body.light-mode .theme-toggle-btn svg {
  stroke: #4b5563 !important;
  fill: none !important;
}

.theme-icon-moon {
  display: none !important;
}

.theme-icon-sun {
  display: block !important;
  stroke: #9ca3af !important;
}

[data-theme="light"] .theme-icon-sun,
html.light-mode .theme-icon-sun,
body.light-mode .theme-icon-sun {
  display: none !important;
}

[data-theme="light"] .theme-icon-moon,
html.light-mode .theme-icon-moon,
body.light-mode .theme-icon-moon {
  display: block !important;
  stroke: #4b5563 !important;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-dropdown);
  border-radius: 16px;
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-user-header {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-user-email {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu-item:hover {
  background: var(--bg-card-hover);
  color: var(--primary-orange);
}

.profile-menu-item.logout-item {
  color: #EF4444;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.profile-menu-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.recipe-preferences-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  transition: var(--transition-smooth);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
}

.pref-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-header-icon {
  font-size: 1.15rem;
}

.pref-header-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}

.pref-reset-btn {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  border: 1px solid #E5E5EA;
  border-radius: 99px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pref-reset-btn:hover {
  background: #FFE8D6;
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.pref-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pref-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pref-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #3A3A3C;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pref-label-sub {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pref-selected-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-orange);
  background: rgba(223, 123, 60, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
}

.category-choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1.5px solid #E5E5EA;
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #48484A;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  user-select: none;
}

.cat-choice-pill .pill-emoji {
  font-size: 0.95rem;
}

.cat-choice-pill:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.cat-choice-pill.active {
  background: var(--primary-orange-gradient);
  color: #FFFFFF;
  border-color: var(--primary-orange);
  box-shadow: 0 3px 10px rgba(223, 123, 60, 0.32);
  transform: translateY(-1px);
}

.diet-choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1.5px solid #E5E5EA;
  border-radius: 12px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #48484A;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  user-select: none;
}

.diet-chip .chip-emoji {
  font-size: 0.95rem;
}

.diet-chip:hover {
  border-color: #2E7D32;
  color: #2E7D32;
  transform: translateY(-1px);
}

.diet-chip.active {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  color: #FFFFFF;
  border-color: #2E7D32;
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.28);
  transform: translateY(-1px);
}

.allergen-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 6px;
}

.allergen-tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid #E5E5EA;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #48484A;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.allergen-tag-btn .tag-status-icon {
  font-size: 0.70rem;
  color: #C7C7CC;
  transition: color 0.18s ease;
  margin-left: 2px;
}

.allergen-tag-btn:hover {
  border-color: #E03131;
  color: #C92A2A;
}

.allergen-tag-btn.active,
.allergen-tag-btn[aria-pressed="true"] {
  background: #FFF5F5;
  border-color: #E03131;
  color: #C92A2A;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(224, 49, 49, 0.16);
}

.allergen-tag-btn.active .tag-status-icon,
.allergen-tag-btn[aria-pressed="true"] .tag-status-icon {
  color: #E03131;
  font-weight: 900;
}

.ingredients-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.materials-pill-btn {
  width: 100%;
  background-color: var(--bg-card);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: #55575E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.materials-pill-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-dark);
}

.materials-pill-btn:active {
  transform: scale(0.985);
}

.materials-pill-btn.active {
  background-color: var(--bg-white);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 4px 14px rgba(223, 123, 60, 0.15);
}

.materials-pill-btn .dropdown-chevron {
  position: absolute;
  right: 20px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.materials-pill-btn.active .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary-orange);
}

.materials-dropdown {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-dropdown);
  border-radius: var(--radius-dropdown);
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border-dropdown);
  z-index: 100;
  display: none;
  flex-direction: column;
  max-height: 380px;
  overflow: hidden;
  animation: dropdownSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.materials-dropdown.show {
  display: flex;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-dropdown-header);
}

.search-box-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.search-box-wrapper:focus-within {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px var(--primary-orange-light);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.ingredient-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
}

.ingredient-search-input::placeholder {
  color: var(--text-light);
}

.clear-search-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.dropdown-body {
  overflow-y: auto;
  max-height: 240px;
  padding: 8px 6px;
  overscroll-behavior: contain;
  background-color: var(--bg-dropdown);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.dropdown-body::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.ingredient-item:hover {
  background-color: var(--bg-card-hover);
}

.ingredient-item.selected {
  background-color: var(--primary-orange-light);
}

.ingredient-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.ingredient-emoji {
  font-size: 1.2rem;
}

.ingredient-name {
  font-weight: 500;
  color: var(--text-dark);
}

.ingredient-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: rgba(125, 125, 125, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

.ingredient-usage-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-orange, #DF7B3C);
  background: rgba(223, 123, 60, 0.12);
  border: 1px solid rgba(223, 123, 60, 0.28);
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

.ingredient-usage-badge .badge-fire {
  font-size: 0.72rem;
}

.ingredient-item.selected .ingredient-name {
  color: var(--primary-orange);
  font-weight: 600;
}

.ingredient-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ingredient-item.selected .ingredient-checkbox {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.ingredient-item.selected .ingredient-checkbox::after {
  content: "✓";
  color: var(--text-white);
  font-size: 12px;
  font-weight: 700;
}

.dropdown-footer {
  padding: 10px 14px;
  background-color: var(--bg-dropdown-header);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selection-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.done-btn {
  background-color: var(--primary-orange);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.done-btn:hover {
  background-color: var(--primary-orange-hover);
}

.no-results,
.loading-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.selected-ingredients-container {
  padding: 4px 6px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-bullet);
  border-radius: 10px;
  border-left: 3.5px solid var(--primary-orange);
  box-shadow: var(--shadow-sm);
  animation: itemFadeIn 0.2s ease forwards;
}

@keyframes itemFadeIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bullet-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-dark);
  font-weight: 500;
}

.bullet-dot {
  color: var(--primary-orange);
  font-size: 1.2rem;
  line-height: 0;
}

.bullet-remove-btn {
  background: transparent;
  border: none;
  color: #B0B0B8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.bullet-remove-btn:hover {
  color: #E03131;
  transform: scale(1.15);
}

.footer-area {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.bottom-action-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 14px 0 20px 0;
  margin-top: 16px;
}

.generate-btn {
  position: relative;
  background: linear-gradient(135deg, #FF8F4D 0%, #DF7B3C 50%, #C44D25 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 14px 42px;
  min-width: 220px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(223, 123, 60, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  overflow: hidden;
}

.generate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.generate-text {
  font-family: var(--font-logo), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.generate-btn:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(223, 123, 60, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
}

.generate-btn:hover::before {
  left: 100%;
}

.generate-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 14px rgba(223, 123, 60, 0.35);
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #2C2C2E;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  .mobile-wrapper {
    padding: 32px 24px;
    background: #EAECEF;
    align-items: flex-start;
    justify-content: center;
  }

  .mobile-screen {
    max-width: 1060px;
    margin: 0 auto;
    min-height: auto;
    border-radius: 32px;
    border: 1px solid #DFE1E6;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    padding: 28px 36px 95px 36px;
    overflow: visible;
  }

  .header-card {
    padding: 10px 24px 10px 28px;
    border-radius: 9999px !important;
    margin-bottom: 28px;
  }

  .brand-logo-img {
    height: 38px;
    max-width: 160px;
  }

  .content-area {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
  }

  .recipe-preferences-card {
    min-height: 340px;
    height: 100%;
    border-radius: 24px;
    padding: 22px;
    gap: 18px;
  }

  .allergen-tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .ingredients-section {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .materials-pill-btn {
    width: 100%;
    height: 52px;
    border-radius: 18px;
    font-size: 1.05rem;
  }

  .materials-dropdown {
    width: 100%;
    max-width: 100%;
    max-height: 580px;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  }

  .dropdown-body {
    max-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
  }

  .dropdown-body .no-results {
    width: 100%;
  }

  .selected-ingredients-container {
    flex: 1;
    min-height: 240px;
    max-height: 380px;
    margin-top: 16px;
    border-radius: 20px;
    padding: 16px 20px;
  }

  .footer-area {
    padding-top: 32px;
  }

  .generate-btn {
    padding: 16px 54px;
    min-width: 250px;
  }

  .generate-text {
    font-size: 1.45rem;
  }
}

.servings-calculator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--bg-muted, #F8F8FA);
  border: 1px solid var(--border-subtle, #EBEBF0);
  border-radius: 16px;
  padding: 10px 14px;
  margin-top: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .servings-calculator-bar,
body.dark-mode .servings-calculator-bar {
  background-color: var(--bg-muted, #1E1E24);
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.09));
}

.servings-calculator-bar:hover {
  border-color: rgba(223, 123, 60, 0.35);
}

.servings-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.servings-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark, #1C1C1E);
}

[data-theme="dark"] .servings-title-row,
body.dark-mode .servings-title-row {
  color: var(--text-dark, #F5F5F7);
}

.servings-icon {
  font-size: 1rem;
  line-height: 1;
}

.servings-label {
  white-space: nowrap;
}

.servings-original-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-orange, #DF7B3C);
  background-color: var(--primary-orange-light, #FDF4ED);
  padding: 2px 8px;
  border-radius: var(--radius-pill, 9999px);
  width: fit-content;
  border: 1px solid rgba(223, 123, 60, 0.2);
}

[data-theme="dark"] .servings-original-badge,
body.dark-mode .servings-original-badge {
  color: #FFB380;
  background-color: rgba(223, 123, 60, 0.18);
  border-color: rgba(223, 123, 60, 0.3);
}

.servings-original-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary-orange, #DF7B3C);
}

.servings-stepper-control {
  display: flex;
  align-items: center;
  background-color: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #EBEBF0);
  border-radius: 14px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

[data-theme="dark"] .servings-stepper-control,
body.dark-mode .servings-stepper-control {
  background-color: var(--bg-card, #18181C);
  border-color: var(--border-subtle, rgba(255, 255, 255, 0.09));
}

.servings-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background-color: transparent;
  color: var(--text-dark, #1C1C1E);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

[data-theme="dark"] .servings-btn,
body.dark-mode .servings-btn {
  color: var(--text-dark, #F5F5F7);
}

.servings-btn:hover:not(:disabled) {
  background-color: var(--primary-orange-light, #FDF4ED);
  color: var(--primary-orange, #DF7B3C);
}

[data-theme="dark"] .servings-btn:hover:not(:disabled),
body.dark-mode .servings-btn:hover:not(:disabled) {
  background-color: rgba(223, 123, 60, 0.22);
  color: #FF8F4D;
}

.servings-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.servings-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.servings-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: relative;
}

.servings-number-input {
  width: 52px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--primary-orange, #DF7B3C);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
  transition: background-color 0.15s ease;
}

.servings-number-input::-webkit-outer-spin-button,
.servings-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.servings-number-input:focus {
  background-color: var(--primary-orange-light, #FDF4ED);
  border-radius: 8px;
}

[data-theme="dark"] .servings-number-input:focus,
body.dark-mode .servings-number-input:focus {
  background-color: rgba(223, 123, 60, 0.2);
}

.servings-unit-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #7C7C84);
  margin-right: 4px;
  user-select: none;
}

[data-theme="dark"] .servings-unit-label,
body.dark-mode .servings-unit-label {
  color: var(--text-muted, #9E9EA7);
}

@media (max-width: 400px) {
  .servings-calculator-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .servings-info-left {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .servings-stepper-control {
    justify-content: space-between;
  }

  .servings-number-input {
    width: 60px;
  }
}

.app-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: appModalFadeIn 0.2s ease-out;
}

@keyframes appModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.app-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: appModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes appModalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
}

.app-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.app-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

.app-modal-close {
  background: rgba(150, 150, 150, 0.15);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.app-modal-close:hover {
  background: rgba(150, 150, 150, 0.25);
  color: var(--text-primary);
}

.weekly-menu-bonus-tip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #D97706;
  margin-bottom: 16px;
}

.weekly-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weekly-menu-day-card {
  background: var(--bg-card-surface, var(--bg-main));
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.weekly-menu-day-card:hover {
  border-color: var(--primary-orange);
  transform: translateY(-1px);
}

.weekly-menu-day-card.is-today {
  border-color: var(--primary-orange);
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.08) 0%, rgba(245, 158, 11, 0.06) 100%);
  box-shadow: 0 4px 15px rgba(223, 123, 60, 0.15);
}

.weekly-day-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(150, 150, 150, 0.15);
  color: var(--text-secondary);
  text-align: center;
  min-width: 75px;
}

.weekly-menu-day-card.is-today .weekly-day-badge {
  background: var(--primary-orange);
  color: #fff;
}

.weekly-day-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.weekly-day-info {
  flex: 1;
  min-width: 0;
}

.weekly-day-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-day-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekly-today-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #D97706;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.daily-menu-banner-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

[data-theme="dark"] .daily-menu-banner-card {
  background: linear-gradient(135deg, rgba(223, 123, 60, 0.18) 0%, rgba(30, 41, 59, 0.7) 100%) !important;
  border-color: rgba(223, 123, 60, 0.4) !important;
}

.nav-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-sub-badge.nav-sub-premium {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  color: #92400E !important;
  border: 1.5px solid #FCD34D;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.nav-sub-badge.nav-sub-free {
  background: rgba(223, 123, 60, 0.12);
  color: var(--primary-orange, #DF7B3C) !important;
  border: 1.5px solid rgba(223, 123, 60, 0.35);
}

.header-card .nav-sub-badge.nav-sub-free,
.desktop-navbar .nav-sub-badge.nav-sub-free {
  background: rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-card .nav-sub-badge.nav-sub-free:hover,
.desktop-navbar .nav-sub-badge.nav-sub-free:hover {
  background: rgba(255, 255, 255, 0.36) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #FFFFFF !important;
}

.header-card .nav-sub-badge.nav-sub-premium,
.desktop-navbar .nav-sub-badge.nav-sub-premium {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%) !important;
  color: #92400E !important;
  border: 1.5px solid #FCD34D !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(245, 158, 11, 0.3) !important;
  font-weight: 800;
}

.header-card .nav-sub-badge.nav-sub-premium:hover,
.desktop-navbar .nav-sub-badge.nav-sub-premium:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 50%, #FDE68A 100%) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(245, 158, 11, 0.4) !important;
}

[data-theme="dark"] .nav-sub-badge.nav-sub-premium:not(.header-card *) {
  background: linear-gradient(135deg, #78350F 0%, #B45309 100%);
  color: #FEF3C7 !important;
  border: 1.5px solid #D97706;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .nav-sub-badge.nav-sub-free:not(.header-card *) {
  background: rgba(223, 123, 60, 0.2);
  color: #FF9E64 !important;
  border: 1.5px solid rgba(223, 123, 60, 0.45);
}

.nav-sub-badge:hover {
  transform: translateY(-1px);
}

:root {
  --nav-float-radius: 32px;
}

.floating-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--nav-float-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  user-select: none;
}

[data-theme="light"] .floating-navbar,
html.light-mode .floating-navbar,
body.light-mode .floating-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(223, 123, 60, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .floating-navbar,
body.dark-mode .floating-navbar,
body.dark .floating-navbar {
  background: rgba(22, 22, 28, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.6),
    0 2px 12px rgba(223, 123, 60, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mobile-bottom-navbar,
nav.mobile-bottom-navbar,
.mobile-bottom-navbar.floating-navbar {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-bottom-navbar,
  nav.mobile-bottom-navbar,
  .mobile-bottom-navbar.floating-navbar {
    display: flex !important;
    position: fixed !important;
    bottom: 14px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    z-index: 1000 !important;
    height: 60px !important;
    padding: 4px 8px !important;
    gap: 2px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  border-radius: 18px;
  position: relative;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.active {
  color: var(--primary-orange);
}

.mobile-nav-item.active svg {
  transform: scale(1.15);
  stroke: var(--primary-orange);
}

.mobile-nav-item:active svg {
  transform: scale(0.9);
}

.mobile-nav-item.create-item {
  flex: 1.05;
}

.mobile-create-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-orange-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--primary-orange-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.mobile-create-trigger:hover,
.mobile-create-trigger:active {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--primary-orange-glow);
}

.mobile-create-trigger svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.4;
}

@media (max-width: 768px) {

  main,
  .container,
  .main-container,
  .content-area,
  .mobile-screen,
  .profile-app-container {
    padding-bottom: 105px;
    box-sizing: border-box;
  }

  .footer-area {
    padding-bottom: 24px;
    margin-top: auto;
  }

  .bottom-action-container {
    padding: 14px 0 95px 0 !important;
    position: relative;
    z-index: 10;
  }

  .generate-btn {
    box-shadow: 0 8px 24px rgba(223, 123, 60, 0.45);
  }
}

@media (max-width: 380px) {
  .mobile-bottom-navbar {
    bottom: 10px;
    left: 8px;
    right: 8px;
    height: 56px;
    padding: 3px 4px;
    gap: 1px;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-create-trigger {
    width: 38px;
    height: 38px;
  }

  .mobile-create-trigger svg {
    width: 18px;
    height: 18px;
  }
}

.mobile-top-bar,
.header-card.mobile-top-bar,
.lb-wrapper .header-card.mobile-top-bar,
.profile-app-container .header-card.mobile-top-bar,
.recipes-page-wrapper .header-card.mobile-top-bar {
  display: none !important;
}

@media (max-width: 768px) {

  .mobile-top-bar,
  .header-card.mobile-top-bar,
  .lb-wrapper .header-card.mobile-top-bar,
  .profile-app-container .header-card.mobile-top-bar,
  .recipes-page-wrapper .header-card.mobile-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px 8px 20px !important;
    position: sticky !important;
    top: 10px !important;
    z-index: 999 !important;
    width: calc(100% - 24px) !important;
    max-width: 440px !important;
    box-sizing: border-box !important;
    background: var(--primary-orange-gradient) !important;
    box-shadow: 0 4px 18px rgba(223, 123, 60, 0.28) !important;
    border-radius: 9999px !important;
    margin: 10px auto 16px auto !important;
    border: none !important;
  }

  .mobile-top-bar .brand-link {
    display: inline-flex !important;
    align-items: center !important;
  }

  .mobile-top-bar .brand-logo-img {
    height: 32px !important;
    width: auto !important;
    max-width: 130px !important;
    object-fit: contain !important;
  }

  .mobile-top-bar .header-right-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-top-bar .mobile-notif-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.2s, background 0.2s !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-top-bar .mobile-notif-btn:hover {
    background: rgba(255, 255, 255, 0.32) !important;
  }

  .mobile-top-bar .mobile-notif-btn:active {
    transform: scale(0.92) !important;
  }

  .mobile-top-bar .mobile-notif-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    pointer-events: none !important;
    display: block !important;
  }

  .mobile-top-bar .mobile-notif-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #df7b3c !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    pointer-events: none !important;
    line-height: 1 !important;
  }

  .mobile-top-bar .theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s, background 0.2s !important;
  }

  .mobile-top-bar .theme-toggle-btn:active {
    transform: scale(0.92) !important;
  }

  .mobile-top-bar .profile-avatar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  .mobile-top-bar .profile-avatar-btn img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
}

@media (max-width: 400px) {

  .mobile-top-bar,
  .header-card.mobile-top-bar,
  .lb-wrapper .header-card.mobile-top-bar,
  .profile-app-container .header-card.mobile-top-bar,
  .recipes-page-wrapper .header-card.mobile-top-bar {
    padding: 6px 12px 6px 16px !important;
    width: calc(100% - 20px) !important;
    margin: 8px auto 14px auto !important;
  }

  .mobile-top-bar .brand-logo-img {
    height: 28px !important;
    max-width: 115px !important;
  }

  .mobile-top-bar .header-right-actions {
    gap: 6px !important;
  }

  .mobile-top-bar .mobile-notif-btn,
  .mobile-top-bar .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .mobile-top-bar .mobile-notif-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .mobile-top-bar .profile-avatar-btn img {
    width: 32px !important;
    height: 32px !important;
  }
}

.notifications-drawer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: notifFadeIn 0.2s ease-out;
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.notifications-drawer-modal.active {
  display: flex !important;
}

.notifications-drawer-card {
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  background: var(--bg-card, #1c1c1e);
  color: var(--text-primary, #f9fafb);
  border-radius: 24px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .notifications-drawer-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10001 !important;
    padding: calc(68px + env(safe-area-inset-top, 0px)) 12px calc(85px + env(safe-area-inset-bottom, 0px)) 12px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .notifications-drawer-card {
    width: 100% !important;
    max-width: 440px !important;
    max-height: calc(100vh - 165px) !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  }
}

.notifications-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.notifications-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifications-drawer-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary, #f9fafb);
}

.notifications-badge {
  background: var(--primary-orange, #DF7B3C);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notifications-mark-all-btn {
  background: none;
  border: none;
  color: var(--primary-orange, #DF7B3C);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.notifications-mark-all-btn:hover {
  background: rgba(223, 123, 60, 0.12);
}

.notifications-close-btn {
  background: rgba(125, 125, 125, 0.15);
  border: none;
  color: var(--text-secondary, #9ca3af);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notifications-close-btn:hover {
  background: rgba(125, 125, 125, 0.25);
  color: var(--text-primary, #f9fafb);
}

.notifications-tabs-bar {
  display: flex;
  padding: 8px 16px;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  overflow-x: auto;
}

.notification-tab-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notification-tab-btn:hover {
  color: var(--text-primary, #f9fafb);
  background: rgba(125, 125, 125, 0.08);
}

.notification-tab-btn.active {
  background: var(--primary-orange, #DF7B3C);
  color: #fff;
}

.notifications-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  max-height: 480px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.2s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.notification-item:hover {
  background: rgba(125, 125, 125, 0.06);
}

.notification-item.unread {
  background: rgba(223, 123, 60, 0.06);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-orange, #DF7B3C);
}

.notification-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.notification-content {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.notification-actor {
  font-weight: 700;
  color: var(--text-primary, #f9fafb);
}

.notification-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary, #9ca3af);
  margin-top: 2px;
}

.notification-icon-badge {
  font-size: 1.1rem;
  flex-shrink: 0;
}