.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px 0;box-shadow:var(--shadow-md);position:sticky;top:0;z-index:100}[data-theme=dark] .header{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.header-content{max-width:1400px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center}.header-actions{display:flex;align-items:center;gap:15px}.browse-buttons{display:flex;align-items:center;gap:10px}.browse-btn{display:flex;align-items:center;gap:8px;padding:10px 18px;background:#fff3;border:none;border-radius:25px;color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.browse-btn:hover{background:#ffffff4d;transform:translateY(-2px)}.browse-icon{font-size:18px}.browse-text{font-weight:600}.theme-toggle{background:#fff3;border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.theme-toggle:hover{background:#ffffff4d;transform:translateY(-2px) scale(1.05)}.logo{text-decoration:none;cursor:pointer}.logo-container{display:flex;align-items:center;gap:12px;transition:transform .3s ease}.logo:hover .logo-container{transform:scale(1.05)}.logo-icon{width:50px;height:50px;color:#fff;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));transition:all .3s ease;flex-shrink:0}.logo:hover .logo-icon{filter:drop-shadow(0 4px 8px rgba(0,0,0,.3));transform:rotate(-5deg)}.logo h1{font-family:Righteous,cursive;font-size:42px;font-weight:400;margin:0;letter-spacing:1px;display:flex;align-items:baseline;gap:4px}.logo-meal{background:linear-gradient(45deg,#fff,#a8edea);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(255,255,255,.3);filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));font-weight:700}.logo-sights{background:linear-gradient(45deg,#fed6e3,#ffeaa7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(255,255,255,.3);filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));font-weight:400}.user-menu{position:relative}.user-greeting{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:500;background:#fff3;padding:10px 20px;border-radius:25px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;transition:all .3s ease}.user-greeting:hover{background:#ffffff4d;transform:translateY(-2px)}.dropdown-menu{position:absolute;top:calc(100% + 10px);right:0;background:#fff;border-radius:12px;box-shadow:0 8px 24px #00000026;min-width:200px;opacity:0;visibility:hidden;transform:translateY(-10px);transition:all .3s ease;overflow:hidden;z-index:1000}.user-menu:hover .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}.dropdown-item{width:100%;display:flex;align-items:center;gap:12px;padding:14px 20px;background:#fff;border:none;color:#333;font-size:16px;font-weight:500;cursor:pointer;transition:all .2s ease;text-align:left}.dropdown-item:hover{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}[data-theme=dark] .dropdown-item:hover{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.dropdown-item .icon{font-size:18px}.dropdown-item.logout:hover{background:linear-gradient(135deg,#f093fb,#f5576c)}[data-theme=dark] .dropdown-item.logout:hover{background:linear-gradient(135deg,#c62828,#8e0000)}.auth-buttons{display:flex;gap:15px;align-items:center}.login-button,.register-button{padding:10px 24px;border:none;border-radius:25px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;text-decoration:none;display:inline-block}.login-button{background:#fff3;color:#fff;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.login-button:hover{background:#ffffff4d;transform:translateY(-2px)}.register-button{background:#fff;color:#667eea}[data-theme=dark] .register-button{color:#d32f2f}.register-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #fff6}.hamburger-menu{display:none;flex-direction:column;justify-content:space-around;width:36px;height:36px;background:#fff3;border:none;border-radius:8px;cursor:pointer;padding:6px;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:1001}.hamburger-menu span{width:100%;height:3px;background-color:#fff;border-radius:3px;transition:all .3s ease;transform-origin:center}.hamburger-menu:hover{background:#ffffff4d}.hamburger-menu.active span:nth-child(1){transform:translateY(8px) rotate(45deg)}.hamburger-menu.active span:nth-child(2){opacity:0;transform:translate(-20px)}.hamburger-menu.active span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}.mobile-menu{display:none;position:fixed;top:90px;right:0;width:280px;max-width:90vw;background:#fff;box-shadow:-4px 0 24px #00000026;border-radius:12px 0 0 12px;padding:10px 0;transform:translate(100%);transition:transform .3s ease;z-index:1000;max-height:calc(100vh - 110px);overflow-y:auto}[data-theme=dark] .mobile-menu{background:#1a1a1a;box-shadow:-4px 0 24px #0000004d}.mobile-menu.open{transform:translate(0)}.mobile-menu-item{width:100%;display:flex;align-items:center;gap:15px;padding:16px 24px;background:transparent;border:none;color:#333;font-size:17px;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;border-left:4px solid transparent}[data-theme=dark] .mobile-menu-item{color:#fff}.mobile-menu-item:hover,.mobile-menu-item:active{background:linear-gradient(90deg,rgba(102,126,234,.1) 0%,transparent 100%);border-left-color:#667eea;color:#667eea}[data-theme=dark] .mobile-menu-item:hover,[data-theme=dark] .mobile-menu-item:active{background:linear-gradient(90deg,rgba(211,47,47,.1) 0%,transparent 100%);border-left-color:#d32f2f;color:#ff6b6b}.mobile-menu-icon{font-size:22px;width:28px;display:inline-flex;justify-content:center}@media (max-width: 768px){.header-actions{display:none}.hamburger-menu{display:flex}.mobile-menu{display:block}.logo-container{gap:0}.logo-icon{width:44px;height:44px}.logo h1{display:none}}.search-bar-container{margin:30px 0}.search-title{font-size:28px;margin-bottom:15px;color:var(--text-primary)}.search-input{width:100%;padding:16px 24px;font-size:16px;border:2px solid var(--border-color);border-radius:var(--border-radius);background:var(--card-background);color:var(--text-primary);transition:var(--transition);box-shadow:var(--shadow-sm)}.search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #4caf501a}.search-input::placeholder{color:var(--text-secondary)}@media (max-width: 768px){.search-title{font-size:22px}.search-input{padding:14px 18px;font-size:14px}}.nutrition-filters-container{width:100%;margin-bottom:2.5rem;background:var(--card-bg);border-radius:8px;box-shadow:0 1px 4px #0000001a;overflow:visible;padding:1rem 1.5rem 1.5rem;position:relative;z-index:10}[data-theme=dark] .nutrition-filters-container{background:#ffffff0d;box-shadow:0 1px 4px #0000004d}.nutrition-filters{display:flex;flex-direction:row;gap:2rem;align-items:flex-start}.filter-group{display:flex;flex-direction:column;gap:.5rem;flex:1;background:#4caf5014;padding:.75rem 1rem;border-radius:8px;transition:background .2s;min-height:100px;overflow:visible}.filter-group:hover{background:#4caf501f}[data-theme=dark] .filter-group{background:#4caf5026}[data-theme=dark] .filter-group:hover{background:#4caf5033}.filter-header{display:flex;justify-content:space-between;align-items:center}.filter-label{font-weight:500;font-size:.9rem;color:var(--text-color)}.filter-value{font-size:.85rem;color:var(--primary-color, #4CAF50);font-weight:500}.slider-container{position:relative;height:30px;display:flex;align-items:center}.slider{position:absolute;width:100%;height:4px;background:transparent;outline:none;-webkit-appearance:none;pointer-events:none}.slider::-webkit-slider-track{width:100%;height:4px;background:var(--slider-track-bg, #ddd);border-radius:2px}.slider::-moz-range-track{width:100%;height:4px;background:var(--slider-track-bg, #ddd);border-radius:2px}.slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:22px;height:22px;background:var(--primary-color, #4CAF50);border:3px solid white;border-radius:50%;cursor:pointer;pointer-events:all;box-shadow:0 2px 4px #00000040;transition:transform .2s,box-shadow .2s}.slider::-moz-range-thumb{width:22px;height:22px;background:var(--primary-color, #4CAF50);border:3px solid white;border-radius:50%;cursor:pointer;pointer-events:all;box-shadow:0 2px 4px #00000040;transition:transform .2s,box-shadow .2s}.slider::-webkit-slider-thumb:hover{transform:scale(1.1);box-shadow:0 2px 4px #0000004d}.slider::-moz-range-thumb:hover{transform:scale(1.1);box-shadow:0 2px 4px #0000004d}[data-theme=dark] .slider::-webkit-slider-track{background:#444}[data-theme=dark] .slider::-moz-range-track{background:#444}.micronutrient-filter{position:relative;z-index:20}.micronutrient-filter:hover,.micronutrient-filter:focus-within{z-index:50}.filter-count{font-size:.85rem;color:var(--primary-color, #4CAF50);font-weight:500}.micronutrient-selector{display:flex;flex-direction:column;gap:.5rem}.micronutrient-toggle{padding:.5rem .75rem;background:#fff;border:2px solid var(--primary-color, #4CAF50);border-radius:6px;color:var(--primary-color, #4CAF50);font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s;text-align:left}.micronutrient-toggle:hover{background:var(--primary-color, #4CAF50);color:#fff}[data-theme=dark] .micronutrient-toggle{background:#ffffff1a;border-color:var(--primary-color, #4CAF50);color:var(--primary-color, #4CAF50)}[data-theme=dark] .micronutrient-toggle:hover{background:var(--primary-color, #4CAF50);color:#fff}.micronutrient-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:.5rem;background:#fff;border:2px solid var(--primary-color, #4CAF50);border-radius:8px;box-shadow:0 4px 12px #00000026;max-height:250px;overflow-y:auto;z-index:100;padding:.5rem}[data-theme=dark] .micronutrient-dropdown{background:#2a2a2a;border-color:var(--primary-color, #4CAF50)}.micronutrient-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;border-radius:4px;transition:background .2s;-webkit-user-select:none;user-select:none}.micronutrient-option:hover{background:#4caf501a}[data-theme=dark] .micronutrient-option:hover{background:#4caf5033}.micronutrient-option input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:var(--primary-color, #4CAF50)}.micronutrient-option span{font-size:.9rem;color:var(--text-color)}.micronutrient-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.25rem}.micronutrient-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;background:var(--primary-color, #4CAF50);color:#fff;border-radius:16px;font-size:.75rem;font-weight:500;box-shadow:0 2px 4px #0000001a}.micronutrient-badge button{background:none;border:none;color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer;padding:0;margin:0;line-height:1;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s}.micronutrient-badge button:hover{background:#fff3}.micronutrient-dropdown::-webkit-scrollbar{width:6px}.micronutrient-dropdown::-webkit-scrollbar-track{background:#0000000d;border-radius:3px}.micronutrient-dropdown::-webkit-scrollbar-thumb{background:var(--primary-color, #4CAF50);border-radius:3px}.micronutrient-dropdown::-webkit-scrollbar-thumb:hover{background:#45a049}@media (max-width: 768px){.nutrition-filters-container{padding:.75rem 1rem}.nutrition-filters{flex-direction:column;gap:1rem}.filter-group{width:100%}.filter-header{flex-direction:row;align-items:center}.micronutrient-dropdown{max-height:200px}}.meal-card{background:var(--card-background);border-radius:var(--border-radius);overflow:hidden;box-shadow:var(--shadow-md);transition:var(--transition);cursor:pointer;display:flex;flex-direction:column}.meal-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}.meal-image-container{position:relative;width:100%;height:250px;overflow:hidden}.meal-image{width:100%;height:100%;object-fit:cover;transition:var(--transition)}.meal-card:hover .meal-image{transform:scale(1.05)}.meal-tags{position:absolute;bottom:10px;left:10px;display:flex;flex-wrap:wrap;gap:6px}.meal-tag{background:#fffffff2;padding:4px 12px;border-radius:15px;font-size:12px;font-weight:500;color:var(--text-primary);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[data-theme=dark] .meal-tag{background:#000000d9;color:#e0e0e0}.meal-content{padding:20px;display:flex;flex-direction:column;gap:15px;flex:1}.meal-name{font-size:22px;font-weight:600;color:var(--text-primary);margin:0}.meal-description{color:var(--text-secondary);font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.meal-info{display:flex;gap:15px;flex-wrap:wrap}.meal-info-item{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text-secondary)}.info-icon{font-size:16px}.meal-macros{display:flex;gap:12px;padding:12px;background:var(--background);border-radius:8px}.macro-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}.macro-label{font-size:11px;color:var(--text-secondary);text-transform:uppercase;font-weight:500}.macro-value{font-size:16px;font-weight:600;color:var(--text-primary)}.meal-dietary-info{display:flex;flex-direction:column;gap:10px;padding:12px;background:var(--background);border-radius:8px;font-size:13px;min-height:70px}.dietary-section{display:flex;flex-direction:column;gap:6px}.dietary-label{font-weight:600;color:var(--text-primary);font-size:12px}.dietary-tags{display:flex;flex-wrap:wrap;gap:6px}.dietary-tag{padding:4px 10px;border-radius:12px;font-size:11px;font-weight:500;white-space:nowrap}.allergen-tag{background:#ff980026;color:#ff9800;border:1px solid rgba(255,152,0,.3)}[data-theme=dark] .allergen-tag{background:#ff980033;color:#ffb74d}.diet-tag{background:#4caf5026;color:#4caf50;border:1px solid rgba(76,175,80,.3)}[data-theme=dark] .diet-tag{background:#4caf5033;color:#81c784}.more-tag{background:var(--border-color);color:var(--text-secondary);border:1px solid var(--border-color)}.no-allergens-tag{background:#9e9e9e1a;color:var(--text-secondary);border:1px solid var(--border-color);font-style:italic;cursor:help}.no-allergens-tag:hover{background:#9e9e9e33;border-color:var(--text-secondary)}.meal-actions{display:flex;gap:10px;padding-top:10px;border-top:1px solid var(--border-color)}.action-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px;background:var(--background);border-radius:8px;font-size:13px;font-weight:500;color:var(--text-secondary);transition:var(--transition)}.action-btn:hover{background:var(--border-color)}.action-icon{font-size:16px}.like-btn.active{background:#4caf50;color:#fff}.dislike-btn.active{background:#f44336;color:#fff}.comments-btn{flex:1.2}.delete-btn{background:#f44;color:#fff}.delete-btn:hover{background:#c00}@media (max-width: 768px){.meal-card{max-width:100%}.meal-name{font-size:20px}.meal-actions{flex-wrap:wrap}}.meal-grid-container{margin:40px 0}.meal-grid-header{margin-bottom:30px}.meal-grid-header h2{font-size:32px;margin-bottom:20px;color:var(--text-primary)}.meal-grid-wrapper{position:relative;min-height:300px}.category-loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#ffffffb3;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:10;border-radius:12px;animation:fadeIn .2s ease-in}[data-theme=dark] .category-loading-overlay{background-color:#0009}.category-loading-spinner{width:50px;height:50px;border:4px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}[data-theme=dark] .category-loading-spinner{border:4px solid rgba(211,47,47,.2);border-top-color:#d32f2f}.time-filter{display:flex;flex-direction:column;gap:12px}.time-filter-label{font-size:16px;font-weight:500;color:var(--text-secondary)}.time-filter-buttons{display:flex;flex-wrap:wrap;gap:10px}.time-filter-btn{padding:10px 20px;background:var(--card-background);border:2px solid var(--border-color);border-radius:25px;font-size:14px;font-weight:500;color:var(--text-primary);transition:var(--transition)}.time-filter-btn:hover{background:var(--primary-color);color:#fff;border-color:var(--primary-color);transform:translateY(-2px)}.time-filter-btn.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent}[data-theme=dark] .time-filter-btn.active{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.meal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:30px}.no-meals{text-align:center;padding:60px 20px;color:var(--text-secondary);font-size:18px}@media (max-width: 768px){.meal-grid{grid-template-columns:1fr;gap:20px}.meal-grid-header h2{font-size:24px}.time-filter-btn{padding:8px 16px;font-size:13px}}.breadcrumbs{padding:12px 0;margin-bottom:20px}.breadcrumbs-list{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:8px;font-size:14px}.breadcrumb-item{display:flex;align-items:center;gap:8px}.breadcrumb-link{color:var(--primary-color);text-decoration:none;transition:var(--transition);font-weight:500}.breadcrumb-link:hover{color:var(--text-primary);text-decoration:underline}.breadcrumb-separator{color:var(--text-secondary);-webkit-user-select:none;user-select:none}.breadcrumb-current{color:var(--text-secondary);font-weight:400}@media (max-width: 768px){.breadcrumbs{padding:8px 0;margin-bottom:16px}.breadcrumbs-list{font-size:13px}}.related-meals{padding:30px 20px 20px;border-top:1px solid var(--border-color);margin-top:30px}.related-meals h3{font-size:24px;margin-bottom:20px;color:var(--text-primary)}.related-meals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px}.related-meal-card{display:block;text-decoration:none;background:var(--card-background);border-radius:12px;overflow:hidden;cursor:pointer;transition:var(--transition);border:1px solid var(--border-color)}.related-meal-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #00000026}.related-meal-image{width:100%;height:150px;object-fit:cover}.related-meal-info{padding:12px}.related-meal-name{font-size:16px;font-weight:600;margin:0 0 8px;color:var(--text-primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.related-meal-stats{display:flex;gap:12px;font-size:13px;color:var(--text-secondary);margin-bottom:8px}.related-meal-stats span{display:flex;align-items:center;gap:4px}.related-meal-tags{display:flex;flex-wrap:wrap;gap:6px}.related-meal-tag{font-size:11px;padding:4px 8px;background:var(--tag-background);color:var(--text-secondary);border-radius:12px;font-weight:500}@media (max-width: 768px){.related-meals-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px}.related-meal-image{height:120px}.related-meal-name{font-size:14px}.related-meals h3{font-size:20px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto}.modal-content{background:var(--card-background);border-radius:var(--border-radius);max-width:900px;width:100%;max-height:90vh;overflow-y:auto;overflow-x:hidden;position:relative;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}.modal-breadcrumbs{padding:20px 20px 0}.modal-close{position:absolute;top:20px;right:20px;width:40px;height:40px;border-radius:50%;background:#00000080;color:#fff;font-size:24px;display:flex;align-items:center;justify-content:center;z-index:10;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal-close:hover{background:#000000b3}.modal-header{display:flex;gap:30px;padding:30px;border-bottom:1px solid var(--border-color)}.modal-image{width:250px;height:250px;object-fit:cover;border-radius:var(--border-radius);flex-shrink:0}.modal-header-info{flex:1;display:flex;flex-direction:column;gap:15px}.modal-header-info h2{font-size:32px;margin:0}.modal-cuisine{color:var(--text-secondary);font-size:16px;text-transform:capitalize}.modal-tags{display:flex;flex-wrap:wrap;gap:8px}.modal-tag{background:var(--background);padding:6px 14px;border-radius:20px;font-size:13px;color:var(--text-primary);font-weight:500}[data-theme=dark] .modal-tag{background:#00000080;border:1px solid #333}.modal-actions-header{display:flex;gap:12px;margin-top:auto}.modal-action-btn{padding:12px 24px;border-radius:8px;font-size:15px;font-weight:500;background:var(--background);color:var(--text-primary);transition:var(--transition)}.modal-action-btn:hover{background:var(--border-color)}.modal-action-btn.active{background:var(--primary-color);color:#fff}.modal-action-btn.edit-btn{background:#4caf50;color:#fff}.modal-action-btn.edit-btn:hover{background:#45a049}[data-theme=dark] .modal-action-btn.edit-btn{background:#66bb6a}[data-theme=dark] .modal-action-btn.edit-btn:hover{background:#81c784}.modal-action-btn.delete-btn{background:#f44;color:#fff}.modal-action-btn.delete-btn:hover{background:#c00}.modal-action-btn.image-update-btn{background-color:#17a2b8}.modal-action-btn.image-update-btn:hover{background-color:#138496}.modal-action-btn.image-update-btn.loading{cursor:not-allowed;background-color:#17a2b8;opacity:.65}.modal-action-btn.test-btn{background-color:#6c757d}.modal-action-btn.test-btn:hover{background-color:#5a6268}.modal-action-btn.test-btn.loading{cursor:not-allowed;background-color:#6c757d;opacity:.65}.ai-tested-badge{display:inline-flex;align-items:center;padding:8px 12px;font-size:14px;font-weight:600;color:#28a745;background-color:#e9f5ec;border-radius:5px;border:1px solid #b8e0c2;margin:0 5px;height:38px;box-sizing:border-box}.modal-body{padding:20px 30px;max-height:calc(100vh - 250px);overflow-x:hidden;max-width:100%}.content-section{margin-bottom:35px;animation:fadeIn .3s ease}.section-title{font-size:24px;font-weight:600;color:var(--text-primary);margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid var(--border-color)}.section-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;background:var(--background);padding:15px 20px;border-radius:10px;cursor:pointer;transition:var(--transition);text-align:left}.section-toggle:hover{background:var(--border-color)}.section-toggle .section-title{margin:0;padding:0;border:none;font-size:20px}.toggle-icon{font-size:18px;color:var(--text-secondary);transition:transform .3s ease}.toggle-icon.open{transform:rotate(180deg)}.collapsible-content{margin-top:20px;animation:fadeIn .3s ease}.meal-description-full{font-size:16px;line-height:1.8;color:var(--text-secondary);margin-bottom:30px}.meal-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:15px;margin-bottom:30px}.stat-card{display:flex;align-items:center;gap:12px;padding:16px;background:var(--background);border-radius:10px}.stat-icon{font-size:28px}.stat-label{font-size:13px;color:var(--text-secondary);font-weight:500}.stat-value{font-size:18px;font-weight:600;color:var(--text-primary)}.dietary-info-modal{padding:20px;background:var(--background);border-radius:10px;margin-bottom:30px;display:flex;flex-direction:column;gap:20px}.dietary-info-section h4{font-size:16px;font-weight:600;color:var(--text-primary);margin-bottom:12px}.dietary-badges{display:flex;flex-wrap:wrap;gap:10px}.dietary-badge{padding:8px 16px;border-radius:20px;font-size:14px;font-weight:500;transition:var(--transition)}.allergen-badge{background:#ff980026;color:#ff9800;border:2px solid rgba(255,152,0,.3)}[data-theme=dark] .allergen-badge{background:#ff980033;color:#ffb74d;border-color:#ff980066}.diet-badge{background:#4caf5026;color:#4caf50;border:2px solid rgba(76,175,80,.3)}[data-theme=dark] .diet-badge{background:#4caf5033;color:#81c784;border-color:#4caf5066}.macros-overview h3{font-size:22px;margin-bottom:20px}.macros-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px}.macro-card{display:flex;flex-direction:column;align-items:center;gap:12px}.macro-circle{width:100px;height:100px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;box-shadow:var(--shadow-md)}.macro-circle.calories{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}[data-theme=dark] .macro-circle.calories{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.macro-circle.protein{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.macro-circle.carbs{background:linear-gradient(135deg,#4facfe,#00f2fe);color:#fff}.macro-circle.fat{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.macro-circle.fiber{background:linear-gradient(135deg,#fa709a,#fee140);color:#fff}.macro-circle.sugar{background:linear-gradient(135deg,#30cfd0,#330867);color:#fff}.macro-value-large{font-size:28px;line-height:1}.macro-unit{font-size:12px;opacity:.9}.macro-label-large{font-size:14px;font-weight:500;color:var(--text-secondary)}.ingredients-list{list-style:none;display:grid;gap:12px}.ingredient-item{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:var(--background);border-radius:8px;gap:15px;transition:var(--transition)}.ingredient-item:hover{background:var(--border-color)}.ingredient-info{display:flex;justify-content:space-between;align-items:center;flex:1;gap:20px}.ingredient-name{font-weight:500;color:var(--text-primary);text-transform:capitalize}.ingredient-amount{color:var(--text-secondary);font-size:14px;white-space:nowrap}.ingredient-shop-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;background:linear-gradient(135deg,#232f3e,#37475a);border-radius:8px;text-decoration:none;transition:all .2s ease;flex-shrink:0;border:2px solid transparent;cursor:pointer;white-space:nowrap}.ingredient-shop-btn:hover{background:linear-gradient(135deg,#37475a,#232f3e);border-color:#f90;transform:translateY(-2px);box-shadow:0 4px 12px #f906}.amazon-icon{font-family:Arial,sans-serif;font-weight:700;font-size:18px;color:#fff;position:relative;font-style:italic;line-height:1}.amazon-icon:after{content:"";position:absolute;bottom:-3px;left:-2px;right:-2px;height:2px;background:#f90;border-radius:2px}.buy-text{color:#fff;font-size:13px;font-weight:600;letter-spacing:.3px}.amazon-shop-all-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:16px 24px;margin-top:20px;background:linear-gradient(135deg,#232f3e,#37475a);color:#fff;border-radius:10px;font-size:16px;font-weight:600;text-decoration:none;transition:all .3s ease;box-shadow:0 4px 12px #f903;border:2px solid transparent}.amazon-shop-all-button:hover{background:linear-gradient(135deg,#37475a,#232f3e);border-color:#f90;box-shadow:0 6px 20px #f906;transform:translateY(-2px)}.amazon-icon-large{font-family:Arial,sans-serif;font-weight:700;font-size:24px;color:#fff;position:relative;font-style:italic;line-height:1}.amazon-icon-large:after{content:"";position:absolute;bottom:-4px;left:-2px;right:-2px;height:3px;background:#f90;border-radius:2px}.shop-all-text{color:#fff;font-size:16px;font-weight:600;letter-spacing:.3px}.external-link-icon{font-size:20px;font-weight:700;color:#f90}.instructions-list{display:flex;flex-direction:column;gap:20px}.instruction-step{display:flex;gap:20px;padding:20px;background:var(--background);border-radius:10px}.step-number{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:18px;flex-shrink:0}[data-theme=dark] .step-number{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.step-content h4{font-size:18px;margin-bottom:8px}.step-content p{color:var(--text-secondary);line-height:1.6}.nutrition-disclaimer{background:#fff3cd;border-left:4px solid #ffc107;padding:1.5rem;margin-bottom:2rem;border-radius:.5rem}.nutrition-disclaimer h4{color:#856404;margin:0 0 .5rem;font-size:1.1rem;font-weight:600}.nutrition-disclaimer p{color:#856404;margin:0;line-height:1.6;font-size:.9rem}[data-theme=dark] .nutrition-disclaimer{background:#ffc1071a;border-left-color:#ffc107}[data-theme=dark] .nutrition-disclaimer h4{color:#ffc107}[data-theme=dark] .nutrition-disclaimer p{color:#ffdb8b}.nutrition-section{margin-bottom:30px}.nutrition-section h4{font-size:18px;margin-bottom:15px;color:var(--text-primary)}.nutrition-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.nutrition-item{display:flex;justify-content:space-between;padding:12px 16px;background:var(--background);border-radius:8px}.nutrition-label{font-weight:500;color:var(--text-secondary);text-transform:capitalize}.nutrition-value{font-weight:600;color:var(--text-primary)}.comment-form{display:flex;flex-direction:column;gap:12px;margin-bottom:30px}.comment-input{padding:14px;border:2px solid var(--border-color);border-radius:8px;font-size:15px;resize:vertical;transition:var(--transition)}.comment-input:focus{outline:none;border-color:var(--primary-color)}.comment-submit{align-self:flex-end;padding:12px 30px;background:var(--primary-color);color:#fff;border-radius:8px;font-weight:500;font-size:15px}.comment-submit:hover{background:var(--primary-dark)}.comments-list{display:flex;flex-direction:column;gap:16px}.no-comments{text-align:center;padding:40px;color:var(--text-secondary)}.comment-item{padding:16px;background:var(--background);border-radius:8px}.comment-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.comment-author-info{display:flex;flex-direction:column;gap:4px}.comment-author{font-weight:600;color:var(--text-primary)}.comment-date{font-size:13px;color:var(--text-secondary)}.comment-delete-btn{padding:6px 12px;background:#ff44441a;color:#f44;border-radius:6px;font-size:16px;transition:var(--transition);flex-shrink:0}.comment-delete-btn:hover{background:#f44;color:#fff}.comment-text{color:var(--text-secondary);line-height:1.6}@media (max-width: 768px){.modal-overlay{padding:0;align-items:flex-start}.modal-content{max-height:100vh;border-radius:0}.modal-header{flex-direction:column;gap:20px}.modal-image{width:100%;height:200px}.modal-header-info h2{font-size:24px}.modal-body{padding:15px 20px 20px}.section-title{font-size:20px}.macros-grid{grid-template-columns:repeat(3,1fr)}.nutrition-grid{grid-template-columns:1fr}.content-section{margin-bottom:25px}.ingredient-item{padding:12px 14px;flex-wrap:wrap}.ingredient-info{flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.ingredient-name{word-break:break-word;overflow-wrap:break-word}.ingredient-amount{font-size:13px;word-break:break-word;white-space:normal}.ingredient-shop-btn{padding:6px 10px;gap:4px;min-width:60px}.amazon-icon{font-size:16px}.buy-text{font-size:12px}}.profile-edit-page{position:fixed;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#667eea,#764ba2);overflow-y:auto;z-index:1000}[data-theme=dark] .profile-edit-page{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.profile-edit-container{max-width:900px;margin:40px auto;background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;overflow:hidden}.profile-edit-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:30px;display:flex;justify-content:space-between;align-items:center}[data-theme=dark] .profile-edit-header{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.profile-edit-header h2{margin:0;font-size:32px;font-weight:600}.close-button{background:#fff3;border:none;color:#fff;font-size:24px;width:40px;height:40px;border-radius:50%;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center}.close-button:hover{background:#ffffff4d;transform:rotate(90deg)}.profile-form{padding:40px}.form-section h3{font-size:24px;font-weight:600;color:#333;margin-bottom:20px;border-bottom:2px solid #667eea;padding-bottom:10px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.form-actions{display:flex;justify-content:flex-end;gap:15px;margin-top:40px;padding-top:30px;border-top:2px solid #e0e0e0}.cancel-button,.save-button{padding:14px 32px;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;border:none}.cancel-button{background:#f5f5f5;color:#666}.cancel-button:hover{background:#e0e0e0;transform:translateY(-2px)}.save-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}[data-theme=dark] .save-button{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.save-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}@media (max-width: 768px){.profile-edit-container{margin:20px}.profile-edit-header{padding:20px}.profile-edit-header h2{font-size:24px}.profile-form{padding:20px}.form-grid{grid-template-columns:1fr}.form-actions{flex-direction:column}.cancel-button,.save-button{width:100%}}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;cursor:pointer}[data-theme=dark] .auth-page{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.auth-container{background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;padding:40px;width:100%;max-width:450px;cursor:default}.auth-header{text-align:center;margin-bottom:40px}.auth-header h1{font-size:32px;font-weight:700;color:#333;margin:0 0 10px}.auth-header p{font-size:16px;color:#666;margin:0}.auth-form{display:flex;flex-direction:column;gap:20px}.form-group input{padding:14px;border:2px solid #e0e0e0;border-radius:10px;font-size:16px;transition:all .3s ease}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.code-sent-message{padding:16px;background:#e8f5e9;border-left:4px solid #4caf50;border-radius:8px;color:#2e7d32;font-size:14px;line-height:1.5}.error-message{padding:12px;background:#ffebee;border-left:4px solid #f44336;border-radius:8px;color:#c62828;font-size:14px}.primary-button{padding:16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}[data-theme=dark] .primary-button{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.secondary-button{padding:16px;background:#f5f5f5;color:#666;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.auth-switch button,.auth-switch .auth-link{background:none;border:none;color:#667eea;font-weight:600;cursor:pointer;text-decoration:underline;font-size:14px}.auth-switch button:hover,.auth-switch .auth-link:hover{color:#764ba2}@media (max-width: 768px){.auth-container{padding:30px 20px}.auth-header h1{font-size:28px}}.register-page{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:40px 20px;overflow-y:auto;cursor:pointer}[data-theme=dark] .register-page{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.register-container{max-width:800px;margin:0 auto;background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000004d;overflow:hidden;cursor:default}.register-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:30px;text-align:center}[data-theme=dark] .register-header{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.register-header h2{margin:0 0 20px;font-size:28px;font-weight:600}.progress-bar{width:100%;height:8px;background:#ffffff4d;border-radius:10px;overflow:hidden;margin-bottom:10px}.progress-fill{height:100%;background:#fff;transition:width .5s ease;border-radius:10px}.step-indicator{margin:0;font-size:14px;opacity:.9}.register-form{padding:40px}.register-form h3{font-size:24px;font-weight:600;color:#333;margin:0 0 30px;text-align:center}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:30px}.form-group{display:flex;flex-direction:column}.form-group.full-width{grid-column:1 / -1}.form-group label{font-weight:600;color:#555;margin-bottom:8px;font-size:14px}.form-group input,.form-group select{padding:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;transition:all .3s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-section{margin-bottom:30px}.section-label{display:block;font-weight:600;color:#333;margin-bottom:12px;font-size:16px}.section-description{color:#666;font-size:14px;margin:-8px 0 12px}.multi-select-group{display:flex;flex-wrap:wrap;gap:10px}.tag-button{padding:10px 20px;border:2px solid #e0e0e0;background:#fff;border-radius:25px;cursor:pointer;transition:all .3s ease;font-size:14px;font-weight:500;color:#666;text-transform:capitalize}.tag-button:hover{border-color:#667eea;color:#667eea;transform:translateY(-2px)}.tag-button.selected{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent}[data-theme=dark] .tag-button.selected{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.add-item-group{display:flex;gap:10px;margin-bottom:15px}.add-item-group input{flex:1;padding:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;transition:all .3s ease}.add-item-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.add-item-group button{padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .3s ease}[data-theme=dark] .add-item-group button{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.add-item-group button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.item-list{display:flex;flex-wrap:wrap;gap:10px}.item-tag{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:14px;font-weight:500}[data-theme=dark] .item-tag{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.item-tag.allergy{background:linear-gradient(135deg,#f093fb,#f5576c)}.item-tag.health{background:linear-gradient(135deg,#fa709a,#fee140)}.item-tag button{background:#ffffff4d;border:none;color:#fff;width:20px;height:20px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .2s ease}.item-tag button:hover{background:#ffffff80;transform:scale(1.1)}.form-actions{display:flex;justify-content:space-between;gap:15px;margin-top:40px;padding-top:30px;border-top:2px solid #e0e0e0}.primary-button{flex:1;padding:16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.primary-button:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.secondary-button{flex:1;padding:16px;background:#f5f5f5;color:#666;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease}.secondary-button:hover{background:#e0e0e0;transform:translateY(-2px)}.terms-group{margin:20px 0}.checkbox-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-weight:400}.checkbox-label input[type=checkbox]{margin-top:3px;width:18px;height:18px;cursor:pointer;flex-shrink:0}.checkbox-label span{color:#666;font-size:14px;line-height:1.5}.auth-switch{text-align:center;color:#666;font-size:14px;padding-top:10px}.auth-switch .auth-link{background:none;border:none;color:#667eea;font-weight:600;cursor:pointer;text-decoration:underline;font-size:14px}.auth-switch .auth-link:hover{color:#764ba2}.terms-link{color:#667eea;text-decoration:underline;cursor:pointer;font-weight:600}.terms-link:hover{color:#764ba2;text-decoration:none}[data-theme=dark] .terms-link{color:#d32f2f}[data-theme=dark] .terms-link:hover{color:#b71c1c}[data-theme=dark] .checkbox-label span{color:#999}@media (max-width: 768px){.register-page{padding:20px 10px}.register-container{margin:0}.register-header{padding:20px}.register-header h2{font-size:22px}.register-form{padding:20px}.form-grid{grid-template-columns:1fr}.form-actions{flex-direction:column}}.app-footer{background:var(--card-bg, #fff);border-top:1px solid var(--border-color, #e0e0e0);margin-top:4rem;padding:3rem 2rem 1rem;color:var(--text-primary, #333)}.footer-content{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem;margin-bottom:2rem}.footer-list{list-style:none;padding:0;margin:0}.footer-disclaimer-section{max-width:1400px;margin:2rem auto;padding:0 2rem}.footer-section h3{font-size:1.5rem;color:var(--primary-color, #4CAF50);margin-bottom:.5rem}.footer-section h4{font-size:1.1rem;color:var(--text-primary, #000);margin-bottom:1rem;font-weight:600}.footer-section p{color:var(--text-secondary, #666);line-height:1.6}.footer-section ul{list-style:none;padding:0;margin:0}.footer-section li{margin-bottom:.5rem}.footer-link{background:none;border:none;color:var(--primary-color, #4CAF50);cursor:pointer;padding:0;font-size:.95rem;text-align:left;transition:all .2s ease;text-decoration:none;display:block;font-family:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.footer-link:hover{color:var(--primary-hover, #45a049);text-decoration:underline;transform:translate(2px)}[data-theme=dark] .footer-link{color:#64b5f6}[data-theme=dark] .footer-link:hover{color:#90caf9}.footer-disclaimer{background:#fff3cd;border-left:4px solid #ffc107;padding:1rem;border-radius:.5rem;font-size:.85rem;color:#856404;line-height:1.5}[data-theme=dark] .footer-disclaimer{background:#ffc1071a;border-left-color:#ffc107;color:#ffdb8b}.footer-bottom{max-width:1200px;margin:0 auto;padding-top:1.5rem;border-top:1px solid var(--border-color, #e0e0e0);text-align:center;color:var(--text-secondary, #666);font-size:.9rem}[data-theme=dark] .app-footer{background:var(--card-bg, #1e1e1e);border-top-color:var(--border-color, #333)}[data-theme=dark] .footer-section h3,[data-theme=dark] .footer-section h4{color:var(--text-primary, #e0e0e0)}[data-theme=dark] .footer-section p{color:var(--text-secondary, #999)}[data-theme=dark] .footer-bottom{border-top-color:var(--border-color, #333)}@media (max-width: 1024px){.footer-content{grid-template-columns:repeat(2,1fr);gap:2rem}}@media (max-width: 768px){.app-footer{padding:2rem 1rem 1rem}.footer-content{grid-template-columns:1fr;gap:1.5rem}.footer-section h3{font-size:1.3rem}.footer-section h4{font-size:1rem}.footer-disclaimer{font-size:.8rem}.footer-disclaimer-section{padding:0 1rem}}.legal-page{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000;padding:2rem;overflow-y:auto}.legal-container{background:var(--card-bg, #fff);border-radius:1rem;padding:3rem;max-width:900px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 10px 40px #0003}.legal-close{position:absolute;top:1.5rem;right:1.5rem;background:transparent;border:none;font-size:2rem;cursor:pointer;color:var(--text-secondary, #666);padding:.5rem;line-height:1;transition:all .2s ease;z-index:10}.legal-close:hover{color:var(--primary-color, #4CAF50);transform:rotate(90deg)}.legal-content h1{font-size:2.5rem;color:var(--text-primary, #000);margin-bottom:.5rem}.legal-updated{color:var(--text-secondary, #666);font-size:.9rem;margin-bottom:2rem;font-style:italic}.legal-section{margin-bottom:2.5rem}.legal-section h2{font-size:1.5rem;color:var(--primary-color, #4CAF50);margin-bottom:1rem}.legal-section p{line-height:1.8;color:var(--text-primary, #333);margin-bottom:1rem}.legal-section ul{list-style:disc;margin-left:1.5rem;margin-top:1rem}.legal-section li{line-height:1.8;color:var(--text-primary, #333);margin-bottom:.5rem}.legal-section strong{color:var(--text-primary, #000);font-weight:600}.disclaimer-box{background:#fff3cd;border-left:4px solid #ffc107;padding:1.5rem;margin:2rem 0;border-radius:.5rem}[data-theme=dark] .disclaimer-box{background:#ffc1071a;border-left-color:#ffc107}.disclaimer-box h3{color:#856404;margin-bottom:.5rem;font-size:1.2rem}[data-theme=dark] .disclaimer-box h3{color:#ffc107}.disclaimer-box p{color:#856404;margin:0}[data-theme=dark] .disclaimer-box p{color:#ffdb8b}[data-theme=dark] .legal-container{background:var(--card-bg, #1e1e1e)}[data-theme=dark] .legal-content h1,[data-theme=dark] .legal-section h2,[data-theme=dark] .legal-section p,[data-theme=dark] .legal-section li{color:var(--text-primary, #e0e0e0)}[data-theme=dark] .legal-updated{color:var(--text-secondary, #999)}.legal-container::-webkit-scrollbar{width:8px}.legal-container::-webkit-scrollbar-track{background:var(--bg-secondary, #f1f1f1);border-radius:10px}.legal-container::-webkit-scrollbar-thumb{background:var(--primary-color, #4CAF50);border-radius:10px}.legal-container::-webkit-scrollbar-thumb:hover{background:var(--primary-hover, #45a049)}@media (max-width: 768px){.legal-page{padding:1rem}.legal-container{padding:2rem 1.5rem;max-height:95vh}.legal-content h1{font-size:2rem}.legal-section h2{font-size:1.3rem}.legal-close{top:1rem;right:1rem}}.selection-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-in}.selection-modal{background:var(--card-background);border-radius:16px;max-width:700px;width:90%;max-height:85vh;display:flex;flex-direction:column;position:relative;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.selection-modal-close{position:absolute;top:20px;right:20px;width:40px;height:40px;border-radius:50%;background:var(--background);border:2px solid var(--border-color);color:var(--text-primary);font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--transition);z-index:1}.selection-modal-close:hover{background:var(--primary-color);color:#fff;transform:rotate(90deg)}.selection-modal-header{padding:40px 30px 20px;border-bottom:2px solid var(--border-color)}.selection-modal-header h2{font-size:28px;margin:0 0 10px;color:var(--text-primary)}.selection-modal-header p{font-size:14px;color:var(--text-secondary);margin:0}.selection-modal-search{padding:20px 30px;border-bottom:1px solid var(--border-color)}.selection-search-input{width:100%;padding:12px 20px;border:2px solid var(--border-color);border-radius:25px;font-size:16px;background:var(--background);color:var(--text-primary);transition:var(--transition)}.selection-search-input:focus{outline:none;border-color:var(--primary-color)}.selection-modal-content{flex:1;overflow-y:auto;padding:30px}.selection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px}.selection-item{padding:20px;background:var(--background);border:2px solid var(--border-color);border-radius:12px;cursor:pointer;transition:var(--transition);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.selection-item:hover{transform:translateY(-4px);box-shadow:0 8px 20px #667eea33;border-color:var(--primary-color)}.selection-item-icon{font-size:32px}.selection-item-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:capitalize}.allergy-item:hover{border-color:#ff9800;box-shadow:0 8px 20px #ff980033}.diet-item:hover{border-color:#4caf50;box-shadow:0 8px 20px #4caf5033}[data-theme=dark] .allergy-item:hover{border-color:#ffa726}[data-theme=dark] .diet-item:hover{border-color:#66bb6a}.selection-loading{display:flex;align-items:center;justify-content:center;min-height:200px}.no-results{text-align:center;padding:60px 20px;color:var(--text-secondary)}.no-results p{font-size:16px}@media (max-width: 768px){.selection-modal{width:95%;max-height:90vh}.selection-modal-header{padding:30px 20px 15px}.selection-modal-header h2{font-size:24px}.selection-modal-search{padding:15px 20px}.selection-modal-content{padding:20px}.selection-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.selection-item{padding:15px}.selection-item-icon{font-size:24px}.selection-item-name{font-size:13px}}.category-page{max-width:1400px;margin:0 auto;padding:20px}.category-page-loading{display:flex;align-items:center;justify-content:center;min-height:400px}.category-page-header{display:flex;align-items:center;gap:20px;padding:40px 0;border-bottom:2px solid var(--border-color);margin-bottom:40px}.category-icon{font-size:64px;width:100px;height:100px;display:flex;align-items:center;justify-content:center;background:var(--card-background);border-radius:20px;border:3px solid var(--border-color)}.category-info h1{font-size:36px;margin:0 0 10px;color:var(--text-primary)}.category-info p{font-size:16px;color:var(--text-secondary);margin:0}.category-meals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:30px;margin-bottom:40px}.no-meals{text-align:center;padding:80px 20px}.no-meals p{font-size:18px;color:var(--text-secondary);margin-bottom:30px}.back-home-btn{padding:12px 30px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:25px;font-size:16px;font-weight:600;cursor:pointer;transition:var(--transition)}.back-home-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}[data-theme=dark] .back-home-btn{background:linear-gradient(135deg,#d32f2f,#b71c1c)}.loading-more{display:flex;justify-content:center;padding:40px 20px}.end-of-list{text-align:center;padding:40px 20px;color:var(--text-secondary);font-size:16px}@media (max-width: 768px){.category-page{padding:15px}.category-page-header{flex-direction:column;text-align:center;padding:30px 0}.category-icon{font-size:48px;width:80px;height:80px}.category-info h1{font-size:28px}.category-info p{font-size:14px}.category-meals-grid{grid-template-columns:1fr;gap:20px}}.edit-recipe-page{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;overflow-y:auto;padding:20px}.edit-recipe-container{background:var(--card-background);border-radius:16px;max-width:900px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.edit-recipe-header{display:flex;justify-content:space-between;align-items:center;padding:30px;border-bottom:2px solid var(--border-color)}.edit-recipe-header h1{margin:0;font-size:28px;color:var(--text-primary)}.close-btn{width:40px;height:40px;border-radius:50%;background:var(--background);border:2px solid var(--border-color);color:var(--text-primary);font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--transition)}.close-btn:hover{background:var(--primary-color);color:#fff;transform:rotate(90deg)}.edit-recipe-form{flex:1;overflow-y:auto;padding:30px}.form-section{margin-bottom:40px}.form-section h2{font-size:20px;color:var(--text-primary);margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid var(--border-color)}.form-group{margin-bottom:20px}.form-group label{display:block;font-weight:600;margin-bottom:8px;color:var(--text-primary);font-size:14px}.form-group input,.form-group textarea,.form-group select{width:100%;padding:12px;border:2px solid var(--border-color);border-radius:8px;font-size:14px;background:var(--background);color:var(--text-primary);transition:var(--transition)}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--primary-color)}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:20px}.checkbox-group{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}.checkbox-label{display:flex;align-items:center;gap:8px;padding:8px;background:var(--background);border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:var(--transition)}.checkbox-label:hover{border-color:var(--primary-color);transform:translateY(-2px)}.checkbox-label input[type=checkbox]{width:auto;cursor:pointer}.tags-input{display:flex;gap:10px;margin-bottom:15px}.tags-input input{flex:1;padding:10px;border:2px solid var(--border-color);border-radius:8px;background:var(--background);color:var(--text-primary)}.tags-list{display:flex;flex-wrap:wrap;gap:8px}.tag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--primary-color);color:#fff;border-radius:16px;font-size:13px}.tag button{background:none;border:none;color:#fff;font-size:18px;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:var(--transition)}.tag button:hover{background:#fff3}.ingredient-item,.instruction-item{background:var(--background);padding:15px;border:2px solid var(--border-color);border-radius:8px;margin-bottom:15px}.instruction-item{background:var(--background);padding:15px;border:2px solid var(--border-color);border-radius:8px;margin-bottom:15px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}.instruction-item h4{margin:0 0 10px;color:var(--text-primary);grid-column:1 / -1}.instruction-item input,.instruction-item textarea{margin-bottom:10px;width:100%;grid-column:1}.instruction-item .remove-btn{grid-column:2;align-self:center}.add-btn,.remove-btn{padding:10px 20px;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:var(--transition);font-size:14px}.add-btn{background:var(--primary-color);color:#fff}.add-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.remove-btn{background:#f44336;color:#fff}.remove-btn:hover{background:#d32f2f;transform:translateY(-2px)}.form-actions{display:flex;justify-content:flex-end;gap:15px;padding:20px 0 0;border-top:2px solid var(--border-color)}.cancel-btn,.save-btn{padding:12px 30px;border:none;border-radius:8px;font-weight:600;font-size:16px;cursor:pointer;transition:var(--transition)}.cancel-btn{background:var(--background);color:var(--text-primary);border:2px solid var(--border-color)}.cancel-btn:hover{background:var(--border-color)}.save-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.save-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}[data-theme=dark] .save-btn{background:linear-gradient(135deg,#d32f2f,#b71c1c)}@media (max-width: 768px){.edit-recipe-page{padding:10px}.edit-recipe-header{padding:20px}.edit-recipe-header h1{font-size:22px}.edit-recipe-form{padding:20px}.form-row,.checkbox-group{grid-template-columns:1fr}.form-actions{flex-direction:column-reverse}.cancel-btn,.save-btn{width:100%}}.image-prompt-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1001}.image-prompt-modal-content{background-color:#fff;padding:25px;border-radius:8px;width:90%;max-width:500px;box-shadow:0 4px 15px #0003;position:relative}.modal-close-btn{position:absolute;top:15px;right:15px;background:none;border:none;font-size:24px;cursor:pointer;color:#666;padding:5px;line-height:1;transition:color .2s}.modal-close-btn:hover{color:#000}.modal-close-btn:disabled{cursor:not-allowed;opacity:.5}.image-prompt-modal-content h2{margin-top:0;font-size:22px;padding-right:30px}.image-prompt-modal-content p{margin-bottom:20px}.prompt-option{display:flex;align-items:center;margin-bottom:15px}.prompt-option input[type=checkbox]{margin-right:10px}.prompt-textarea{width:100%;padding:10px;border-radius:5px;border:1px solid #ccc;min-height:100px;margin-bottom:20px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.modal-actions button{padding:10px 15px;border:none;border-radius:5px;cursor:pointer}.modal-actions .cancel-btn{background-color:#f0f0f0}.modal-actions .generate-btn{background-color:#007bff;color:#fff}.modal-actions .generate-btn.loading{background-color:#0056b3;cursor:not-allowed}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes slideOut{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.toast-container{position:fixed;top:20px;right:20px;z-index:10000;display:flex;flex-direction:column;gap:12px;max-width:400px;pointer-events:none}.toast{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border-radius:12px;box-shadow:0 8px 24px #00000026,0 2px 8px #0000001a;animation:slideIn .3s ease-out forwards;pointer-events:all;min-width:320px;border-left:4px solid;transition:transform .2s,box-shadow .2s}.toast:hover{transform:translateY(-2px);box-shadow:0 12px 28px #0003,0 4px 12px #00000026}.toast-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center}.toast-message{flex:1;font-size:14px;line-height:1.5;color:#1a1a1a;font-weight:500}.toast-close{flex-shrink:0;background:none;border:none;padding:4px;cursor:pointer;color:#666;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:background-color .2s,color .2s}.toast-close:hover{background-color:#0000000d;color:#1a1a1a}.toast-info{border-left-color:#3b82f6}.toast-info .toast-icon{color:#3b82f6}.toast-success{border-left-color:#10b981}.toast-success .toast-icon{color:#10b981}.toast-error{border-left-color:#ef4444}.toast-error .toast-icon{color:#ef4444}.toast-warning{border-left-color:#f59e0b}.toast-warning .toast-icon{color:#f59e0b}@media (prefers-color-scheme: dark){.toast{background:#2a2a2a;box-shadow:0 8px 24px #0000004d,0 2px 8px #0003}.toast:hover{box-shadow:0 12px 28px #0006,0 4px 12px #0000004d}.toast-message{color:#e5e5e5}.toast-close{color:#999}.toast-close:hover{background-color:#ffffff1a;color:#e5e5e5}}@media (max-width: 480px){.toast-container{top:10px;right:10px;left:10px;max-width:none}.toast{min-width:auto;width:100%}}.app{min-height:100vh;display:flex;flex-direction:column}.app.loading{justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2)}.loading-spinner{color:#fff;font-size:24px;font-weight:600;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.meal-detail-loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#ffffffb3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease-in}[data-theme=dark] .meal-detail-loading-overlay{background-color:#0009}.meal-detail-loading-spinner{width:60px;height:60px;border:5px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}[data-theme=dark] .meal-detail-loading-spinner{border:5px solid rgba(211,47,47,.2);border-top-color:#d32f2f}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}.main-content{flex:1;max-width:1400px;width:100%;margin:0 auto;padding:20px}.loading-more{display:flex;justify-content:center;align-items:center;padding:40px 20px}.loading-more .loading-spinner{color:#e74c3c;font-size:18px;font-weight:500;animation:pulse 2s ease-in-out infinite}.end-of-list{display:flex;justify-content:center;align-items:center;padding:40px 20px;color:#888}.end-of-list p{font-size:16px;font-weight:500;margin:0}@media (max-width: 768px){.main-content{padding:15px}}:root{--primary-color: #4CAF50;--primary-dark: #45a049;--secondary-color: #2196F3;--accent-color: #FF9800;--text-primary: #212121;--text-secondary: #757575;--background: #f5f5f5;--card-background: #ffffff;--border-color: #e0e0e0;--shadow-sm: 0 2px 4px rgba(0,0,0,.1);--shadow-md: 0 4px 6px rgba(0,0,0,.1);--shadow-lg: 0 10px 25px rgba(0,0,0,.15);--border-radius: 12px;--transition: all .3s ease}[data-theme=dark]{--primary-color: #66BB6A;--primary-dark: #5cb860;--secondary-color: #42A5F5;--accent-color: #FFA726;--text-primary: #e0e0e0;--text-secondary: #b0b0b0;--background: #121212;--card-background: #1e1e1e;--border-color: #333333;--shadow-sm: 0 2px 4px rgba(0,0,0,.3);--shadow-md: 0 4px 6px rgba(0,0,0,.4);--shadow-lg: 0 10px 25px rgba(0,0,0,.5)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--background);color:var(--text-primary);line-height:1.6;transition:background-color .3s ease,color .3s ease;overflow-x:hidden}#root{min-height:100vh}button{font-family:inherit;cursor:pointer;border:none;background:none;transition:var(--transition)}input,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}img{max-width:100%;height:auto}
