* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
body {
 font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
 background: #f5f9ff;
 color: #1a1a1a;
 line-height: 1.5;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}
.container {
 max-width: 1400px;
 margin: 0 auto;
 padding: 0 20px;
}
.header-top {
 background: #bbe0ff;
 border-bottom: 1px solid #a0c4e8;
 position: sticky;
 top: 0;
 z-index: 100;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.header-tabs {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 8px 0;
 background: #bbe0ff;
 min-height: 60px;
 position: relative;
}
.header-left {
 display: flex;
 align-items: center;
 flex-shrink: 0;
 width: 80px;
 z-index: 2;
}
.menu-toggle {
 background: none;
 border: none;
 cursor: pointer;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 width: 28px;
 height: 20px;
 padding: 0;
}
.menu-toggle span {
 width: 100%;
 height: 2px;
 background-color: #1a1a1a;
 border-radius: 2px;
 transition: all 0.2s;
}
.header-center {
 position: absolute;
 left: 50%;
 transform: translateX(-50%);
 z-index: 1;
}
.logo-wrapper {
 display: flex;
 align-items: center;
 gap: 12px;
 text-decoration: none;
}
.site-logo {
 height: 40px;
 width: auto;
 display: block;
}
.logo-center {
 font-size: 20px;
 font-weight: 700;
 color: #1a1a1a;
 font-family: 'Inter', 'Playfair Display', serif;
 letter-spacing: -0.3px;
}
.header-right {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 flex-shrink: 0;
 width: 80px;
 z-index: 2;
}
.auth-buttons {
 display: flex;
 gap: 12px;
}
.login-btn, .register-btn {
 padding: 6px 14px;
 border-radius: 30px;
 font-size: 13px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
 text-decoration: none;
 display: inline-block;
}
.login-btn {
 background: transparent;
 border: 1.5px solid #1a1a1a;
 color: #1a1a1a;
}
.login-btn:hover {
 background: #1a1a1a;
 color: #bbe0ff;
 transform: translateY(-1px);
}
.register-btn {
 background: #1a1a1a;
 border: 1.5px solid #1a1a1a;
 color: #bbe0ff;
}
.register-btn:hover {
 background: #333;
 border-color: #333;
 transform: translateY(-1px);
}
.user-info {
 display: flex;
 align-items: center;
 gap: 12px;
}
.username-link {
 color: #1a1a1a;
 text-decoration: none;
 font-weight: 500;
 font-size: 13px;
 padding: 6px 12px;
 background: rgba(255,255,255,0.5);
 border-radius: 30px;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
}
.username-link:hover {
 background: #1a1a1a;
 color: white;
}
.profile-btn {
 padding: 6px 12px;
 background: #1a1a1a;
 color: #bbe0ff;
 text-decoration: none;
 border-radius: 30px;
 font-size: 13px;
 font-weight: 500;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
 display: inline-block;
}
.profile-btn:hover {
 background: #333;
 transform: translateY(-1px);
}
.logout-btn {
 padding: 6px 12px;
 background: transparent;
 border: 1px solid #1a1a1a;
 color: #1a1a1a;
 border-radius: 30px;
 cursor: pointer;
 font-size: 13px;
 font-weight: 500;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
}
.logout-btn:hover {
 background: #1a1a1a;
 color: #bbe0ff;
}
.search-section {
 background: white;
 border-radius: 24px;
 padding: 24px;
 margin: 20px 0 30px 0;
 box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.search-box {
 display: flex;
 gap: 10px;
}
#searchInput {
 flex: 1;
 padding: 14px 20px;
 border: 1.5px solid #e0e8f0;
 border-radius: 50px;
 font-size: 15px;
 font-family: 'Inter', sans-serif;
 outline: none;
 background: #ffffff;
 transition: all 0.2s;
}
#searchInput:focus {
 border-color: #bbe0ff;
 box-shadow: 0 0 0 3px rgba(187, 224, 255, 0.3);
}
.search-btn {
 background: #1a1a1a;
 border: none;
 border-radius: 50px;
 width: 50px;
 cursor: pointer;
 font-size: 18px;
 transition: all 0.2s;
 color: white;
}
.search-btn:hover {
 background: #333;
 transform: scale(1.02);
}
.popular-queries {
 margin-top: 15px;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 12px;
}
.popular-label {
 color: #666;
 font-size: 13px;
 font-weight: 500;
}
.popular-tag {
 text-decoration: none;
 color: #1a1a1a;
 font-size: 13px;
 font-weight: 500;
 background: #f0f4fa;
 padding: 6px 14px;
 border-radius: 30px;
 transition: all 0.2s;
}
.popular-tag:hover {
 background: #bbe0ff;
 color: #1a1a1a;
 transform: translateY(-1px);
}
.results-header {
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 margin-bottom: 25px;
}
.results-title {
 font-size: 28px;
 color: #1a1a1a;
 font-weight: 600;
 font-family: 'Inter', sans-serif;
 letter-spacing: -0.5px;
}
.results-count {
 color: #666;
 font-size: 14px;
 font-weight: 500;
}
.recipes-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 25px;
}
.recipe-card {
 background: white;
 border-radius: 24px;
 overflow: visible;
 box-shadow: 0 4px 15px rgba(0,0,0,0.05);
 transition: transform 0.25s, box-shadow 0.25s;
}
.recipe-card:hover {
 transform: translateY(-6px);
 box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.recipe-image {
 height: 180px;
 overflow: visible;
}
.recipe-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s;
}
.recipe-card:hover .recipe-image img {
 transform: scale(1.05);
}
.recipe-info {
 padding: 18px;
}
.recipe-title {
 font-size: 18px;
 font-weight: 600;
 color: #1a1a1a;
 margin-bottom: 6px;
 font-family: 'Inter', sans-serif;
 letter-spacing: -0.3px;
}
.recipe-category {
 font-size: 11px;
 font-weight: 600;
 color: #4a6a8a;
 text-transform: uppercase;
 letter-spacing: 0.8px;
 margin-bottom: 8px;
}
.recipe-ingredients {
 font-size: 13px;
 color: #666;
 margin-bottom: 15px;
 line-height: 1.5;
}
.recipe-image-container {
 position: relative;
 overflow: visible;
 height: 180px;
}
.recipe-image-container .recipe-image {
 width: 100%;
 height: 100%;
}
.recipe-image-container .recipe-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s;
}
.recipe-card:hover .recipe-image-container .recipe-image img {
 transform: scale(1.05);
}
.save-recipe-btn {
 position: absolute;
 top: 10px;
 right: 10px;
 width: 36px;
 height: 36px;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.7);
 color: white;
 border: none;
 cursor: pointer;
 font-size: 18px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s;
 transform: scale(1) !important;
 z-index: 10;
}
.save-recipe-btn:hover {
 background: #e74c3c;
 transform: scale(1.1);
}
.save-recipe-btn.saved {
 background: #e74c3c;
}
.save-recipe-btn.saved:hover {
 background: #c0392b;
}
.recipe-actions {
 display: flex;
 gap: 10px;
 margin-top: 10px;
}
.recipe-actions .recipe-btn {
 flex: 1;
 padding: 8px 12px;
 border: none;
 border-radius: 30px;
 font-size: 13px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 text-align: center;
 font-family: 'Inter', sans-serif;
}
.view-recipe-btn {
 background: #1a1a1a;
 color: white;
}
.view-recipe-btn:hover {
 background: #333;
 transform: translateY(-2px);
}
.edit-btn {
 background: #3498db;
 color: white;
}
.edit-btn:hover {
 background: #2980b9;
 transform: translateY(-2px);
}
.delete-btn {
 background: #e74c3c;
 color: white;
}
.delete-btn:hover {
 background: #c0392b;
 transform: translateY(-2px);
}
.overlay { z-index: 998;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.5);
 z-index: 998; /* overlay */
 opacity: 0;
 visibility: hidden;
 transition: opacity 0.3s, visibility 0.3s;
}
.overlay.active {
 opacity: 1;
 visibility: visible;
}
.side-panel {
 position: fixed;
 top: 0;
 left: -320px;
 width: 320px;
 height: 100%;
 background: rgb(248, 250, 255);
 z-index: 999;
 transition: left 0.3s ease;
 box-shadow: 2px 0 20px rgba(187, 224, 255, 0.1);
 overflow-y: auto;
}
.side-panel.open {
 left: 0;
}
.panel-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 20px;
 border-bottom: 1px solid #e0e8f0;
 background: #bbe0ff;
}
.panel-header h3 {
 color: #1a1a1a;
 font-size: 20px;
 font-weight: 600;
 font-family: 'Inter', sans-serif;
 letter-spacing: -0.3px;
}
.panel-close {
 background: none;
 border: none;
 font-size: 28px;
 cursor: pointer;
 color: #666;
 width: 32px;
 height: 32px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 transition: all 0.2s;
}
.panel-close:hover {
 background: #f0f4fa;
 color: #1a1a1a;
}
.panel-categories {
 display: flex;
 flex-direction: column;
 padding: 10px 0;
}
.panel-category {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 14px 20px;
 text-decoration: none;
 color: #1a1a1a;
 font-size: 15px;
 font-weight: 500;
 transition: all 0.2s;
 border-left: 3px solid transparent;
 font-family: 'Inter', sans-serif;
}
.panel-category:hover {
 background: #f0f4fa;
 border-left-color: #bbe0ff;
 color: #1a1a1a;
}
.panel-category .count {
 color: #666;
 font-size: 13px;
 font-weight: 500;
 background: #f0f4fa;
 padding: 2px 8px;
 border-radius: 20px;
}
.profile-page {
 padding: 40px 0;
}
.profile-header-full {
 background: white;
 border-radius: 24px;
 padding: 30px;
 margin-bottom: 30px;
 display: flex;
 gap: 30px;
 align-items: center;
 box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.avatar-wrapper {
 position: relative;
 cursor: pointer;
 width: 100px;
 height: 100px;
 border-radius: 50%;
 overflow: visible;
}
.avatar-upload-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.5);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 opacity: 1;
 transition: background 0.3s ease;
 cursor: pointer;
}
.avatar-upload-overlay span {
 color: white;
 font-size: 32px;
 font-weight: bold;
 transform: scale(1);
 transition: transform 0.2s ease;
}
.avatar-upload-overlay:hover {
 background: rgba(0, 0, 0, 0.7);
}
.avatar-upload-overlay:hover span {
 transform: scale(1.1);
}
.avatar-placeholder, .avatar-image {
 width: 100%;
 height: 100%;
 border-radius: 50%;
 object-fit: cover;
}
.avatar-image {
 border: 3px solid #bbe0ff;
}
.avatar-placeholder {
 background: linear-gradient(135deg, #bbe0ff 0%, #a0c4e8 100%);
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 48px;
 color: #1a1a1a;
}
.profile-info-full {
 flex: 1;
}
.profile-name {
 font-size: 28px;
 font-weight: 600;
 color: #1a1a1a;
 margin-bottom: 5px;
 font-family: 'Inter', sans-serif;
}
.profile-email {
 color: #666;
 margin-bottom: 5px;
 font-size: 14px;
}
.profile-join {
 color: #8b7355;
 font-size: 13px;
}
.profile-logout-btn {
 margin-top: 15px;
 padding: 8px 20px;
 background: transparent;
 border: 1.5px solid #e74c3c;
 color: #e74c3c;
 border-radius: 30px;
 cursor: pointer;
 font-size: 13px;
 font-weight: 500;
 transition: all 0.2s;
 width: 100%;
}
.profile-logout-btn:hover {
 background: #e74c3c;
 color: white;
 transform: translateY(-2px);
}
.profile-nav {
 display: flex;
 justify-content: center;
 gap: 15px;
 margin-bottom: 30px;
 flex-wrap: wrap;
}
.nav-btn {
 background: white;
 border: 2px solid #e0e8f0;
 border-radius: 50px;
 padding: 10px 20px;
 display: flex;
 align-items: center;
 gap: 8px;
 cursor: pointer;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
 font-size: 14px;
 font-weight: 500;
 color: #1a1a1a;
}
.nav-btn:hover {
 border-color: #1a1a1a;
 transform: translateY(-2px);
}
.nav-btn.active {
 background: #1a1a1a;
 border-color: #1a1a1a;
 color: white;
}
.nav-icon {
 font-size: 16px;
}
.nav-count {
 background: #e0e8f0;
 color: #1a1a1a;
 padding: 2px 8px;
 border-radius: 30px;
 font-size: 11px;
 font-weight: 600;
 margin-left: 5px;
 transition: all 0.3s;
 min-width: 24px;
 text-align: center;
 display: inline-block;
}
.nav-btn.active .nav-count {
 background: rgba(255,255,255,0.2);
 color: white;
}
.category-filter {
 display: flex;
 flex-wrap: wrap;
 gap: 10px;
 margin-bottom: 30px;
 padding: 10px 0 15px 10px;
 border-bottom: 1px solid #e0e8f0;
}
.filter-chip {
 background: #f5f7fa;
 border: none;
 border-radius: 40px;
 padding: 8px 18px;
 font-size: 13px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 color: #1a1a1a;
 font-family: 'Inter', sans-serif;
}
.filter-chip:hover {
 background: #e0e8f0;
}
.filter-chip.active {
 background: #1a1a1a;
 color: white;
}
.tab-pane {
 padding: 0 10px;
}
.recipes-grid {
 gap: 20px;
}
.tab-pane.active {
 display: block;
}
.no-recipes {
 text-align: center;
 padding: 60px;
 background: white;
 border-radius: 24px;
 color: #666;
 font-size: 16px;
 font-weight: 500;
 grid-column: 1 / -1;
}
.no-results {
 text-align: center;
 padding: 60px;
 background: white;
 border-radius: 24px;
 color: #666;
 font-size: 16px;
 font-weight: 500;
}
.footer {
 background: #2c3e50;
 color: white;
 padding-top: 40px;
 margin-top: 50px;
}
.footer-container {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 30px;
 padding: 0 20px;
 max-width: 1200px;
 margin: 0 auto;
}
.footer-col h4 {
 margin-bottom: 15px;
 font-size: 16px;
 position: relative;
 padding-bottom: 8px;
}
.footer-col h4::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 40px;
 height: 2px;
 background: #bbe0ff;
}
.footer-col ul {
 list-style: none;
}
.footer-col ul li {
 margin-bottom: 8px;
}
.footer-col a {
 color: #ccc;
 text-decoration: none;
 transition: color 0.2s;
}
.footer-col a:hover {
 color: #bbe0ff;
}
.footer-links {
 list-style: none;
 padding: 0;
 margin: 0;
}
.footer-links li {
 margin-bottom: 8px;
}
.footer-links a {
 color: #ccc;
 text-decoration: none;
 font-size: 12px;
 transition: color 0.2s;
}
.footer-links a:hover {
 color: #bbe0ff;
}
.footer-bottom {
 text-align: center;
 padding: 20px;
 border-top: 1px solid rgba(255,255,255,0.1);
 margin-top: 30px;
 font-size: 12px;
 color: #aaa;
}
.category-header {
 text-align: center;
 margin: 40px 0 30px;
}
.category-title {
 font-size: 36px;
 font-weight: 700;
 color: #1a1a1a;
 margin-bottom: 12px;
 font-family: 'Inter', 'Playfair Display', serif;
 letter-spacing: -0.5px;
}
.category-description {
 font-size: 16px;
 color: #666;
 margin-bottom: 8px;
}
.category-count {
 font-size: 14px;
 color: #4a6a8a;
 font-weight: 500;
}
.sort-section {
 display: flex;
 justify-content: flex-end;
 align-items: center;
 gap: 20px;
 margin-bottom: 30px;
 padding: 15px 0;
 border-bottom: 1px solid #e0e8f0;
 flex-wrap: wrap;
}
.sort-section .search-box {
 flex: 0 1 auto;
 display: flex;
 gap: 10px;
 width: 320px;
 margin-right: auto;
}
.sort-section .search-box input {
 flex: 1;
 padding: 10px 16px;
 border: 1.5px solid #e0e8f0;
 border-radius: 30px;
 font-size: 14px;
 font-family: 'Inter', sans-serif;
 outline: none;
 min-width: 200px;
}
.sort-section .search-box input:focus {
 border-color: #bbe0ff;
 box-shadow: 0 0 0 3px rgba(187, 224, 255, 0.3);
}
.sort-section .search-box .search-btn {
 width: 42px;
 height: 42px;
 background: #1a1a1a;
 border: none;
 border-radius: 30px;
 cursor: pointer;
 font-size: 16px;
 color: white;
 transition: all 0.2s;
 display: flex;
 align-items: center;
 justify-content: center;
}
.sort-section .search-box .search-btn:hover {
 background: #333;
 transform: scale(1.02);
}
.sort-section label {
 font-size: 14px;
 color: #666;
 white-space: nowrap;
}
.sort-section select {
 padding: 10px 16px;
 border: 1.5px solid #e0e8f0;
 border-radius: 30px;
 font-size: 14px;
 font-family: 'Inter', sans-serif;
 background: white;
 cursor: pointer;
 min-width: 160px;
}
.sort-section select:focus {
 outline: none;
 border-color: #bbe0ff;
}
.welcome-slider-container {
 position: relative;
 background: linear-gradient(135deg, #bbe0ff 0%, #d4e6ff 100%);
 border-radius: 24px;
 margin: 20px 0 30px 0;
 box-shadow: 0 4px 20px rgba(0,0,0,0.05);
 overflow: visible;
}
.welcome-slider {
 position: relative;
 min-height: 320px;
}
.welcome-slide {
 display: none;
 animation: fadeIn 0.5s ease;
}
.welcome-slide.active {
 display: block;
}
@keyframes fadeIn {
 from {
 opacity: 0;
 transform: translateX(20px);
 }
 to {
 opacity: 1;
 transform: translateX(0);
 }
}
.welcome-content {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 40px;
 flex-wrap: wrap;
 padding: 40px;
}
.welcome-text {
 flex: 2;
 min-width: 250px;
}
.welcome-title {
 font-size: 32px;
 font-weight: 700;
 color: #1a1a1a;
 margin-bottom: 16px;
 font-family: 'Inter', 'Playfair Display', serif;
 letter-spacing: -0.5px;
}
.welcome-description {
 font-size: 16px;
 color: #2c3e50;
 line-height: 1.6;
 margin-bottom: 20px;
 text-align: justify;
}
.welcome-description strong {
 font-weight: 700;
 color: #1a1a1a;
}
.welcome-buttons {
 margin-top: 20px;
 text-align: center;
}
.welcome-btn {
 position: relative;
 z-index: 1;
 pointer-events: auto !important;
 display: inline-block;
 background: #1a1a1a;
 color: white;
 padding: 12px 32px;
 text-decoration: none;
 border-radius: 40px;
 font-weight: 600;
 font-size: 16px;
 transition: all 0.3s;
 cursor: pointer;
 border: none;
}
.welcome-btn:hover {
 background: #333;
 transform: translateY(-2px);
}
.welcome-image {
 flex: 1;
 text-align: center;
 min-width: 150px;
 display: flex;
 align-items: flex-end;
 justify-content: center;
 position: relative;
}
.mascot-img {
 max-width: 100%;
 height: auto;
 max-height: min(60vh, 400px);
 filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
 display: block;
 object-fit: contain;
 object-position: bottom center;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .welcome-image {
 height: auto !important;
 max-height: 200px !important;
 }
 .welcome-image img {
 position: static !important;
 max-height: 200px !important;
 }
 .welcome-buttons {
 margin-bottom: 15px;
 }
 .welcome-description {
 text-align: justify !important;
 }
 
 .welcome-slider {
 min-height: auto !important;
 height: auto !important;
 }
 
 .welcome-content {
 padding: 10px 15px !important;
 gap: 5px !important;
 flex-direction: column !important;
 }
 
 .welcome-text {
 min-width: auto !important;
 flex: auto !important;
 }
 
 .welcome-title {
 font-size: 20px !important;
 margin-bottom: 5px !important;
 }
 
 .welcome-description {
 font-size: 13px !important;
 line-height: 1.4 !important;
 margin-bottom: 10px !important;
 }
 
 .welcome-image {
 margin-bottom: 0 !important;
 min-width: auto !important;
 flex: auto !important;
 }
 
 .mascot-img {
 max-height: 350px !important;
 }
 
 .welcome-buttons {
 margin-top: 10px !important;
 }
 
 .welcome-desktop { display: none !important; }
 .welcome-mobile { display: block !important; }
}
 .welcome-image {
 display: flex !important;
 align-items: flex-end !important;
 justify-content: center !important;
 margin-bottom: 0 !important;
 }
 
 .welcome-image img,
 .mascot-img {
 max-height: 350px !important;
 position: relative !important;
 top: auto !important;
 left: auto !important;
 right: auto !important;
 bottom: 0 !important;
 }
.social-links {
 display: flex;
 flex-wrap: wrap;
 gap: 15px;
 margin-top: 20px;
}
.social-link {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 12px 24px;
 background: white;
 border-radius: 50px;
 text-decoration: none;
 font-weight: 500;
 font-size: 14px;
 transition: all 0.3s;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.social-icon-img {
 width: 35px;
 height: 35px;
 object-fit: contain;
}
.social-link.telegram {
 color: #26A5E4;
 border: 1px solid #26A5E4;
}
.social-link.telegram:hover {
 background: #26A5E4;
 color: white;
 transform: translateY(-2px);
}
.social-link.telegram:hover .social-icon-img {
 filter: brightness(0) invert(1);
}
.social-link.vk {
 color: #4C75A3;
 border: 1px solid #4C75A3;
}
.social-link.vk:hover {
 background: #4C75A3;
 color: white;
 transform: translateY(-2px);
}
.social-link.vk:hover .social-icon-img {
 filter: brightness(0) invert(1);
}
.social-link.ok {
 color: #F58220;
 border: 1px solid #F58220;
}
.social-link.ok:hover {
 background: #F58220;
 color: white;
 transform: translateY(-2px);
}
.social-link.ok:hover .social-icon-img {
 filter: brightness(0) invert(1);
}
.social-link.youtube {
 color: #FF0000;
 border: 1px solid #FF0000;
}
.social-link.youtube:hover {
 background: #FF0000;
 color: white;
 transform: translateY(-2px);
}
.social-link.youtube:hover .social-icon-img {
 filter: brightness(0) invert(1);
}
.install-app-btn {
 display: inline-flex;
 align-items: center;
 gap: 12px;
 padding: 14px 28px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 50px;
 font-size: 16px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s;
 margin-top: 10px;
}
.install-app-btn:hover {
 background: #333;
 transform: translateY(-2px);
}
.install-app-btn .install-icon {
 font-size: 20px;
}
.install-hint {
 font-size: 12px;
 color: #666;
 margin-top: 10px;
}
.slider-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 background: rgba(0, 0, 0, 0.5);
 color: white;
 border: none;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 cursor: pointer;
 font-size: 20px;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.3s;
 z-index: 10;
}
.slider-nav:hover {
 background: rgba(0, 0, 0, 0.8);
 transform: translateY(-50%) scale(1.1);
}
.slider-nav.prev {
 left: 15px;
}
.slider-nav.next {
 right: 15px;
}
.slider-dots {
 position: absolute;
 bottom: 15px;
 left: 50%;
 transform: translateX(-50%);
 display: flex;
 gap: 10px;
 z-index: 10;
}
.dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 background: rgba(0, 0, 0, 0.3);
 cursor: pointer;
 transition: all 0.3s;
}
.dot.active {
 background: #1a1a1a;
 width: 25px;
 border-radius: 10px;
}
.dot:hover {
 background: #1a1a1a;
 transform: scale(1.2);
}
.recipe-type-group {
 display: flex;
 gap: 20px;
 margin-top: 8px;
 flex-wrap: wrap;
}
.recipe-type-option {
 cursor: pointer;
 flex: 1;
 min-width: 180px;
}
.recipe-type-option input {
 display: none;
}
.type-badge {
 display: block;
 padding: 14px 20px;
 border-radius: 14px;
 text-align: center;
 font-weight: 500;
 font-size: 15px;
 transition: all 0.2s;
 border: 2px solid #e0e8f0;
 background: white;
 color: #1a1a1a;
 cursor: pointer;
}
.recipe-type-option.public .type-badge {
 border-color: #bbe0ff;
}
.recipe-type-option.private .type-badge {
 border-color: #bbe0ff;
}
.recipe-type-option input:checked + .type-badge {
 background: #bbe0ff;
 color: #1a1a1a;
 border-color: #1a1a1a;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.type-badge:hover {
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.auth-modal { z-index: 99999 !important;
 display: none;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.8);
 z-index: 1000;
 justify-content: center;
 align-items: center;
}
.auth-modal.active {
 display: flex;
}
.auth-modal-content {
 background: white;
 border-radius: 24px;
 width: 90%;
 max-width: 450px;
 overflow: visible;
 animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
 from {
 opacity: 0;
 transform: translateY(-30px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}
.auth-modal-header {
 background: #bbe0ff;
 color: black;
 padding: 15px 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.auth-modal-header h3 {
 margin: 0;
 font-size: 18px;
}
.auth-modal-close {
 background: none;
 border: none;
 color: black;
 font-size: 24px;
 cursor: pointer;
}
.auth-tabs {
 display: flex;
 border-bottom: 1px solid #e0e8f0;
}
.auth-tab {
 flex: 1;
 padding: 12px;
 text-align: center;
 background: none;
 border: none;
 cursor: pointer;
 font-size: 16px;
 font-weight: 500;
 color: #666;
 transition: all 0.2s;
}
.auth-tab.active {
 color: #1a1a1a;
 border-bottom: 2px solid #1a1a1a;
}
.auth-form {
 padding: 25px;
 display: none;
}
.auth-form.active {
 display: block;
}
.auth-form input {
 width: 100%;
 padding: 12px;
 border: 1.5px solid #e0e8f0;
 border-radius: 12px;
 margin-bottom: 15px;
 font-size: 14px;
}
.auth-form input:focus {
 outline: none;
 border-color: #bbe0ff;
}
.auth-checkbox {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 20px;
}
.auth-checkbox input {
 width: 18px;
 height: 18px;
 margin: 0;
}
.auth-checkbox label {
 font-size: 12px;
 color: #666;
}
.auth-checkbox a {
 color: #1a1a1a;
 text-decoration: underline;
}
.auth-submit {
 width: 100%;
 padding: 12px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 40px;
 font-size: 16px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.2s;
}
.auth-submit:hover {
 background: #333;
}
.auth-footer {
 text-align: center;
 margin-top: 15px;
 font-size: 12px;
 color: #666;
}
.auth-footer a {
 color: #1a1a1a;
 text-decoration: underline;
 cursor: pointer;
}
.auth-combined-btn {
 padding: 6px 16px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 30px;
 font-size: 13px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
}
.auth-combined-btn:hover {
 background: #333;
 transform: translateY(-1px);
}
.recipe-detail-image img {
 width: 100%;
 max-height: 500px;
 object-fit: cover;
}
.share-buttons-recipe {
 margin: 20px auto;
 text-align: center;
}
.share-recipe-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 10px 24px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 40px;
 cursor: pointer;
 font-size: 14px;
 font-weight: 500;
 font-family: 'Inter', sans-serif;
 transition: all 0.2s ease;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.share-recipe-btn:hover {
 background: #333;
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.share-recipe-btn:active {
 transform: translateY(0);
}
.share-article-btn {
 background: none;
 border: 1px solid #e0e8f0;
 color: #666;
 cursor: pointer;
 font-size: 12px;
 font-family: 'Inter', sans-serif;
 padding: 5px 12px;
 border-radius: 30px;
 transition: all 0.2s;
 display: inline-flex;
 align-items: center;
 gap: 5px;
}
.share-article-btn:hover {
 background: #f0f4fa;
 border-color: #1a1a1a;
 color: #1a1a1a;
 transform: translateY(-1px);
}
.article-meta {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
 margin-top: 10px;
}
.char-counter {
 font-size: 12px;
 color: #666;
 margin-top: 5px;
 text-align: right;
}
@keyframes pulse {
 0% {
 transform: scale(1);
 background: #ff4444;
 }
 50% {
 transform: scale(1.2);
 background: #ff6666;
 }
 100% {
 transform: scale(1);
 background: #ff4444;
 }
}
@keyframes glow {
 0% {
 border-color: #ff4444;
 box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
 }
 50% {
 border-color: #ff4444;
 box-shadow: 0 0 0 5px rgba(255, 68, 68, 0.2);
 }
 100% {
 border-color: #e0e8f0;
 box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
 }
}
@media (max-width: 900px) {
 .profile-header-full {
 flex-direction: column;
 text-align: center;
 }
 
 .mascot-img {
 max-height: 50vh;
 transform: translateY(15px);
 }
 
 .welcome-image {
 
 }
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .header-left,
 .header-right {
 width: 40px;
 }
 
 .header-center {
 position: static;
 transform: none;
 flex: 1;
 text-align: center;
 }
 
 .logo-wrapper {
 justify-content: center;
 }
 
 .site-logo {
 height: 30px;
 }
 
 .logo-center {
 font-size: 14px;
 }
 
 .logo-wrapper {
 gap: 8px;
 }
 
 .login-btn, .register-btn, .username-link, .profile-btn, .logout-btn {
 padding: 5px 10px;
 font-size: 11px;
 }
 
 .user-info {
 gap: 8px;
 }
 
 .profile-nav {
 gap: 12px;
 }
 
 .nav-btn {
 padding: 8px 16px;
 font-size: 13px;
 }
 
 .filter-chip {
 padding: 6px 14px;
 font-size: 12px;
 }
 
 .sort-section {
 flex-direction: column;
 align-items: stretch;
 }
 
 .sort-section .search-box {
 width: 100%;
 margin-right: 0;
 margin-bottom: 10px;
 }
 
 .sort-section .search-box input {
 min-width: auto;
 }
 
 .sort-section label {
 white-space: normal;
 }
 
 .sort-section select {
 width: 100%;
 }
 
 .welcome-content {
 padding: 30px 20px;
 flex-direction: column;
 text-align: center;
 }
 
 .welcome-title {
 font-size: 24px;
 }
 
 .welcome-description {
 font-size: 14px;
 text-align: left;
 }
 
 .welcome-image {
 margin-bottom: -30px;
 margin-top: 10px;
 }
 
 .mascot-img {
 max-height: 160px;
 transform: translateY(12px);
 }
 
 .social-links {
 justify-content: center;
 }
 
 .social-link {
 padding: 8px 16px;
 font-size: 12px;
 }
 
 .social-icon-img {
 width: 20px;
 height: 20px;
 }
 
 .install-app-btn {
 padding: 10px 20px;
 font-size: 14px;
 }
 
 .slider-nav {
 width: 32px;
 height: 32px;
 font-size: 16px;
 }
 
 .slider-nav.prev {
 left: 5px;
 }
 
 .slider-nav.next {
 right: 5px;
 }
}
@media (max-width: 700px) {
 .user-avatar-mini {
 display: block;
 }
}
@media (max-width: 600px) {
 .recipes-grid {
 grid-template-columns: 1fr;
 }
 
 .side-panel {
 width: 280px;
 }
 
 .search-section {
 padding: 16px;
 }
 
 .popular-tag {
 font-size: 12px;
 padding: 4px 10px;
 }
 
 .category-title {
 font-size: 28px;
 }
 
 .category-description {
 font-size: 14px;
 }
 
 .sort-section {
 justify-content: center;
 }
 
 .welcome-description {
 font-size: 14px;
 text-align: left;
 }
 
 .welcome-btn {
 padding: 10px 24px;
 font-size: 14px;
 }
}
@media (max-width: 550px) {
 .site-logo {
 height: 26px;
 }
 
 .logo-center {
 font-size: 12px;
 }
 
 .logo-wrapper {
 gap: 6px;
 }
 
 .profile-nav {
 flex-direction: column;
 align-items: stretch;
 }
 
 .nav-btn {
 justify-content: center;
 }
}
.user-avatar-mini {
 width: 28px;
 height: 28px;
 border-radius: 50%;
 overflow: visible;
 display: none;
}
.avatar-mini {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.avatar-mini-placeholder {
 width: 28px;
 height: 28px;
 background: #e0e8f0;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 14px;
 color: #1a1a1a;
}
.info-card.calories-header {
 background: #bbe0ff;
}
.info-card.calories-header .value {
 color: #1a1a1a;
}
.save-recipe-large {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 12px;
 padding: 12px 24px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 40px;
 font-size: 16px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s;
 margin-top: 15px;
}
.save-recipe-large.saved {
 background: #e74c3c;
}
.save-recipe-large:hover {
 transform: translateY(-2px);
 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.view-recipe-btn {
 display: inline-block;
 background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
 color: white;
 padding: 10px 24px;
 border: none;
 border-radius: 40px;
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.3s ease;
 text-align: center;
 width: 100%;
 font-family: 'Inter', sans-serif;
 letter-spacing: 0.5px;
 position: relative;
 overflow: visible;
}
.view-recipe-btn::before {
 content: '';
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
 transition: left 0.5s ease;
}
.view-recipe-btn:hover {
 background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
 transform: translateY(-2px);
 box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.view-recipe-btn:hover::before {
 left: 100%;
}
.view-recipe-btn:active {
 transform: translateY(1px);
}
.avatar-upload-overlay {
 position: absolute;
 bottom: 0;
 width: 30px;
 height: 30px;
 background: #1a1a1a;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: all 0.2s;
 border: 2px solid white;
 box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.profile-avatar-large .avatar-wrapper {
 position: relative !important;
 width: 100px !important;
 height: 100px !important;
 overflow: visible !important;
}
.profile-avatar-large .avatar-upload-overlay {
 position: absolute !important;
 bottom: -5px !important;
 right: -5px !important;
 left: auto !important;
 top: auto !important;
 width: 32px !important;
 height: 32px !important;
 background: #1a1a1a !important;
 border-radius: 50% !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 border: 2px solid white !important;
 z-index: 100 !important;
}
.profile-avatar-large .avatar-upload-overlay span {
 color: white !important;
 font-size: 18px !important;
 font-weight: bold !important;
}
.question-item {
 background: white;
 border-radius: 16px;
 padding: 20px;
 margin-bottom: 20px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.question-item.unread {
 border-left: 4px solid #e74c3c;
}
.question-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 10px;
 flex-wrap: wrap;
 gap: 10px;
}
.question-user {
 font-weight: 600;
 color: #1a1a1a;
}
.question-date {
 font-size: 12px;
 color: #666;
}
.question-text {
 background: #f5f7fa;
 padding: 15px;
 border-radius: 12px;
 margin: 10px 0;
 line-height: 1.5;
}
.question-answer {
 margin-top: 15px;
 padding: 15px;
 background: #e8f0fe;
 border-radius: 12px;
 border-left: 3px solid #3498db;
}
.question-answer-label {
 font-weight: 600;
 color: #3498db;
 margin-bottom: 8px;
}
.answer-textarea {
 width: 100%;
 padding: 10px;
 border: 1px solid #e0e8f0;
 border-radius: 12px;
 margin: 10px 0;
 font-family: 'Inter', sans-serif;
}
.send-answer-btn {
 padding: 8px 20px;
 background: #3498db;
 color: white;
 border: none;
 border-radius: 30px;
 cursor: pointer;
}
.send-answer-btn:hover {
 background: #2980b9;
}
.panel-category.non-food {
 color: black;
 font-weight: 600;
 background: rgba(116, 223, 255, 0.185);
 border-left-color: #bbe0ff;
}
.panel-category.non-food:hover {
 background: rgba(184, 182, 182, 0.1);
}
.panel-category.non-food .count {
 background: rgba(192, 242, 248, 0.616);
 color: #bbe0ff;
}
.comments-section {
 margin-top: 40px;
 padding-top: 20px;
 border-top: 2px solid #e0e8f0;
}
.comments-section h3 {
 font-size: 20px;
 margin-bottom: 20px;
 color: #1a1a1a;
}
.comments-list {
 margin-bottom: 30px;
 max-height: 600px;
 overflow-y: auto;
 padding-right: 5px;
}
.comment-item {
 background: #f5f7fa;
 border-radius: 16px;
 padding: 15px;
 margin-bottom: 15px;
 transition: all 0.2s;
}
.comment-item:hover {
 background: #eef2f7;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 10px;
 flex-wrap: wrap;
 gap: 10px;
}
.comment-author {
 font-weight: 600;
 color: #1a1a1a;
 transition: color 0.2s;
}
.comment-author:hover {
 color: #3498db;
 text-decoration: underline;
}
.comment-date {
 color: #666;
 font-size: 12px;
}
.comment-text {
 line-height: 1.5;
 color: #333;
 margin: 10px 0;
 word-break: break-word;
}
.comment-actions {
 margin-top: 10px;
}
.reply-btn {
 background: none;
 border: none;
 color: #3498db;
 cursor: pointer;
 font-size: 12px;
 padding: 4px 8px;
 border-radius: 20px;
 transition: all 0.2s;
}
.reply-btn:hover {
 background: #e0e8f0;
 color: #2980b9;
}
.reply-form {
 margin-top: 15px;
 margin-left: 40px;
 padding: 15px;
 background: white;
 border-radius: 12px;
 border-left: 3px solid #3498db;
}
.reply-form textarea {
 width: 100%;
 padding: 10px;
 border: 1.5px solid #e0e8f0;
 border-radius: 12px;
 font-family: 'Inter', sans-serif;
 resize: vertical;
}
.reply-form textarea:focus {
 outline: none;
 border-color: #3498db;
}
.submit-reply-btn {
 background: #1a1a1a;
 color: white;
 border: none;
 padding: 6px 16px;
 border-radius: 30px;
 cursor: pointer;
 transition: all 0.2s;
}
.submit-reply-btn:hover {
 background: #333;
 transform: translateY(-1px);
}
.cancel-reply-btn {
 background: none;
 border: none;
 color: #666;
 cursor: pointer;
 padding: 6px 12px;
 border-radius: 30px;
}
.cancel-reply-btn:hover {
 background: #e0e8f0;
 color: #333;
}
.delete-comment-btn {
 background: none;
 border: none;
 color: #e74c3c;
 cursor: pointer;
 font-size: 14px;
 padding: 4px 8px;
 border-radius: 20px;
 transition: all 0.2s;
}
.delete-comment-btn:hover {
 background: #e74c3c;
 color: white;
}
.comment-avatar-wrapper {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 32px;
 height: 32px;
 flex-shrink: 0;
}
.comment-avatar {
 width: 32px;
 height: 32px;
 cursor: pointer;
 vertical-align: middle;
 border: 1px solid #e0e8f0;
}
.comment-avatar-placeholder {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background: #e0e8f0;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-size: 14px;
}
.char-counter {
 text-align: right;
 font-size: 12px;
 color: #666;
 margin-top: 5px;
}
.notifications-wrapper {
 position: relative;
 margin-left: 15px;
 display: inline-block;
 vertical-align: middle;
}
.notifications-btn {
 background: none;
 border: none;
 cursor: pointer;
 font-size: 20px;
 position: relative;
 padding: 8px;
}
.notifications-badge {
 position: absolute;
 top: 2px;
 right: 2px;
 background: #e74c3c;
 color: white;
 font-size: 10px;
 font-weight: bold;
 padding: 2px 6px;
 border-radius: 20px;
 display: none;
}
.notifications-dropdown {
 display: none;
 position: absolute;
 top: 40px;
 right: 0;
 width: 320px;
 background: white;
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0,0,0,0.15);
 z-index: 1000;
}
.notifications-dropdown.show {
 display: block;
}
.notifications-header {
 padding: 12px 16px;
 background: #1a1a1a;
 color: white;
 font-weight: 600;
 border-radius: 12px 12px 0 0;
}
.notifications-list {
 max-height: 400px;
 overflow-y: auto;
}
.notification-item {
 padding: 12px 16px;
 border-bottom: 1px solid #eee;
 cursor: pointer;
}
.notification-item:hover {
 background: #f5f5f5;
}
.notification-item.unread {
 background: #e8f0fe;
}
.notification-title {
 font-weight: 600;
 font-size: 14px;
 margin-bottom: 4px;
}
.notification-message {
 font-size: 12px;
 color: #666;
 margin-bottom: 4px;
}
.notification-date {
 font-size: 11px;
 color: #999;
}
.empty-notifications {
 padding: 30px;
 text-align: center;
 color: #666;
}
.notifications-footer {
 padding: 10px;
 border-top: 1px solid #eee;
 text-align: center;
}
.mark-all-read-btn {
 background: none;
 border: none;
 color: #3498db;
 cursor: pointer;
 font-size: 12px;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .notifications-dropdown {
 display: none !important;
 }
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .mobile-avatar {
 background: #1a1a1a;
 color: white;
 border-radius: 50%;
 width: 32px;
 height: 32px;
 display: flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
 font-size: 16px;
 transition: all 0.2s;
 }
 .mobile-avatar:hover {
 background: #333;
 transform: scale(1.05);
 }
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .mobile-avatar {
 background: #1a1a1a !important;
 color: white !important;
 border-radius: 50% !important;
 width: 32px !important;
 height: 32px !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 padding: 0 !important;
 text-decoration: none !important;
 font-size: 16px !important;
 }
 .mobile-avatar:hover {
 background: #333 !important;
 transform: scale(1.05);
 }
}
.back-nav-btn {
 background: #1a1a1a;
 border: none;
 color: white;
 font-size: 14px;
 cursor: pointer;
 padding: 10px 20px;
 margin-bottom: 20px;
 display: inline-flex;
 align-items: center;
 gap: 8px;
 border-radius: 30px;
 transition: all 0.2s ease;
 font-weight: 500;
}
.back-nav-btn:hover {
 background: #333;
 transform: translateX(-3px);
}
.back-nav-btn::before {
 content: "←";
 font-size: 16px;
 transition: transform 0.2s ease;
}
.back-nav-btn:hover::before {
 transform: translateX(-3px);
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .back-nav-btn span {
 display: none;
 }
 .back-nav-btn {
 padding: 10px 14px;
 }
 .back-nav-btn::before {
 content: "←";
 font-size: 18px;
 margin: 0;
 }
}
.back-btn-small {
 background: #1a1a1a;
 border: none;
 color: white;
 font-size: 13px;
 cursor: pointer;
 padding: 8px 20px;
 margin-bottom: 20px;
 border-radius: 30px;
 transition: all 0.2s;
 display: inline-flex;
 align-items: center;
 gap: 8px;
}
.back-btn-small:hover {
 background: #333;
 transform: translateX(-3px);
}
.back-btn-small-disabled::before {
 content: "←";
 font-size: 14px;
}
.back-nav-btn {
 background: #1a1a1a !important;
 border: none !important;
 color: white !important;
 font-size: 14px !important;
 cursor: pointer !important;
 padding: 10px 20px !important;
 margin-bottom: 20px !important;
 display: inline-flex !important;
 align-items: center !important;
 gap: 8px !important;
 border-radius: 30px !important;
 transition: all 0.2s ease !important;
 font-weight: 500 !important;
}
.back-nav-btn:hover {
 background: #333 !important;
 transform: translateX(-3px) !important;
}
.back-nav-btn::before {
 content: "←" !important;
 font-size: 16px !important;
 transition: transform 0.2s ease !important;
}
.back-nav-btn:hover::before {
 transform: translateX(-3px) !important;
}
.move-to-section-btn {
 background: #3498db;
 color: white;
 border: none;
 padding: 6px 12px;
 border-radius: 20px;
 cursor: pointer;
 font-size: 12px;
 font-weight: 500;
 transition: all 0.2s;
 margin-top: 8px;
 width: 100%;
}
.move-to-section-btn:hover {
 background: #2980b9;
 transform: translateY(-2px);
}
.view-article-btn {
 background: #1a1a1a;
 color: white;
 border: none;
 padding: 8px 16px;
 border-radius: 30px;
 cursor: pointer;
 font-size: 13px;
 font-weight: 500;
 transition: all 0.2s;
 width: 100%;
 margin-bottom: 8px;
}
.view-article-btn:hover {
 background: #333;
 transform: translateY(-2px);
}
.notifications-wrapper {
}
.ql-container {
 box-sizing: border-box;
 font-family: 'Inter', sans-serif;
 font-size: 14px;
 height: auto;
 min-height: 200px;
 border: 1.5px solid #e0e8f0 !important;
 border-radius: 0 0 12px 12px !important;
 background: white;
 pointer-events: auto !important;
}
.ql-editor {
 min-height: 180px;
 line-height: 1.5;
 padding: 12px 16px;
 overflow-y: auto;
 background: white;
 pointer-events: auto !important;
 user-select: text !important;
 -webkit-user-select: text !important;
}
.ql-editor p {
 margin-bottom: 10px;
}
.ql-editor:focus {
 outline: none;
 border-color: #bbe0ff;
}
.ql-toolbar {
 border: 1.5px solid #e0e8f0 !important;
 border-bottom: none !important;
 border-radius: 12px 12px 0 0 !important;
 background: #f5f7fa;
 padding: 8px !important;
 pointer-events: auto !important;
}
.ql-toolbar button {
 pointer-events: auto !important;
 background: white;
 border-radius: 6px;
 margin: 0 2px;
}
.ql-toolbar button:hover {
 background: #e0e8f0;
}
.ql-toolbar .ql-link {
 order: -1;
 margin-right: 15px;
} 
.ql-snow .ql-picker {
 color: #1a1a1a;
}
.ql-snow .ql-stroke {
 stroke: #1a1a1a;
}
.ql-snow .ql-fill {
 fill: #1a1a1a;
}
.ql-snow .ql-picker-options {
 background: white;
 border: 1px solid #e0e8f0;
 border-radius: 8px;
}
.ql-toolbar .ql-picker-options {
 z-index: 100 !important;
}
.section-content {
 position: relative;
 z-index: 1;
}
.section-item {
 position: relative;
 z-index: 1;
 background: #f5f7fa;
 border-radius: 16px;
 padding: 20px;
 margin-bottom: 20px;
}
.section-text {
 background: white;
 border-radius: 12px;
 min-height: 200px;
 width: 100%;
}
.modal-content {
 max-height: 90vh;
 overflow-y: auto;
 scroll-behavior: smooth;
}
.archive-question-btn {
 margin-top: 10px;
 padding: 6px 14px;
 background: #666;
 color: white;
 border: none;
 border-radius: 20px;
 cursor: pointer;
 font-size: 12px;
 font-weight: 500;
 transition: all 0.2s;
 display: inline-block;
}
.archive-question-btn:hover {
 background: #555;
 transform: translateY(-1px);
}
.archive-my-answer-btn {
 margin-top: 12px;
 padding: 6px 14px;
 background: #666;
 color: white;
 border: none;
 border-radius: 20px;
 cursor: pointer;
 font-size: 12px;
 font-weight: 500;
 transition: all 0.2s;
 display: inline-block;
}
.archive-my-answer-btn:hover {
 background: #555;
 transform: translateY(-1px);
}
.author-meta {
 display: inline-flex;
 align-items: center;
}
.author-avatar-mini {
 width: 24px;
 height: 24px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 6px;
 border: 1px solid #e0e8f0;
 transition: transform 0.2s;
}
.author-avatar-mini:hover {
 transform: scale(1.1);
}
.author-avatar-mini,
.comment-avatar,
.avatar-image {
 object-fit: cover;
 border: 1px solid #e0e8f0;
 transition: transform 0.2s;
}
.author-avatar-mini:hover,
.comment-avatar:hover {
 transform: scale(1.1);
}
.comment-avatar {
 width: 32px !important;
 height: 32px !important;
 max-width: 32px !important;
 max-height: 32px !important;
 min-width: 32px !important;
 min-height: 32px !important;
 border-radius: 50% !important;
 object-fit: cover !important;
 flex-shrink: 0 !important;
}
.user-status-badge.admin-badge {
 background: #bbe0ff;
 color: #1a1a1a;
 font-size: 9px;
 font-weight: 800;
 padding: 3px 8px;
 border-radius: 6px;
 display: inline-flex;
 align-items: center;
 text-transform: uppercase;
 letter-spacing: 1px;
 border: 1px solid #a0c4e8;
 box-shadow: 
 0 1px 2px rgba(0,0,0,0.1),
 inset 0 1px 1px rgba(255,255,255,0.5);
 text-shadow: 0 1px 1px rgba(255,255,255,0.5);
 position: relative;
 overflow: visible;
 transform: skewX(-3deg);
 font-family: 'Arial Black', 'Impact', sans-serif;
}
.user-status-badge.admin-badge .admin-text {
 position: relative;
 z-index: 2;
}
.user-status-badge.admin-badge .sparkles {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 z-index: 0;
}
.user-status-badge.admin-badge .sparkle {
 position: absolute;
 width: 4px;
 height: 4px;
 background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
 border-radius: 50%;
 filter: blur(0.5px);
 animation: twinkle 1.5s infinite ease-in-out;
 z-index: 0;
}
.user-status-badge.admin-badge .sparkle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.user-status-badge.admin-badge .sparkle:nth-child(2) { top: 8%; left: 25%; animation-delay: 0.1s; }
.user-status-badge.admin-badge .sparkle:nth-child(3) { top: 3%; left: 50%; animation-delay: 0.2s; }
.user-status-badge.admin-badge .sparkle:nth-child(4) { top: 10%; left: 75%; animation-delay: 0.3s; }
.user-status-badge.admin-badge .sparkle:nth-child(5) { top: 7%; left: 90%; animation-delay: 0.4s; }
.user-status-badge.admin-badge .sparkle:nth-child(6) { top: 20%; left: 10%; animation-delay: 0.5s; }
.user-status-badge.admin-badge .sparkle:nth-child(7) { top: 25%; left: 35%; animation-delay: 0.6s; }
.user-status-badge.admin-badge .sparkle:nth-child(8) { top: 18%; left: 60%; animation-delay: 0.7s; }
.user-status-badge.admin-badge .sparkle:nth-child(9) { top: 22%; left: 85%; animation-delay: 0.8s; }
.user-status-badge.admin-badge .sparkle:nth-child(10) { top: 15%; left: 95%; animation-delay: 0.9s; }
.user-status-badge.admin-badge .sparkle:nth-child(11) { top: 35%; left: 5%; animation-delay: 1.0s; }
.user-status-badge.admin-badge .sparkle:nth-child(12) { top: 40%; left: 20%; animation-delay: 1.1s; }
.user-status-badge.admin-badge .sparkle:nth-child(13) { top: 32%; left: 45%; animation-delay: 1.2s; }
.user-status-badge.admin-badge .sparkle:nth-child(14) { top: 38%; left: 70%; animation-delay: 1.3s; }
.user-status-badge.admin-badge .sparkle:nth-child(15) { top: 45%; left: 90%; animation-delay: 1.4s; }
.user-status-badge.admin-badge .sparkle:nth-child(16) { top: 55%; left: 15%; animation-delay: 0.15s; }
.user-status-badge.admin-badge .sparkle:nth-child(17) { top: 50%; left: 40%; animation-delay: 0.25s; }
.user-status-badge.admin-badge .sparkle:nth-child(18) { top: 60%; left: 65%; animation-delay: 0.35s; }
.user-status-badge.admin-badge .sparkle:nth-child(19) { top: 52%; left: 80%; animation-delay: 0.45s; }
.user-status-badge.admin-badge .sparkle:nth-child(20) { top: 65%; left: 8%; animation-delay: 0.55s; }
.user-status-badge.admin-badge .sparkle:nth-child(21) { top: 70%; left: 30%; animation-delay: 0.65s; }
.user-status-badge.admin-badge .sparkle:nth-child(22) { top: 75%; left: 55%; animation-delay: 0.75s; }
.user-status-badge.admin-badge .sparkle:nth-child(23) { top: 68%; left: 75%; animation-delay: 0.85s; }
.user-status-badge.admin-badge .sparkle:nth-child(24) { top: 80%; left: 95%; animation-delay: 0.95s; }
.user-status-badge.admin-badge .sparkle:nth-child(25) { top: 85%; left: 12%; animation-delay: 1.05s; }
.user-status-badge.admin-badge .sparkle:nth-child(26) { top: 88%; left: 38%; animation-delay: 1.15s; }
.user-status-badge.admin-badge .sparkle:nth-child(27) { top: 82%; left: 62%; animation-delay: 1.25s; }
.user-status-badge.admin-badge .sparkle:nth-child(28) { top: 90%; left: 82%; animation-delay: 1.35s; }
.user-status-badge.admin-badge .sparkle:nth-child(29) { top: 12%; left: 12%; animation-delay: 0.08s; }
.user-status-badge.admin-badge .sparkle:nth-child(30) { top: 28%; left: 88%; animation-delay: 0.18s; }
.user-status-badge.admin-badge .sparkle:nth-child(31) { top: 48%; left: 8%; animation-delay: 0.28s; }
.user-status-badge.admin-badge .sparkle:nth-child(32) { top: 58%; left: 92%; animation-delay: 0.38s; }
.user-status-badge.admin-badge .sparkle:nth-child(33) { top: 78%; left: 18%; animation-delay: 0.48s; }
.user-status-badge.admin-badge .sparkle:nth-child(34) { top: 92%; left: 48%; animation-delay: 0.58s; }
.user-status-badge.admin-badge .sparkle:nth-child(35) { top: 5%; left: 68%; animation-delay: 0.68s; }
.user-status-badge.admin-badge .sparkle:nth-child(36) { top: 42%; left: 32%; animation-delay: 0.78s; }
.user-status-badge.admin-badge .sparkle:nth-child(37) { top: 72%; left: 42%; animation-delay: 0.88s; }
.user-status-badge.admin-badge .sparkle:nth-child(38) { top: 95%; left: 5%; animation-delay: 0.98s; }
.user-status-badge.admin-badge .sparkle:nth-child(39) { top: 2%; left: 98%; animation-delay: 1.08s; }
.user-status-badge.admin-badge .sparkle:nth-child(40) { top: 98%; left: 98%; animation-delay: 1.18s; }
@keyframes twinkle {
 0%, 100% { opacity: 0; transform: scale(0.3); }
 15%, 85% { opacity: 0.7; transform: scale(1); }
 50% { opacity: 1; transform: scale(1.5); }
}
.user-status-badge.admin-badge .sparkle:nth-child(even) {
 animation-duration: 1.8s;
}
.user-status-badge.admin-badge .sparkle:nth-child(3n) {
 animation-duration: 2.2s;
}
.user-status-badge.admin-badge .sparkle:nth-child(5n) {
 animation-duration: 1.4s;
}
.user-status-badge.admin-badge:hover .sparkle {
 animation-duration: 0.8s !important;
}
.user-status-badge.admin-badge:hover {
 transform: skewX(-3deg) scale(1.05);
}
.recipe-author-row {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 12px 0;
 border-top: 1px solid #e0e8f0;
 border-bottom: 1px solid #e0e8f0;
 margin-bottom: 20px;
}
.recipe-author-row .author-avatar {
 width: 32px !important;
 height: 32px !important;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid #bbe0ff;
}
.recipe-author-row .author-info {
 flex: 1;
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 8px;
}
.recipe-author-row .author-name-large {
 font-size: 15px;
 font-weight: 600;
 color: #1a1a1a;
 text-decoration: none;
 font-family: 'Inter', sans-serif;
}
.recipe-author-row .author-name-large:hover {
 color: #3498db;
 text-decoration: underline;
}
.recipe-actions-row {
 display: flex;
 gap: 10px;
}
.recipe-actions-row .save-recipe-large,
.recipe-actions-row .share-recipe-btn {
 width: auto !important;
 min-width: auto !important;
 padding: 8px 16px !important;
 margin: 0 !important;
 border-radius: 40px !important;
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 gap: 6px !important;
 font-size: 13px !important;
 font-weight: 500 !important;
 background: #1a1a1a !important;
 color: white !important;
 border: none !important;
 cursor: pointer !important;
 transition: all 0.2s !important;
}
.recipe-actions-row .save-recipe-large:hover,
.recipe-actions-row .share-recipe-btn:hover {
 background: #333 !important;
 transform: translateY(-2px) !important;
}
.recipe-actions-row .save-recipe-large.saved {
 background: #e74c3c !important;
}
.profile-name {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}
.step-image {
 margin-top: 10px;
}
.step-image-file {
 margin-bottom: 10px;
}
.remove-step-image {
 display: none;
 margin-top: 5px;
 padding: 4px 10px;
 background: #e74c3c;
 color: white;
 border: none;
 border-radius: 20px;
 cursor: pointer;
 font-size: 12px;
}
.remove-step-image:hover {
 background: #c0392b;
}
.step-image.has-image .remove-step-image {
 display: inline-block;
}
.related-recipes-section {
 margin-top: 40px;
 padding-top: 20px;
 border-top: 2px solid #e0e8f0;
}
.related-title {
 font-size: 22px;
 font-weight: 600;
 margin-bottom: 20px;
 color: #1a1a1a;
}
.related-recipes-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
 gap: 20px;
 margin-bottom: 30px;
}
.related-recipe-card {
 background: white;
 border-radius: 16px;
 overflow: visible;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
 transition: transform 0.2s, box-shadow 0.2s;
 cursor: pointer;
}
.related-recipe-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.related-recipe-image {
 height: 140px;
 overflow: visible;
}
.related-recipe-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.related-recipe-info {
 padding: 12px;
 word-wrap: break-word;
 overflow-wrap: break-word;
 flex: 1;
 display: flex;
 flex-direction: column;
}
.related-recipe-title {
 font-size: 14px;
 font-weight: 600;
 color: #1a1a1a;
 margin-bottom: 6px;
 line-height: 1.3;
 word-wrap: break-word;
 overflow-wrap: break-word;
 overflow: hidden;
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
}
.related-recipe-category {
 font-size: 12px;
 color: #666;
 margin-top: auto;
}
.related-recipe-title {
 font-size: 14px;
 font-weight: 600;
 color: #1a1a1a;
 margin-bottom: 6px;
 line-height: 1.3;
 word-wrap: break-word;
 overflow-wrap: break-word;
}
.related-recipe-card {
 overflow: visible;
 display: flex;
 flex-direction: column;
}

@media (max-width: 768px) {
 .related-recipes-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
 }
 .related-recipe-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  height: auto;
  display: flex;
  flex-direction: column;
 }
 .related-recipe-image {
  height: 140px;
 }
 .related-recipe-title {
  font-size: 13px;
  white-space: normal;
  word-wrap: break-word;
 }
}
.related-recipe-category {
 font-size: 11px;
 color: #666;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}
.load-more-btn {
 display: block;
 width: 100%;
 padding: 14px;
 background: #f0f4fa;
 color: #1a1a1a;
 border: none;
 border-radius: 40px;
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.2s;
 margin-top: 10px;
}
.load-more-btn:hover {
 background: #e0e8f0;
 transform: translateY(-2px);
}
.load-more-btn:disabled {
 opacity: 0.5;
 cursor: not-allowed;
}
.loading-more {
 text-align: center;
 padding: 20px;
 color: #666;
}
.edit-pending-btn {
 background: #f39c12;
 color: white;
}
.edit-pending-btn:hover {
 background: #e67e22;
 transform: translateY(-1px);
}
.nav-btn[data-tab="rejected"] {
 color: #1a1a1a !important;
}
.nav-btn[data-tab="rejected"]:hover {
 background: #f0f4fa !important;
 color: #1a1a1a !important;
 border-color: #e74c3c !important;
}
.nav-btn[data-tab="rejected"].active {
 background: #1a1a1a !important;
}
.nav-btn[data-tab="rejected"].has-rejected {
 border-color: #e74c3c;
 background: #fff5f5;
 animation: pulse 1.5s infinite;
}
.nav-btn[data-tab="rejected"].has-rejected .nav-count {
 background: #e74c3c;
 color: white;
}
@keyframes pulse {
 0% { border-color: #e74c3c; }
 50% { border-color: #ff6b6b; box-shadow: 0 0 8px rgba(231, 76, 60, 0.3); }
 100% { border-color: #e74c3c; }
}
.user-status-badge.moderator-badge {
 background: #2ecc71;
 color: #1a1a1a;
 font-size: 9px;
 font-weight: 800;
 padding: 3px 8px;
 border-radius: 6px;
 display: inline-flex;
 align-items: center;
 text-transform: uppercase;
 letter-spacing: 1px;
 border: 1px solid #27ae60;
 box-shadow: 
 0 1px 2px rgba(0,0,0,0.1),
 inset 0 1px 1px rgba(255,255,255,0.5);
 text-shadow: 0 1px 1px rgba(255,255,255,0.5);
 position: relative;
 overflow: visible;
 transform: skewX(-3deg);
 font-family: 'Arial Black', 'Impact', sans-serif;
}
.user-status-badge.moderator-badge .moderator-text {
 position: relative;
 z-index: 2;
}
.user-status-badge.moderator-badge .sparkles {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 z-index: 0;
}
.user-status-badge.moderator-badge .sparkle {
 position: absolute;
 width: 4px;
 height: 4px;
 background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
 border-radius: 50%;
 filter: blur(0.5px);
 animation: twinkle 1.5s infinite ease-in-out;
 z-index: 0;
}
.user-status-badge.admin-badge .sparkle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.user-status-badge.admin-badge .sparkle:nth-child(2) { top: 8%; left: 25%; animation-delay: 0.1s; }
.user-status-badge.admin-badge .sparkle:nth-child(3) { top: 3%; left: 50%; animation-delay: 0.2s; }
.user-status-badge.admin-badge .sparkle:nth-child(4) { top: 10%; left: 75%; animation-delay: 0.3s; }
.user-status-badge.admin-badge .sparkle:nth-child(5) { top: 7%; left: 90%; animation-delay: 0.4s; }
.user-status-badge.admin-badge .sparkle:nth-child(6) { top: 20%; left: 10%; animation-delay: 0.5s; }
.user-status-badge.admin-badge .sparkle:nth-child(7) { top: 25%; left: 35%; animation-delay: 0.6s; }
.user-status-badge.admin-badge .sparkle:nth-child(8) { top: 18%; left: 60%; animation-delay: 0.7s; }
.user-status-badge.admin-badge .sparkle:nth-child(9) { top: 22%; left: 85%; animation-delay: 0.8s; }
.user-status-badge.admin-badge .sparkle:nth-child(10) { top: 15%; left: 95%; animation-delay: 0.9s; }
.user-status-badge.admin-badge .sparkle:nth-child(11) { top: 35%; left: 5%; animation-delay: 1.0s; }
.user-status-badge.admin-badge .sparkle:nth-child(12) { top: 40%; left: 20%; animation-delay: 1.1s; }
.user-status-badge.admin-badge .sparkle:nth-child(13) { top: 32%; left: 45%; animation-delay: 1.2s; }
.user-status-badge.admin-badge .sparkle:nth-child(14) { top: 38%; left: 70%; animation-delay: 1.3s; }
.user-status-badge.admin-badge .sparkle:nth-child(15) { top: 45%; left: 90%; animation-delay: 1.4s; }
.user-status-badge.admin-badge .sparkle:nth-child(16) { top: 55%; left: 15%; animation-delay: 0.15s; }
.user-status-badge.admin-badge .sparkle:nth-child(17) { top: 50%; left: 40%; animation-delay: 0.25s; }
.user-status-badge.admin-badge .sparkle:nth-child(18) { top: 60%; left: 65%; animation-delay: 0.35s; }
.user-status-badge.admin-badge .sparkle:nth-child(19) { top: 52%; left: 80%; animation-delay: 0.45s; }
.user-status-badge.admin-badge .sparkle:nth-child(20) { top: 65%; left: 8%; animation-delay: 0.55s; }
.user-status-badge.admin-badge .sparkle:nth-child(21) { top: 70%; left: 30%; animation-delay: 0.65s; }
.user-status-badge.admin-badge .sparkle:nth-child(22) { top: 75%; left: 55%; animation-delay: 0.75s; }
.user-status-badge.admin-badge .sparkle:nth-child(23) { top: 68%; left: 75%; animation-delay: 0.85s; }
.user-status-badge.admin-badge .sparkle:nth-child(24) { top: 80%; left: 95%; animation-delay: 0.95s; }
.user-status-badge.admin-badge .sparkle:nth-child(25) { top: 85%; left: 12%; animation-delay: 1.05s; }
.user-status-badge.admin-badge .sparkle:nth-child(26) { top: 88%; left: 38%; animation-delay: 1.15s; }
.user-status-badge.admin-badge .sparkle:nth-child(27) { top: 82%; left: 62%; animation-delay: 1.25s; }
.user-status-badge.admin-badge .sparkle:nth-child(28) { top: 90%; left: 82%; animation-delay: 1.35s; }
.user-status-badge.admin-badge .sparkle:nth-child(29) { top: 12%; left: 12%; animation-delay: 0.08s; }
.user-status-badge.admin-badge .sparkle:nth-child(30) { top: 28%; left: 88%; animation-delay: 0.18s; }
.user-status-badge.admin-badge .sparkle:nth-child(31) { top: 48%; left: 8%; animation-delay: 0.28s; }
.user-status-badge.admin-badge .sparkle:nth-child(32) { top: 58%; left: 92%; animation-delay: 0.38s; }
.user-status-badge.admin-badge .sparkle:nth-child(33) { top: 78%; left: 18%; animation-delay: 0.48s; }
.user-status-badge.admin-badge .sparkle:nth-child(34) { top: 92%; left: 48%; animation-delay: 0.58s; }
.user-status-badge.admin-badge .sparkle:nth-child(35) { top: 5%; left: 68%; animation-delay: 0.68s; }
.user-status-badge.admin-badge .sparkle:nth-child(36) { top: 42%; left: 32%; animation-delay: 0.78s; }
.user-status-badge.admin-badge .sparkle:nth-child(37) { top: 72%; left: 42%; animation-delay: 0.88s; }
.user-status-badge.admin-badge .sparkle:nth-child(38) { top: 95%; left: 5%; animation-delay: 0.98s; }
.user-status-badge.admin-badge .sparkle:nth-child(39) { top: 2%; left: 98%; animation-delay: 1.08s; }
.user-status-badge.admin-badge .sparkle:nth-child(40) { top: 98%; left: 98%; animation-delay: 1.18s; }
.special-card.salad {
 background: linear-gradient(135deg, #e8f8e8 0%, #d4f0d4 100%);
}
.special-card.drink {
 background: linear-gradient(135deg, #e6f0ff 0%, #d4e6ff 100%);
}
.recipe-actions {
 display: flex;
 gap: 8px;
 margin-top: 10px;
 flex-wrap: wrap;
}
.recipe-actions .recipe-btn,
.recipe-actions .view-recipe-btn,
.recipe-actions .edit-btn,
.recipe-actions .delete-btn {
 flex: 1;
 min-width: 70px;
 padding: 8px 12px;
 border: none;
 border-radius: 30px;
 font-size: 12px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 text-align: center;
 font-family: 'Inter', sans-serif;
 white-space: nowrap;
}
.view-recipe-btn {
 background: #1a1a1a;
 color: white;
}
.view-recipe-btn:hover {
 background: #333;
 transform: translateY(-1px);
}
.edit-btn {
 background: #3498db;
 color: white;
}
.edit-btn:hover {
 background: #2980b9;
 transform: translateY(-1px);
}
.delete-btn {
 background: #e74c3c;
 color: white;
}
.delete-btn:hover {
 background: #c0392b;
 transform: translateY(-1px);
}
.move-to-section-btn {
 background: #95a5a6;
 color: white;
 padding: 8px 12px;
 border: none;
 border-radius: 30px;
 font-size: 12px;
 font-weight: 500;
 cursor: pointer;
 transition: all 0.2s;
 width: 100%;
 margin-top: 8px;
}
.move-to-section-btn:hover {
 background: #7f8c8d;
 transform: translateY(-1px);
}
.mark-all-read-btn {
 background: none;
 border: none;
 color: #3498db;
 cursor: pointer;
 font-size: 12px;
 font-weight: 500;
 padding: 8px 16px;
 border-radius: 30px;
 transition: all 0.2s;
 width: 100%;
 text-align: center;
}
.mark-all-read-btn:hover {
 background: #f0f4fa;
 color: #2980b9;
}
.notifications-footer {
 padding: 10px;
 border-top: 1px solid #eee;
 text-align: center;
}
.notifications-header {
 padding: 12px 16px;
 background: #1a1a1a;
 color: white;
 font-weight: 600;
 border-radius: 12px 12px 0 0;
}
.notifications-dropdown {
 display: none;
 position: absolute;
 top: 45px;
 right: 0;
 width: 320px;
 background: white;
 border-radius: 16px;
 box-shadow: 0 8px 30px rgba(0,0,0,0.15);
 z-index: 1000;
 overflow: visible;
}
.notification-item {
 padding: 12px 16px;
 border-bottom: 1px solid #eee;
 cursor: pointer;
 transition: background 0.2s;
}
.notification-item:hover {
 background: #f5f7fa;
}
.notification-item.unread {
 background: #e8f0fe;
}
.notification-title {
 font-weight: 600;
 font-size: 14px;
 margin-bottom: 4px;
 color: #1a1a1a;
}
.notification-message {
 font-size: 12px;
 color: #666;
 margin-bottom: 4px;
}
.notification-date {
 font-size: 11px;
 color: #999;
}
.empty-notifications {
 padding: 30px;
 text-align: center;
 color: #666;
}
.spiciness-selector {
 display: flex;
 gap: 20px;
 flex-wrap: wrap;
 margin-top: 10px;
}
.spiciness-option {
 display: flex;
 align-items: center;
 gap: 8px;
 cursor: pointer;
 padding: 8px 16px;
 background: #f5f7fa;
 border-radius: 30px;
}
.spiciness-option input {
 width: auto;
 margin: 0;
}
.remove-step-image {
 display: none;
 margin-top: 8px;
 padding: 6px 14px;
 background: #e74c3c;
 color: white;
 border: none;
 border-radius: 20px;
 cursor: pointer;
 font-size: 13px;
}
.remove-step-image:hover {
 background: #c0392b;
}
.step-image.has-image .remove-step-image {
 display: inline-block;
}
.notifications-panel {
 position: fixed;
 top: 0;
 right: -360px;
 width: 340px;
 height: 100vh;
 background: white;
 z-index: 1001;
 transition: right 0.3s ease;
 box-shadow: -5px 0 25px rgba(0,0,0,0.15);
 overflow-y: auto;
}
.notifications-panel.open {
 right: 0;
}
.notifications-panel-header {
 padding: 16px 20px;
 background: #1a1a1a;
 color: white;
 font-weight: 600;
 font-size: 16px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 position: sticky;
 top: 0;
 z-index: 2;
}
.notifications-panel-close {
 background: none;
 border: none;
 color: white;
 font-size: 24px;
 cursor: pointer;
}
.notifications-panel-list {
 padding: 10px 0;
}
.notifications-panel-item {
 padding: 14px 20px;
 border-bottom: 1px solid #eee;
 cursor: pointer;
 transition: background 0.2s;
}
.notifications-panel-item:hover {
 background: #f5f7fa;
}
.notifications-panel-item.unread {
 background: #e8f0fe;
}
.notifications-panel-empty {
 padding: 30px;
 text-align: center;
 color: #666;
}
.notifications-overlay {
 display: none;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.5);
 z-index: 1000;
}
.notifications-overlay.active {
 display: block;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .notifications-panel {
 width: 100%;
 right: -100%;
 }
}
.panel-auth-btn {
 display: block;
 width: calc(100% - 40px);
 margin: 0 20px 15px 20px;
 padding: 14px 20px;
 background: #1a1a1a;
 color: white;
 border: none;
 border-radius: 14px;
 font-size: 15px;
 font-weight: 600;
 cursor: pointer;
 text-align: center;
 transition: all 0.2s;
 font-family: 'Inter', sans-serif;
}
.panel-auth-btn:hover {
 background: #333;
 transform: translateY(-1px);
}
@media (min-width: 769px) {
 .panel-auth-btn {
 display: none;
 }
}
.ql-toolbar button.ql-emoji {
 position: relative !important;
 width: 28px !important;
 height: 24px !important;
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 vertical-align: middle !important;
 margin: 0 -13px !important;
 padding: 0 !important;
 float: none !important;
}
.ql-toolbar button.ql-emoji::before {
 content: "😊" !important;
 font-size: 16px !important;
 line-height: 1 !important;
 display: block !important;
}
.emoji-picker {
 position: absolute !important;
 background: white !important;
 border: 1px solid #e0e0e0 !important;
 border-radius: 12px !important;
 padding: 10px !important;
 display: grid !important;
 grid-template-columns: repeat(6, 1fr) !important;
 gap: 6px !important;
 z-index: 1000 !important;
 min-width: 260px !important;
 max-width: 280px !important;
 box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}
.emoji-picker button {
 font-size: 22px !important;
 padding: 8px !important;
 border: none !important;
 background: none !important;
 cursor: pointer !important;
 border-radius: 8px !important;
 width: 38px !important;
 height: 38px !important;
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
}
#adminNavButtons .nav-btn {
 background: #bbe0ff;
 color: rgb(0, 0, 0);
 border: 1.5px solid #1a1a1a;
}
#adminNavButtons .nav-btn:hover {
 background: rgb(255, 255, 255);
 color: #1a1a1a;
 border: 1.5px solid #1a1a1a;
}
.profile-nav .nav-btn[data-tab="rejected"] {
 background: #ffffff;
 color: rgb(0, 0, 0);
 border: 1.5px solid #1a1a1a;
}
.profile-nav .nav-btn[data-tab="rejected"]:hover {
 background: rgb(0, 0, 0);
 color: #1a1a1a;
}
.profile-nav .nav-btn[data-tab="stats"] {
 background: #bbe0ff;
 color: rgb(0, 0, 0);
 border: 1.5px solid #1a1a1a;
}
.profile-nav .nav-btn[data-tab="stats"]:hover {
 background: rgb(0, 0, 0);
 color: #1a1a1a;
}
.profile-nav .nav-btn[data-tab="admin"] {
 background: #bbe0ff;
 color: rgb(0, 0, 0);
 border: 1.5px solid #1a1a1a;
}
.profile-nav .nav-btn[data-tab="admin"]:hover {
 background: rgb(0, 0, 0);
 color: #1a1a1a;
}
.avatar-delete-overlay {
 position: absolute;
 bottom: -5px;
 left: -5px;
 width: 30px;
 height: 30px;
 background: #e74c3c;
 border-radius: 50%;
 display: none;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: all 0.2s;
 border: 2px solid white;
 box-shadow: 0 1px 3px rgba(0,0,0,0.2);
 z-index: 10;
}
.avatar-delete-overlay span {
 color: white;
 font-size: 14px;
 font-weight: bold;
 line-height: 1;
}
.avatar-delete-overlay:hover {
 background: #c0392b;
 transform: scale(1.05);
}
.avatar-fullscreen-overlay {
 display: none;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.9);
 z-index: 3000;
 justify-content: center;
 align-items: center;
 cursor: pointer;
}
.avatar-fullscreen-overlay.active {
 display: flex;
}
.avatar-fullscreen-overlay img {
 max-width: 90%;
 max-height: 90%;
 border-radius: 20px;
 object-fit: contain;
}
.ql-editor {
 min-height: 120px;
 max-height: none;
 height: auto !important;
 overflow-y: visible;
 resize: vertical;
}
.ql-container {
 height: auto !important;
 min-height: 120px;
}
.step-editor {
 min-height: 120px;
}
@media (max-width: 1024px) {
 .site-logo {
 height: 44px !important;
 }
 .logo-center {
 font-size: 22px !important;
 }
 .logo-wrapper {
 gap: 10px !important;
 }
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .site-logo {
 height: 40px !important;
 }
 .logo-center {
 font-size: 18px !important;
 }
 .logo-wrapper {
 gap: 10px !important;
 }
}
@media (max-width: 550px) {
 .site-logo {
 height: 36px !important;
 }
 .logo-center {
 font-size: 16px !important;
 }
}
@media (max-width: 424px) {
 .site-logo {
 height: 32px !important;
 }
 .logo-center {
 font-size: 12px !important;
 }
 .logo-wrapper {
 gap: 6px !important;
 }
}
@media (max-width: 550px) {
 .profile-nav {
 flex-direction: column;
 align-items: stretch;
 }
 .nav-btn {
 justify-content: center;
 }
}
@media (max-width: 550px) {
 #adminNavButtons {
 flex-direction: column !important;
 gap: 10px !important;
 width: 100% !important;
 }
 
 #adminNavButtons .nav-btn {
 width: 100% !important;
 padding: 8px 20px !important;
 font-size: 14px !important;
 box-sizing: border-box !important;
 }
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .form-container {
 margin: 20px auto !important;
 padding: 20px 15px !important;
 border-radius: 16px !important;
 }
 
 .form-title {
 font-size: 22px !important;
 margin-bottom: 20px !important;
 }
 
 .form-group input,
 .form-group select,
 .form-group textarea {
 padding: 10px 12px !important;
 font-size: 14px !important;
 }
 
 .form-row {
 grid-template-columns: 1fr !important;
 gap: 10px !important;
 }
 
 .ingredient-item {
 flex-wrap: wrap !important;
 gap: 8px !important;
 }
 
 .ingredient-item input,
 .ingredient-item select {
 flex: 1 1 100% !important;
 min-width: auto !important;
 }
 
 .step-item {
 padding: 15px !important;
 }
 
 .submit-btn {
 padding: 12px !important;
 font-size: 15px !important;
 }
 
 .recipe-type-group {
 flex-direction: column !important;
 gap: 10px !important;
 }
 
 .recipe-type-option {
 min-width: auto !important;
 }
}
.header-avatar {
 width: 32px;
 height: 32px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid #1a1a1a;
 display: block;
}
.header-avatar-mini {
 width: 24px;
 height: 24px;
 border-radius: 50%;
 object-fit: cover;
 vertical-align: middle;
 margin-right: 6px;
}
.mobile-avatar-link {
 display: flex;
 align-items: center;
 justify-content: center;
 text-decoration: none;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .header-avatar {
 width: 36px;
 height: 36px;
 }
}
.step-text p {
 margin-bottom: 12px;
}
.step-text br {
 display: block;
 content: "";
 margin-top: 8px;
}
.news-section-text p {
 margin-bottom: 12px;
}
.step-text p {
 margin-bottom: 12px;
}
.step-text p:empty {
 display: block;
 height: 12px;
}
.step-text br {
 display: block;
 content: "";
 margin-top: 8px;
}
.ql-editor h1 { font-size: 24px !important; font-weight: 700 !important; margin: 16px 0 8px !important; }
.ql-editor h2 { font-size: 20px !important; font-weight: 600 !important; margin: 14px 0 6px !important; }
.ql-editor h3 { font-size: 17px !important; font-weight: 600 !important; margin: 12px 0 4px !important; }
.step-text h1, .step-text h2, .step-text h3 { margin-bottom: 12px; }
.section-text h1 { font-size: 26px; font-weight: 700; margin-bottom: 16px; color: #1a1a1a; }
.section-text h2 { font-size: 22px; font-weight: 600; margin-bottom: 14px; color: #1a1a1a; }
.section-text h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #1a1a1a; }
.section-text p { margin-bottom: 10px; }
.section-text ul, .section-text ol { margin: 10px 0 10px 25px; }
.section-text p, .news-section-text p, .step-text p {
 margin: 0 0 12px 0;
 padding: 0;
 min-height: auto;
}
.section-text, .news-section-text, .step-text {
 width: 100%;
 max-width: 100%;
 word-wrap: break-word;
}
.section-text {
 width: 100% !important;
 max-width: 100% !important;
 box-sizing: border-box;
 word-wrap: break-word;
 overflow-wrap: break-word;
}
.section-text * {
 max-width: 100% !important;
 box-sizing: border-box;
}
.news-section-text {
 width: 100% !important;
 max-width: 100% !important;
 box-sizing: border-box;
 word-wrap: break-word;
}
.news-section-text * {
 max-width: 100% !important;
 box-sizing: border-box;
}
.section-text {
 min-height: auto !important;
 height: auto !important;
}
.news-section-text {
 min-height: auto !important;
 height: auto !important;
}
.section-text,
.news-section-text,
.step-text {
 background: transparent !important;
 border: none !important;
 border-radius: 0 !important;
 padding: 0 !important;
 min-height: auto !important;
 height: auto !important;
 box-shadow: none !important;
}
.section-text *,
.news-section-text *,
.step-text * {
 background: transparent !important;
}
.step-item,
.article-section,
.news-section {
 border: 1px solid #1a1a1a;
 border-radius: 8px;
 padding: 15px 20px;
 background: #f5f9ff;
 margin-bottom: 20px;
}
.step-text,
.section-text,
.news-section-text {
 border: none !important;
 background: transparent !important;
 padding: 0 !important;
}
.step-item img,
.article-section img,
.news-section img {
 margin-top: 10px;
}
.recipe-card {
 display: flex;
 flex-direction: column;
 height: 100%;
}
.recipe-card .recipe-info {
 display: flex;
 flex-direction: column;
 flex: 1;
}
.recipe-card .recipe-description,
.recipe-card .recipe-ingredients-preview {
 flex: 1;
}
.recipe-card .recipe-actions {
 margin-top: auto;
 padding-top: 12px;
}
.recipes-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
 gap: 20px;
 align-items: stretch;
}
.recipes-grid .recipe-card {
 display: flex;
 flex-direction: column;
}
.recipes-grid .recipe-card .recipe-actions,
.recipes-grid .recipe-card a[href*="recipe.html"] {
 margin-top: auto;
}
.scroll-to-top-btn {
 position: fixed;
 bottom: 30px;
 right: 30px;
 width: 48px;
 height: 48px;
 background: #bbe0ff;
 border: 2px solid #1a1a1a;
 border-radius: 50%;
 cursor: pointer;
 font-size: 22px;
 color: #1a1a1a;
 z-index: 999;
 transition: all 0.3s ease;
 opacity: 0;
 transform: translateY(100px);
 pointer-events: none;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.scroll-to-top-btn.visible {
 opacity: 1;
 transform: translateY(0);
 pointer-events: auto;
}
.scroll-to-top-btn:hover {
 transform: translateY(-5px) scale(1.05);
 box-shadow: 0 6px 20px rgba(0,0,0,0.25);
 background: #1a1a1a;
 color: #bbe0ff;
 border-color: #bbe0ff;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .scroll-to-top-btn {
 bottom: 20px;
 right: 20px;
 width: 42px;
 height: 42px;
 font-size: 18px;
 }
}
.spiciness-options {
 display: flex;
 gap: 12px;
 flex-wrap: wrap;
}
.spiciness-option {
 display: flex;
 align-items: center;
 gap: 6px;
 padding: 8px 14px;
 border: 1.5px solid #e0e8f0;
 border-radius: 30px;
 cursor: pointer;
 font-size: 14px;
 transition: all 0.2s;
 user-select: none;
}
.spiciness-option:hover {
 border-color: #1a1a1a;
}
.spiciness-option input[type="radio"] {
 accent-color: #e74c3c;
}
.spiciness-option:has(input:checked) {
 background: #fff0f0;
 border-color: #e74c3c;
}
.article-card {
 background: white;
 border-radius: 16px;
 overflow: visible;
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
 transition: transform 0.2s, box-shadow 0.2s;
 cursor: pointer;
}
.article-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.article-image {
 height: 140px;
 overflow: visible;
}
.article-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.article-info {
 padding: 12px;
}
.article-title {
 font-size: 14px;
 font-weight: 600;
 color: #1a1a1a;
 margin-bottom: 6px;
 line-height: 1.3;
}
.article-date {
 font-size: 11px;
 color: #999;
}
#relatedArticlesGrid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 20px;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 #relatedArticlesGrid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 480px) {
 #relatedArticlesGrid { grid-template-columns: 1fr; }
}
.recipe-actions-row {
 display: flex;
 gap: 8px;
 margin-left: auto;
 flex-wrap: wrap;
}
.recipe-actions-row .save-recipe-large,
.recipe-actions-row .share-recipe-btn {
 padding: 8px 16px !important;
 margin: 0 !important;
}

@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .recipe-actions-row {
 flex-wrap: wrap;
 gap: 8px;
 margin-left: 0;
 width: 100%;
 justify-content: stretch;
 }
 
 .recipe-actions-row .save-recipe-large,
 .recipe-actions-row .share-recipe-btn {
 flex: 1 1 calc(50% - 4px);
 min-width: 70px;
 padding: 8px 12px !important;
 font-size: 12px !important;
 text-align: center;
 justify-content: center;
 }
}
@media (max-width: 480px) {
 .recipe-author-row {
 flex-wrap: wrap;
 gap: 10px;
 }
 
 .recipe-actions-row {
 width: 100%;
 justify-content: space-between;
 }
 
 .recipe-actions-row .save-recipe-large,
 .recipe-actions-row .share-recipe-btn {
 flex: 1 1 45%;
 }
}
.ql-internal-link:before {
 content: "🔗";
 font-size: 16px;
}
.ql-internal-link:hover {
 background: #e8f0fe !important;
}
@media (max-width: 1024px) {
 .recipe-image-container .recipe-image img,
 .article-image img {
 object-fit: cover !important;
 object-position: center !important;
 width: 100% !important;
 height: 100% !important;
 border-radius: 16px 16px 0 0;
 }
 .recipe-image-container,
 .article-image {
 height: 200px !important;
 min-height: 200px !important;
 }
}
.header {
 position: sticky;
 top: 0;
 z-index: 1000;
 background: white;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.step-text {
 line-height: 2.2;
 overflow-wrap: break-word;
 word-wrap: break-word;
}
.step-text p {
 margin-bottom: 20px;
}
.step-text * {
 line-height: 2.2 !important;
 margin-bottom: 15px !important;
}
@media (max-width: 1024px) {
 .step-text {
 line-height: 2.4 !important;
 word-break: break-word;
 }
 .step-text p {
 margin-bottom: 25px !important;
 display: block;
 }
 .step-text br {
 display: block;
 content: "";
 margin-bottom: 15px;
 }
}
.article-section p,
.article-section li,
.article-content p,
.article-content li,
.article-description p,
.section-text p,
.section-text li,
.news-section-text p,
.news-section-text li {
 text-align: justify !important;
}
.article-container p {
 text-align: justify !important;
}
 .site-logo {
 height: 55px !important;
 }
 .logo-center {
 font-size: 26px !important;
 }
 
 
@media (min-width: 769px) {
    .welcome-content {
        align-items: stretch !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        height: 600px !important;
    }
    .welcome-text {
        flex: 1 1 55% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 40px 50px !important;
    }
    .welcome-image {
        flex: 0 0 45% !important;
        align-items: flex-end !important;
        overflow: hidden !important;
    }
    .mascot-img {
        width: auto !important;
        height: 90% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
        max-height: none !important;
    }
}

@media (max-width: 768px) {
 .site-logo {
 height: 48px !important;
 }
 .logo-center {
 font-size: 22px !important;
 }
 }
 
 @media (max-width: 425px) {
 .site-logo {
 height: 42px !important;
 }
 .logo-center {
 font-size: 17px !important;
 }
 }
 
 @media (max-width: 375px) {
 .site-logo {
 height: 32px !important;
 }
 .logo-center {
 font-size: 14px !important;
 }
 }
 
 @media (max-width: 320px) {
 .site-logo {
 height: 30px !important;
 }
 .logo-center {
 font-size: 12px !important;
 }
 }
.step-text p {
    margin: 0 0 5px 0;
    line-height: 1.6;
}
.step-text p:last-child {
    margin-bottom: 0;
}
/* Исправление межстрочного отступа для ссылок в контенте */
.article-content a,
.recipe-content a,
.ql-editor a,
.step-content a,
.news-content a {
    line-height: inherit !important;
    vertical-align: baseline !important;
    display: inline !important;
}

/* Фикс карточек "Читайте также" на мобильных */
@media (max-width: 768px) {
 .related-recipes-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
 }
 .related-recipe-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  overflow: hidden !important;
 }
 .related-recipe-image {
  height: 120px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
 }
 .related-recipe-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
 }
 .related-recipe-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px !important;
  overflow: hidden !important;
 }
 .related-recipe-title {
  font-size: 12px !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin-bottom: 4px !important;
 }
 .related-recipe-category {
  font-size: 11px !important;
  color: #666 !important;
  margin-top: auto !important;
 }
}

/* Звёзды рейтинга */
.star { font-size: 14px; }
.star.full { color: #ffc107; }
.star.half {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    color: #ddd;
    top: -2px;
}
.star.half::after {
    content: '★';
    color: #ffc107;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
}
.star.empty { color: #ddd; }

.star.half-recipe {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    color: #ddd;
    top: 0px;
}
.star.half-recipe::after {
    content: '★';
    color: #ffc107;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
}
/* Выравнивание отступов в статьях как в рецептах */
.article-section p:last-child,
.news-section p:last-child,
.step-item p:last-child {
    margin-bottom: 0 !important;
}


    50% { opacity: 1; transform: scale(1.2); }
}



    50% { opacity: 1; transform: scale(1.2); }
}


    40% { opacity: 1; }
}

.recipe-badge {
    display: inline-block;
    background: #bbe0ff;
    color: #1a1a1a;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #a0c4e8;
    position: relative;
    overflow: visible;
    vertical-align: middle;
}
.recipe-badge .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: s 1s infinite;
    box-shadow: 0 0 2px 1px rgba(255,255,255,0.9);
}
@keyframes s {
    0%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.recipe-badge{display:inline-flex;align-items:center;background:#bbe0ff;color:#1a1a1a;padding:2px 12px;border-radius:20px;font-weight:600;border:1px solid #a0c4e8;position:relative;overflow:visible;vertical-align:middle;line-height:1.4}.recipe-badge .dot{position:absolute;width:3px;height:3px;background:white;border-radius:50%;animation:s 1s infinite;box-shadow:0 0 2px 1px rgba(255,255,255,0.9)}@keyframes s{0%,100%{opacity:0}40%{opacity:1}}

/* ===== ФИКС ЗАДВОЕНИЯ ХОВЕРА НА КАРТОЧКАХ ===== */
.recipe-card {
  overflow: hidden !important; /* Обрезаем всё, что вылезает */
}

.recipe-image-container,
.recipe-image {
  overflow: hidden !important;
}

/* Анимацию масштабирования картинки делаем аккуратно */
.recipe-card:hover .recipe-image img {
  transform: scale(1.05);
}

/* Важно: карточка при ховере не должна перекрывать соседей */
.recipe-card:hover {
  transform: translateY(-6px);
  z-index: auto; /* Не поднимаем выше соседей */
  position: relative;
}
.recipe-badge {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.recipe-badge .dot {
    position: absolute;
    z-index: -1 !important;
    pointer-events: none;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}
/* Плашка с блёстками для Рецепты Беркут */
.recipe-badge {
    position: relative;
    display: inline-block;
    background: #bbe0ff;
    color: #1a1a1a;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #a0c4e8;
    overflow: visible;
    vertical-align: middle;
}
.recipe-badge .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1s infinite;
    box-shadow: 0 0 2px 1px rgba(255,255,255,0.9);
    pointer-events: none;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.recipe-badge {
    position: relative;
    display: inline-block;
    background: #bbe0ff;
    color: #1a1a1a;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #a0c4e8;
    overflow: visible;
    vertical-align: middle;
}
.recipe-badge .dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1s infinite;
    box-shadow: 0 0 2px 1px rgba(255,255,255,0.9);
    pointer-events: none;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}
