/* Profile Page Styles */

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, rgba(255,122,0,0.1), rgba(255,122,0,0.02));
    border-bottom: 2px solid rgba(255,122,0,0.2);
    padding: 3rem 2rem;
    margin-top: 70px;
}

.profile-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-avatar-large {
    flex-shrink: 0;
}

.avatar-upload-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #FF7A30; /* Оранжева рамка */
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3); /* Тінь для виділення */
    background: linear-gradient(135deg, var(--accent), rgba(255,122,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: avatarPulse 3s ease-in-out infinite;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.avatar-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #ffffff;
    z-index: 2;
    display: none; /* Показувати тільки якщо немає зображення */
}

.avatar-container.has-image .avatar-placeholder-icon {
    display: none;
}

.avatar-container:not(.has-image) .avatar-img {
    display: none;
}

.avatar-container:not(.has-image) {
    background: #374151; /* Темно-сірий фон для іконки */
}

.avatar-container:not(.has-image) .avatar-placeholder-icon {
    display: block;
}

.avatar-change-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,122,0,0.3);
    background: #ffffff; /* Білий фон */
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3;
    font-size: 0.9rem;
}

.avatar-change-btn:hover {
    transform: translateY(-1px);
    background: #f0f0f0;
}

.avatar-confirm-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.avatar-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.avatar-confirm-box {
    background: #ffffff;
    color: #0f1724;
    border-radius: 12px;
    padding: 20px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(2,6,23,0.4);
    transform: translateY(12px) scale(0.98);
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 200ms ease;
    opacity: 0;
}

.avatar-confirm-overlay.show .avatar-confirm-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.avatar-confirm-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.avatar-confirm-desc {
    color: #51606a;
    margin-bottom: 14px;
    line-height: 1.4;
}

.avatar-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.avatar-confirm-actions .btn {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
    min-width: 92px;
}

.avatar-confirm-actions .btn.cancel {
    background: transparent;
    border: 1px solid rgba(230,238,248,0.6);
    color: #0f1724;
}

.avatar-confirm-actions .btn.confirm {
    background: linear-gradient(90deg,#ff9a3b,#ff6b35);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255,122,0,0.12);
}

.avatar-confirm-actions .btn:hover {
    transform: translateY(-3px);
}

.avatar-confirm-actions .btn:active {
    transform: translateY(0) scale(0.985);
}

.avatar-confirm-actions .btn:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width:480px){
    .avatar-confirm-box { padding: 14px; }
    .avatar-confirm-actions .btn { min-width: 92px; }
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255,122,0,0.2); }
    50% { box-shadow: 0 10px 40px rgba(255,122,0,0.35); }
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

/* Name row: align name and small bell to its right */
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-name-row h1 {
    margin: 0;
    display: inline-block;
}
.profile-header-bell { margin-left: 8px; }

.profile-info h1 {
    margin: 1rem 0 0.5rem 0; /* Додано margin-top: 1rem */
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 700;
}

.profile-info p {
    margin: 0.3rem 0;
    color: #9aa6b6;
    font-size: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.profile-stats span {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.profile-stats strong {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), rgba(255,122,0,0.95));
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,122,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,122,0,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(255,122,0,0.3);
}

.btn-secondary:hover {
    background: rgba(255,122,0,0.05);
    border-color: var(--accent);
}

.btn-danger {
    background: #ff4d4d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,77,77,0.2);
}

.btn-danger:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

/* Disabled button styles */
.btn[disabled], .btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.notif-footer .btn.btn-danger[disabled] {
    border-color: rgba(255,77,77,0.06);
    color: #ff9b9b;
    background: transparent;
}

.btn-icon {
    background: none;
    border: none;
    color: #9aa6b6;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 200ms ease;
}

.btn-icon:hover {
    color: var(--accent);
    background: rgba(255,122,0,0.1);
}

.btn-icon.btn-danger {
    color: #ff6b35;
}

.btn-icon.btn-danger:hover {
    color: #ff4d4d;
    background: rgba(255,77,77,0.1);
}

/* Notifications */
.notif-wrapper { position: relative; display: inline-block; margin-right: 8px; }
.notif-btn { background: none; border: none; color: #9aa6b6; font-size: 1.1rem; padding: 6px 8px; border-radius: 8px; cursor: pointer; position: relative; }
.notif-btn:hover { color: var(--accent); background: rgba(255,122,0,0.06); }
.notif-badge { position: absolute; top: 4px; right: 2px; background: #ff4d4d; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-height: 460px; background: #0d1420; color: #e6eef8; border-radius: 10px; box-shadow: 0 20px 50px rgba(2,6,23,0.6), 0 6px 18px rgba(255,122,0,0.06); overflow: hidden; display: none; z-index: 1200; border: 1px solid rgba(255,122,0,0.06); }
.notif-dropdown.show { display: block; }
.notif-header { padding: 12px 14px; font-weight: 700; border-bottom: 1px solid rgba(255,122,0,0.04); background: linear-gradient(90deg, rgba(255,122,0,0.02), transparent); color: #e6eef8; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 14px; align-items: center; cursor: pointer; transition: background 180ms ease, transform 120ms ease; border-bottom: 1px solid rgba(255,255,255,0.02); }
.notif-item.unread { background: linear-gradient(90deg, rgba(255,122,0,0.06), transparent); box-shadow: inset 3px 0 0 rgba(255,122,0,0.08); }
.notif-item:hover { background: rgba(255,122,0,0.04); transform: translateY(-1px); }
.notif-item .notif-time { font-size: 0.8rem; color: #9aa6b6; margin-left: auto; }
.notif-empty { padding: 18px; text-align: center; color: #95a4b6; }
.notif-footer { padding: 10px; border-top: 1px solid rgba(255,255,255,0.02); text-align: center; background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent); }
.notif-item .notif-message { font-size: 0.95rem; color: #e6eef8; line-height: 1.35; }
.notif-item .notif-meta { display:flex; gap:8px; align-items:center; width:100%; }

/* small accent dot for unread items */
.notif-item.unread::before { content: ''; width:10px; height:10px; background: var(--accent); border-radius:50%; margin-right:6px; display:inline-block; flex-shrink:0; }

/* mark all read button styling */
.notif-footer .btn { padding: 8px 12px; border-radius: 8px; font-weight:600; }
.notif-footer .btn.btn-secondary { background: transparent; border: 1px solid rgba(255,122,0,0.12); color: #e6eef8; }

/* Close button in notif header */
.notif-header { display:flex; align-items:center; justify-content:space-between; }
.notif-close { background: transparent; border: none; color: #9aa6b6; font-size: 20px; line-height: 1; padding: 6px 8px; cursor: pointer; border-radius: 6px; }
.notif-close:hover { color: #fff; background: rgba(255,122,0,0.06); }

/* Custom scrollbar styling */
.notif-list { scrollbar-width: thin; scrollbar-color: rgba(255,122,0,0.25) rgba(13,20,32,0.08); }
.notif-list::-webkit-scrollbar { width: 10px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255,122,0,0.28), rgba(255,122,0,0.14)); border-radius: 999px; border: 2px solid rgba(13,20,32,0.0); }
.notif-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(255,122,0,0.36), rgba(255,122,0,0.20)); }

/* Mobile: make dropdown full width under profile name */
@media (max-width: 720px) {
    .notif-dropdown { left: 12px !important; right: 12px !important; top: auto !important; position: static; margin-top: 12px; width: calc(100% - 24px); }
}

/* Footer layout tweaks */
.notif-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notif-footer-left { flex:1; }
.notif-footer-right { display:flex; gap:8px; align-items:center; }
.notif-view-all { color: #9aa6b6; text-decoration: none; font-weight:600; }
.notif-view-all:hover { color: var(--accent); }
.notif-footer .btn.btn-danger { background: transparent; border: 1px solid rgba(255,77,77,0.12); color: #ff6b6b; padding:6px 10px; }
.notif-footer .btn.btn-danger:hover { background: rgba(255,77,77,0.06); }

/* Profile header bell (small) */
.profile-header-bell { background: none; border: none; color: #cbd5e1; margin-left: 10px; font-size: 0.95rem; vertical-align: middle; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.profile-header-bell:hover { color: var(--accent); background: rgba(255,122,0,0.03); }
.profile-header-bell i { font-size: 1.1rem; }
.profile-header-bell .notif-badge { position: relative; top: -8px; left: -6px; }

/* Profile Main Content */
.profile-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tab Navigation */
.profile-tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.04);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.profile-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.profile-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.recipe-category {
    background: rgba(0,0,0,0.28);
    color: #ff7a00;
    padding: 0.18rem 0.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18);
    margin-right: 6px;
    transform: translateX(-4px);
}

.profile-tab-btn {
    background: none;
    border: none;
    color: #9aa6b6;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 200ms ease, background 220ms ease, transform 220ms ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.profile-tab-btn:hover {
    color: var(--accent);
}

.profile-tab-btn.active {
    color: var(--accent);
}

.profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    animation: slideIn 250ms ease;
}

@keyframes slideIn {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* Tab Content */
.profile-tabs-content {
    position: relative;
}

.profile-tab-panel {
    display: none;
    animation: fadeIn 300ms ease;
}

.profile-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-tab-panel h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    font-weight: 700;
}

/* Recipes Grid */
.recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.recipe-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 280ms cubic-bezier(.2,.9,.2,1);
    animation: cardSlide 400ms ease both;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-card:nth-child(1) { animation-delay: 0ms; }
.recipe-card:nth-child(2) { animation-delay: 80ms; }
.recipe-card:nth-child(3) { animation-delay: 160ms; }

.recipe-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2,6,23,0.8);
    border-color: rgba(255,122,0,0.2);
}

.recipe-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.recipe-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.recipe-card {
    position: relative;
}

.recipe-card-editable .recipe-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.recipe-card-editable .recipe-card-action {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: transform 180ms ease, background 180ms ease;
    z-index: 101 !important;
    pointer-events: auto !important;
}

.recipe-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.recipe-card-editable .recipe-card-action.btn-danger {
    background: rgba(255, 75, 75, 0.24);
    border-color: rgba(255, 77, 77, 0.45);
    color: #ffe7e7;
}

.recipe-card-editable .recipe-card-action:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

.recipe-card-editable .recipe-card-action.btn-danger:hover {
    background: rgba(255, 50, 50, 0.4);
}

/* Apply comment-style action button visuals to recipe card action buttons when using shared classes */
.recipe-card-editable .comment-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(16,24,32,0.06);
    background: transparent;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    color: inherit;
}
.recipe-card-editable .comment-action-btn i { font-size: 14px; line-height:1; }
.recipe-card-editable .comment-action-btn.delete {
    background: linear-gradient(180deg, #fff4f4 0%, #ffe6e6 100%);
    color: #8b1d1d;
    border-color: rgba(255,77,77,0.08);
    box-shadow: 0 6px 12px rgba(255,77,77,0.04) inset;
}
.recipe-card-editable .comment-action-btn.delete:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,77,77,0.08); }

.recipe-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.recipe-info h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.recipe-description {
    color: #9aa6b6;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cook-time {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.recipe-category {
    background-color: rgba(255,122,0,0.15);
    color: #FF7A00;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.recipe-button {
    background: linear-gradient(90deg, var(--accent), rgba(255,122,0,0.95));
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 200ms ease;
    font-weight: 600;
}

.recipe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,122,0,0.2);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1.5rem;
    animation: cardSlide 400ms ease both;
    transition: all 200ms ease;
}

.comment-item:hover {
    border-color: rgba(255,122,0,0.2);
    box-shadow: 0 8px 24px rgba(255,122,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.comment-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.comment-date {
    color: #9aa6b6;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.3rem;
}

.comment-text {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 1rem 0;
}

.comment-stats {
    display: flex;
    gap: 1.5rem;
    color: #9aa6b6;
    font-size: 0.9rem;
}

/* Settings */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 2rem;
    animation: cardSlide 400ms ease both;
}

.settings-section h3 {
    margin: 0 0 1.5rem 0;
    color: var(--accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0,0,0,0.4);
    border-color: rgba(255,122,0,0.4);
    box-shadow: 0 0 0 3px rgba(255,122,0,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 200ms ease;
}

.checkbox-label:hover {
    color: #ffffff;
}

.checkbox-label input {
    width: auto !important;
    height: 18px;
    width: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.danger-zone {
    border-color: rgba(255,77,77,0.2);
    background: linear-gradient(180deg, rgba(255,77,77,0.05), rgba(255,77,77,0.02));
}

.danger-zone p {
    color: #ff9999;
    margin: 0 0 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .nav-actions .profile-btn {
        display: none !important;
    }

    .profile-header {
        background: #1E2530;
        padding: 2rem 1.5rem 1.25rem;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .avatar-upload-wrapper {
        position: relative;
        width: min(120px, 100%);
        height: min(120px, 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .avatar-wrapper {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
        margin: 0 auto;
    }

    .avatar-change-btn {
        right: 0;
        bottom: 0;
        transform: none; /* Повернути до нижнього правого кута */
        background: #ffffff;
        border: 1px solid rgba(255,122,0,0.3);
        width: 32px;
        height: 32px;
    }

    .avatar-change-btn:hover {
        background: #f0f0f0;
    }

    .profile-info {
        width: 100%;
    }

    .profile-name-row {
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
    }

    .profile-name-row h1 {
        margin-bottom: 0;
        font-size: 1.75rem;
    }

    .profile-header-bell {
        margin-left: 0.35rem;
        padding: 0.55rem 0.65rem;
        background: rgba(255,255,255,0.05);
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.08);
        color: #ffffff;
    }

    .profile-header-bell i {
        color: var(--accent);
    }

    #profileEmail {
        color: #cbd5e1;
        font-size: 0.95rem;
        margin-top: 0.35rem;
        letter-spacing: 0.2px;
    }

    .profile-actions {
        display: none;
    }

    .profile-stats {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0.9rem;
        margin-top: 1.3rem;
        width: 100%;
        max-width: 520px;
        padding: 0;
    }

    .profile-stats span {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        flex: 1 1 30%;
        min-width: 96px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
        padding: 1rem 0.85rem;
        color: #e6eef8;
        font-size: 0.95rem;
    }

    .profile-stats span i {
        color: var(--accent);
        font-size: 1rem;
    }

    .profile-stats span strong {
        font-size: 1.1rem; /* Зменшений шрифт цифр */
        color: var(--accent);
    }

    .profile-tab-btn {
        padding: 0.9rem 1.1rem;
        font-size: 0.88rem;
        min-width: 160px;
        flex: 0 0 auto;
        border-radius: 999px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        transition: all 240ms ease;
        scroll-snap-align: start;
    }

    .profile-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.85rem;
        padding: 0 0.5rem 0.4rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .profile-tab-btn.active {
        background: rgba(255,122,0,0.18);
        color: var(--accent);
        border-color: rgba(255,122,0,0.3);
        box-shadow: 0 10px 26px rgba(255,122,0,0.14);
    }

    .profile-tab-btn:hover {
        transform: translateY(-1px);
    }

    .profile-tab-btn:focus-visible {
        outline: 2px solid rgba(255,122,0,0.45);
        outline-offset: 3px;
    }

    .profile-main {
        max-width: 100%;
        padding: 20px;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .recipe-card {
        width: 100%;
    }

    .recipe-image {
        height: 220px;
        min-height: 220px;
    }

    .recipe-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .recipes-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .recipes-header .btn {
        width: 100%;
        justify-content: center;
    }

    .comment-header {
        flex-direction: column;
    }

    .profile-header {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.3rem;
        margin-top: 1rem; /* Додано margin-top для мобільної версії */
    }

    .profile-stats {
        font-size: 0.85rem;
        gap: 1rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .profile-tab-btn {
        padding: 0.6rem 0.8rem;
        gap: 0.3rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Create recipe modal (overlay) */
.create-recipe-overlay {
    position: fixed;
    inset: 0;
    display: none; /* shown via inline style or JS */
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.7);
    z-index: 9999;
    padding: 2rem;
}
.create-recipe-overlay .create-recipe-modal {
    width: 680px;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(10,14,20,0.98), rgba(6,10,14,0.99));
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
}
.create-recipe-overlay .create-recipe-modal h3 {
    margin: 0 0 1rem 0;
    color: #ffffff;
}
.create-recipe-overlay .create-recipe-modal label {
    display: block;
    color: #9aa6b6;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}
.create-recipe-overlay .create-recipe-modal input[type="text"],
.create-recipe-overlay .create-recipe-modal textarea,
.create-recipe-overlay .create-recipe-modal input[type="file"] {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #fff;
}
.create-recipe-overlay .create-recipe-modal textarea { min-height: 100px; }
.create-recipe-overlay .modal-close {
    position: absolute;
    right: 2.2rem;
    top: 1.6rem;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-open { overflow: hidden; }

/* Add Recipe Form Styles */
.add-recipe-form {
    display: none !important;
}

.add-recipe-form.visible {
    display: block !important;
}

.add-recipe-form input[type="text"],
.add-recipe-form textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

.add-recipe-form input[type="text"]:focus,
.add-recipe-form textarea:focus {
    outline: none;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

/* Create Recipe Modal Styles */
#createRecipeOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

#createRecipeOverlay[style*="display: none"] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

/* Confirm modal styles */
.confirm-modal-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999 !important;
    padding: 1.5rem;
    pointer-events: none;
}
.confirm-modal-overlay.show {
    display: flex !important;
    pointer-events: auto;
}
.confirm-modal {
    width: 420px;
    max-width: 96%;
    background: linear-gradient(180deg, rgba(18,22,28,0.995), rgba(10,14,18,0.995));
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 30px 80px rgba(2,6,23,0.7);
    border: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    transform: translateY(6px) scale(0.995);
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
    opacity: 0;
}
.confirm-modal-overlay.show .confirm-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.confirm-modal-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.confirm-modal h3 {
    margin: 0 0 0.4rem 0;
    color: #fff;
    font-size: 1.05rem;
}
.confirm-modal p {
    color: #cbd5e1;
    margin: 0 0 1rem 0;
}
.confirm-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.6rem;
}
.confirm-modal .btn {
    min-width: 120px;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
}
.confirm-modal .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,122,0,0.12);
    color: #fff;
}
.confirm-modal .btn-danger {
    background: linear-gradient(90deg, #ff6b35, #ff4d4d);
    color: #fff;
}

@media (max-width: 480px) {
    .confirm-modal { padding: 1rem; }
    .confirm-modal .btn { min-width: 100px; }
}

.create-recipe-modal {
    background: linear-gradient(135deg, #0d1420 0%, #1a1f2e 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 122, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: calc(100vh - 60px);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(90deg, rgba(255,122,0,0.25), rgba(255,122,0,0.08) 50%, transparent);
    padding: 2rem;
    border-bottom: 2px solid rgba(255,122,0,0.35);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.modal-header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.95rem;
}

.recipe-form-content {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Скрити стандартний скролбар, але дозволити прокручування */
.recipe-form-content::-webkit-scrollbar {
    width: 0px;
}

.recipe-form-content::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-form-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.recipe-form-content::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

#createRecipeClose {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.03);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 180ms ease, transform 150ms ease;
    z-index: 2000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

#createRecipeClose:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.06);
}

/* Make the visual × slightly larger and ensure it is centered */
#createRecipeClose::after {
    content: attr(aria-label);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideInUp 0.5s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    color: #e0e7ff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.file-input-wrapper input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select {
    color-scheme: light dark;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF7A00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    font-size: 0.9rem;
    accent-color: #ff7a00;
}

.form-group select option {
    background: #0d1420;
    color: #fff;
    padding: 0.6rem;
    margin: 0.25rem 0;
    accent-color: #ff7a00;
}

.form-group select option:checked {
    background: #ff7a00 !important;
    background-color: #ff7a00 !important;
    color: #fff !important;
    accent-color: #ff7a00 !important;
}

.form-group select option:hover {
    background: #ff7a00 !important;
    color: #fff !important;
}

.form-group input:focus,
.form-group select:focus,
.file-input-wrapper input:focus {
    outline: none;
    border-color: rgba(255, 122, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 1.5rem;
    animation: slideInUp 0.5s ease 0.15s forwards;
}

.form-section {
    animation: slideInUp 0.5s ease forwards;
}

.form-section:nth-of-type(1) { animation-delay: 0.3s; }
.form-section:nth-of-type(2) { animation-delay: 0.4s; }

.form-section h3 {
    color: #ff7a00;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input {
    border: 2px dashed rgba(255, 122, 0, 0.3);
    cursor: pointer;
    width: 100%;
}

.file-input-wrapper input:hover {
    border-color: rgba(255, 122, 0, 0.5);
}

#imageFileName {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #9aa6b6;
    padding: 0.75rem;
    background: rgba(255, 122, 0, 0.05);
    border-radius: 6px;
    border-left: 3px solid #ff7a00;
    animation: slideInUp 0.3s ease;
}

.ingredients-list,
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ingredient-item,
.step-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    animation: slideInUp 0.3s ease;
}

.ingredient-item {
    align-items: center;
}

.step-item {
    align-items: flex-start;
    padding-bottom: 1rem;
}

.ingredient-number,
.step-number {
    color: #ff7a00;
    font-weight: bold;
    min-width: 24px;
    padding-top: 0;
    flex-shrink: 0;
    text-align: center;
}

.ingredient-item input,
.step-item textarea {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.step-item textarea {
    min-height: 100px;
    resize: vertical;
    padding: 1rem;
}

.ingredient-item input:focus,
.step-item textarea:focus {
    outline: none;
    border-color: rgba(255, 122, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.delete-btn {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    min-width: auto;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: scale(1.1);
}

.add-btn {
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.3);
    color: #ff7a00;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.add-btn:hover {
    background: rgba(255, 122, 0, 0.2);
    border-color: rgba(255, 122, 0, 0.5);
    transform: translateX(4px);
}

.submit-btn {
    background: linear-gradient(90deg, #ff7a00, #ff8c1a);
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
    margin-top: 1rem;
    animation: slideInUp 0.5s ease 0.5s forwards;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    body.modal-open {
        overflow: auto !important;
    }

    .create-recipe-overlay {
        align-items: flex-start;
        justify-content: center;
        padding: 0.5rem 0.5rem 0;
        background: rgba(18, 22, 29, 0.98);
        overflow-y: auto;
    }

    .create-recipe-overlay .create-recipe-modal {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .create-recipe-overlay .modal-close {
        top: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 14px;
    }

    .modal-header {
        padding: 1rem 1rem 0.75rem;
        position: sticky;
        top: 0;
        z-index: 20;
        background: #12161D;
        border-bottom: 1px solid rgba(255, 122, 0, 0.14);
    }

    .modal-header h1 {
        font-size: 1.45rem;
    }

    .modal-header p {
        font-size: 0.95rem;
    }

    .recipe-form-content {
        padding: 1rem;
        padding-bottom: 6rem;
        gap: 1rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .file-input-wrapper .btn {
        min-height: 48px;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    .form-group textarea {
        min-height: 120px;
        padding: 1rem;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .file-input-wrapper {
        display: grid;
        gap: 0.75rem;
        width: 100%;
        padding: 1rem;
        min-height: 140px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px dashed rgba(255, 122, 0, 0.35);
        border-radius: 18px;
        cursor: pointer;
    }

    .file-input-wrapper .btn {
        width: 100%;
        border-radius: 14px;
        text-align: center;
        background: rgba(255, 122, 0, 0.12);
        border: 1px solid rgba(255, 122, 0, 0.3);
        color: #ffbf94;
    }

    .file-name {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.95rem;
    }

    .ingredients-list,
    .steps-list {
        gap: 0.85rem;
    }

    .ingredient-item,
    .step-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .step-item {
        padding-bottom: 0.5rem;
    }

    .ingredient-number,
    .step-number {
        min-width: auto;
        color: #ff7a30;
        font-size: 1rem;
        font-weight: 700;
    }

    .ingredient-item input,
    .step-item textarea {
        border-radius: 14px;
        min-height: 48px;
    }

    .step-item textarea {
        min-height: 120px;
    }

    .delete-btn {
        align-self: flex-end;
        width: 46px;
        height: 46px;
        padding: 0;
        border-radius: 14px;
        background: rgba(255, 107, 107, 0.18);
        color: #ff6b6b;
        font-size: 1.2rem;
    }

    .add-btn {
        width: 100%;
        padding: 1rem;
        border-radius: 14px;
        font-size: 1rem;
        margin-top: 0;
    }

    .submit-btn {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 1rem 0 0;
        padding: 1rem;
        border-radius: 0;
        box-shadow: 0 -8px 20px rgba(255, 122, 0, 0.25);
        z-index: 15;
    }

    .recipe-card {
        position: relative;
    }

    .recipe-card-editable .recipe-card-actions {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        gap: 0.5rem;
        z-index: 100 !important;
        pointer-events: auto !important;
    }

    .recipe-card-editable .recipe-card-action {
        cursor: pointer;
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #ffffff;
        transition: transform 180ms ease, background 180ms ease;
    }

    .recipe-card-editable .recipe-card-action.btn-danger {
        background: rgba(255, 75, 75, 0.25);
        border-color: rgba(255, 77, 77, 0.45);
        color: #ffe7e7;
    }

    .recipe-card-editable .recipe-card-action:hover {
        background: rgba(0, 0, 0, 0.65);
        transform: translateY(-1px);
    }

    .recipe-card-editable .recipe-card-action.btn-danger:hover {
        background: rgba(255, 70, 70, 0.35);
    }

    .recipe-card-editable .recipe-meta .meta-right {
        display: none;
    }

    .recipe-card-editable .recipe-meta {
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.create-recipe-validation-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10050;
    max-width: 360px;
    background: rgba(231, 76, 60, 0.96);
    color: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.create-recipe-validation-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .create-recipe-validation-toast {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
        max-width: none;
    }
}



