.wn-root { 
    position: fixed; 
    top: 1rem; right: 
    1rem; z-index: 50; 
}
@media screen and (min-width: 769px) {
    .wn-root[data-auth="1"] {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.3rem 0.25rem 0.4rem;
        border-radius: 999px;
        background: rgba(69, 35, 196, 0.437);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}


.wn-signin,
.wn-user {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(68, 255, 0, 0.305);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px); 
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.wn-signin:hover,
.wn-user:hover { background: rgba(255, 255, 255, 0.32); }

.wn-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.wn-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #639922;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.wn-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 200px;
    display: flex;
    flex-direction: column;
     background: #d1d5db;
    color: #181918;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wn-menu[hidden] { display: none; }
.wn-menu form { margin: 0; }
.wn-menu a,
.wn-menu button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.4rem;
    border-radius: 0;
    background:linear-gradient(
            -45deg, #ff2a2a,#cd6438
        );
    color: #1a1f36;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 300;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.wn-menu a:hover,
.wn-menu button:hover { background: #76ed6b; }
.wn-menu hr { margin: 0; border: 0; border-top: 1px solid #e5e7eb; }
.wn-menu .wn-danger { color: #b3261e; }

.wn-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    max-width: 92vw;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: #0d012f;
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 60;
}
.wn-toast[hidden] { display: none; }
.wn-toast a { margin-left: 0.5rem; color: #b9d711; font-weight: 600; text-decoration: underline; }
.wn-toast a[hidden] { display: none; }


.results .result-item .result-body.has-bm {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
    gap: 0;
    padding: 0;
}
.result-body.has-bm {
    align-items: stretch;
}

.result-body.has-bm > :not(.result-content) {
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

.result-body.has-bm .bm-bar {
    width: 100%;
}
.result-body.has-bm .result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
}

.bm-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0.3rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: #b9e97a;
    color: #27500a;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bm-btn:hover { background: #75bada; }
.bm-btn.is-saved { background: #639922; color: #fff; }
.bm-btn.is-saved:hover { background: #4f7f1a; }
.bm-count { font-weight: 500; opacity: 0.8; }
.bm-count::before { content: "· "; }
.bm-count[hidden] { display: none; }


.wn-auth { max-width: 380px; }
.wn-lead { margin-bottom: 1rem; color: #e0e0e0; font-size: 0.95rem; }

.wn-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(248, 175, 111, 0.93);
    color: #284c22;
    text-align: left;
}
.wn-form label { font-size: 0.85rem; font-weight: 600; }
.wn-form input[type="text"],
.wn-form input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
}


.wn-policy { margin: 0.4rem 0; border: 2px solid #ff0000; border-radius: 8px; background: #f9fafb; }
.wn-policy summary { padding: 0.55rem 0.75rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.wn-policy summary:focus-visible { outline: 2px solid #639922; outline-offset: 2px; }
.wn-policy-body {
    max-height: 14rem;
    overflow-y: auto;
    padding: 0 0.75rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #374151;
    border: 2px solid #ff0000;
}
.wn-policy-body p { margin: 0 0 0.6rem; }
.wn-form .wn-check { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.5rem; 
    margin-top: 0.4rem; 
    font-size: 0.85rem; 
    font-weight: 500; 
}
.wn-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.1rem; accent-color: #639922; }


.wn-hint { font-size: 0.8rem; color: #323436; }
.wn-error { font-size: 0.85rem; color: #b3261e; }

.wn-submit {
    margin-top: 0.6rem;
    padding: 0.65rem;
    border: 0;
    border-radius: 999px;
    background: #639922;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.wn-submit:hover { background: #4f7f1a; }
.wn-submit-danger { background: #b3261e; }
.wn-submit-danger:hover { background: #8f1d17; }

.wn-alt { margin-top: 1rem; font-size: 0.9rem; color: #e0e0e0; }
.wn-alt a { color: #fff; text-decoration: underline; }
.wn-small { font-size: 0.8rem; opacity: 0.85; }


.wn-profile { max-width: 760px; }
.container.wn-profile {
    max-width: 1100px;
}

.wn-who { display: flex; align-items: center; gap: 1rem; text-align: left; }
.wn-who h1 { margin: 0; font-size: 1.6rem; }
.wn-big { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.wn-initial.wn-big { font-size: 2rem; }
.wn-link { 
    color: #e0e0e0; 
    font-size: 0.85rem; 
    text-decoration: underline; 
    cursor: pointer; 
}
.wn-line { margin: 1.25rem 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.4); }


.wn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.wn-actions form {
    margin: 0;
}

.wn-btn {
    display: inline-block;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: #f3bb9668;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px); 
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.wn-btn:hover {
    background: #4494b8;
}
.wn-actions summary {
    display: list-item;
    list-style: none;
    width: fit-content;
}

.wn-actions summary::-webkit-details-marker {
    display: none;
}
.wn-actions details[open] {
    flex-basis: 100%;
    order: 3;
}

.wn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }

.wn-head h2 {
    font-family: "Press Start 2P", system-ui;
    margin: 0;
    font-size: 1.88rem;
    padding: 10px;
    color: rgb(108, 2, 2);
    background-color: #d96c06;
    border-radius: 14px;
    font-weight: 400;
    }
.wn-edit {
    padding: 0.9rem 1rem;
    border: 3px solid rgba(0, 21, 255, 0.7);
    border-radius: 999px;
    background: transparent;
    color: #c8d818;
    font: inherit;
    font-size: 1rem;
    font-weight: 1000;
    cursor: pointer;
}

.wn-saved {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1rem;
    align-items: stretch;
    text-align: left;
}
.wn-saved[hidden] { display: none; }
.wn-card {
    display: flex;
    overflow: hidden;
    border-radius: 12px;
    justify-content: flex-start;
    min-width: 0;
    gap: 0.2rem;
    min-height: 150px;
    background: rgba(255, 179, 179, 0.93);
    color: #1a1f36;
}



.wn-card-img { 
    position: relative; 
    flex: 0 0 140px; 
    min-height: 96px; 
    background: rgba(0, 0, 0, 0.05); 
}
.wn-card-img img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.wn-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wn-card-text { 
    display: flex; 
    flex-direction: column; 
    gap: 0.1rem; 
    padding: 0.6rem 0.9rem; 
    flex: 1 1 0;
    padding: 5px 15px;
}
.wn-card-text strong { font-size: 1rem; font-weight: 1000; color: darkgreen;}
.wn-card-place { font-size: 0.8rem; color: #676200; font-family: "Sanchez", serif; font-weight: 900; }

.wn-saved-recipes .rc-card {
    display: flex;
    width: 100%;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
}


.wn-saved-recipes .rc-card .rc-pic {
    flex: 0 0 45%;
    width: 45%;
    min-width: 0;
}
.container.wn-profile {
    max-width: 1100px;
}

.wn-saved-recipes .rc-card .result-body {
    flex: 1;
    width: 64%;
    min-width: 0;
}

.wn-saved-recipes .rc-card .result-content {
    width: 100%;
    min-width: 0;
}


.wn-saved-recipes .rc-card .rc-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.wn-saved-recipes .rc-card .rc-col {
    min-width: 0;
    padding: 12px 10px;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}



.wn-remove {
    display: none;
    width: 100%;
    padding: 0.3rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: #fcebeb;
    color: #791f1f;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.is-editing .wn-remove { display: block; }
.wn-empty { 
    margin-top: 0.5rem; 
    margin-bottom: 25px;
    color: rgb(232, 4, 4);
    background: #0d012f;
    font-weight: 400;
    font-size: 1.4rem;

}
.wn-empty[hidden] { display: none; }


.wn-analytics { max-width: 760px; }
.wn-analytics h2 { margin: 1.5rem 0 0.6rem; font-size: 1.2rem; }
.wn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.wn-tile {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.93);
    color: #1a1f36;
    text-align: left;
}
.wn-tile-label { font-size: 0.8rem; color: #6b7280; }
.wn-tile-num { font-size: 1.6rem; font-weight: 600; }
.wn-tile-sub { font-size: 0.75rem; color: #6b7280; }

.wn-top {
    list-style: none;
    margin: 0;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.93);
    color: #1a1f36;
    text-align: left;
}
.wn-top li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid #e5e7eb; }
.wn-top li:last-child { border-bottom: 0; }
.wn-top small { color: #6b7280; }
.wn-top-n { font-weight: 600; }


.wn-bell { 
    position: relative; 
    background: none; 
    border: 0; 
    cursor: pointer; 
    color: inherit; 
    font-size: 1.25rem; 
    padding: .4rem .6rem; 
    color: #e07313;
}
.wn-badge { 
    position: absolute; 
    top: -2px; 
    right: -2px; 
    background: #c0261b; 
    color: #fff; 
    border-radius: 999px; 
    font-size: .7rem; 
    font-weight: 700; 
    padding: 1px 6px; 
    line-height: 1.3; 
}
.wn-notifs { 
    position: fixed; 
    top: 64px; right: 12px; 
    width: min(300px, calc(100vw - 24px)); 
    max-height: 70vh; 
    overflow-y: auto; 
    background: #fff; 
    color: #eb7703; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(195, 15, 15, 0.25); 
    z-index: 1000; 
}
.wn-notifs-head { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 16px; 
    border-bottom: 1px solid #eee5d8; 
}
.wn-notifs-head button {
    background: none; 
    border: 0; 
    color: #b8431f; 
    font-weight: 600; 
    cursor: pointer; }
.wn-notif { 
    display: flex; 
    gap: 10px; 
    padding: 12px 16px; 
    border-bottom: 1px solid #eee5d8; 
    color: inherit; 
    text-decoration: none; 
    line-height: 1.4; 
}
.wn-notif:hover { background: #faf4ea; }
.wn-dot { 
    width: 9px; 
    height: 9px; 
    border-radius: 50%; 
    background: #d9cfc2; 
    flex: none; 
    margin-top: 5px; 
}
.wn-notif.is-unread .wn-dot { background: #c0261b; }
.wn-notifs-empty { padding: 16px; margin: 0; color: #5b5247; }
.wn-notifs-actions { 
    display: flex; 
    gap: 0.75rem;
    flex-wrap: wrap; 
    justify-content: flex-end;
}
.wn-notifs-actions form { margin: 0; }

.wn-notif-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eee5d8;
}
.wn-notif-row .wn-notif { flex: 1; min-width: 0; border-bottom: 0; }
.wn-notif-row form { margin: 0; display: flex; }
.wn-notif-del {
    border: 0;
    background: transparent;
    color: #9a8f82;
    font-size: 1.2rem;
    padding: 0 14px;
    cursor: pointer;
}
.wn-notif-del:hover { color: #c0261b; background: #faf4ea; }

.wn-clear-confirm { 
    display: inline-flex; 
    align-items: center;
    gap: 0.5rem; 
    font-size: 0.85rem; 
}
.wn-clear-confirm[hidden],
.wn-clear-ask[hidden] { display: none; }
.wn-notifs-head .wn-clear-yes { color: #c0261b; }
.wn-notifs-head .wn-clear-no { color: #5b5247; font-weight: 400; }


.wn-signin:focus-visible,
.wn-user:focus-visible,
.wn-menu a:focus-visible,
.wn-menu button:focus-visible,
.bm-btn:focus-visible,
.wn-edit:focus-visible,
.wn-remove:focus-visible,
.wn-submit:focus-visible { outline: 2px solid #b9d711; outline-offset: 2px; }

.wn-pass { position: relative; }
.wn-form .wn-pass input { padding-right: 2.8rem; }
.wn-eye {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    padding: 0.3rem 0.4rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #3B6D11;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex; 
}
.wn-eye-off { display: none; }
.wn-eye.is-on .wn-eye-on { display: none; }
.wn-eye.is-on .wn-eye-off { display: block; }
.wn-eye:hover { background: #eaf3de; }
.wn-eye:focus-visible { outline: 2px solid #639922; outline-offset: 1px; }
.wn-pass input::-ms-reveal { display: none; }

.bm-bar { display: flex; width: 100%; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.bm-bar .bm-btn { flex: 1; width: auto; border-top: 0; }

.sh-btn {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: #f9dbb2;
    color: #e07313;
    cursor: pointer;
    transition: background 0.2s;
}
.sh-btn:hover { background: #fcc360; }
.sh-btn:focus-visible { outline: 2px solid #995822; outline-offset: -2px; }

.copy-message {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;

    background: #16a34a;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;

    font-size: 14px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.copy-message.show {
    opacity: 1;
    visibility: visible;
}



.signup-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}

.signup-popup-overlay[hidden] {
    display: none;
}

.signup-popup {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 35px 25px;
    border-radius: 20px;
    background: rgba(227, 172, 105, 0.93);;
    color: #e00000;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.signup-popup h2 {
    margin-top: 5px;
    font-size: 28px;
}

.signup-popup p {
    line-height: 1.6;
}

.signup-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.signup-popup-button {
    display: block;
    margin: 22px auto 12px;
    padding: 13px 20px;
    border-radius: 10px;
    background: #358440;
    color: rgb(196, 193, 193);
    text-decoration: none;
    font-weight: 800;
}

.signup-popup-login a {
    color: #176b87;
    font-weight: bold;
}

.signup-popup-skip {
    border: none;
    background: none;
    color: #ff0000;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
}


.mobile-nav {
    display: none;
}

.mobile-menu[hidden] {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .wn-head h2 {font-size: 0.8rem;}
    .container.plan h1 {display: none;}
    .mobile-nav {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1000;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        background:linear-gradient(
            -45deg, #ff2a2a,#cd6438
        );
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-home,
    .mobile-brand {
        color: #fff !important;
        text-decoration: none !important;
    }

    .mobile-home {
        justify-self: start;
        font-size: 1.3rem;
        padding: 6px
    }

    .mobile-brand {
        justify-self: center;
        font-size: 2rem;
        font-weight: 700;
        white-space: nowrap;
        font-family: Caveat, cursive; 
    }

    .mobile-menu-toggle {
        justify-self: end;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 38px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 2px;
    }

    .mobile-menu:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 62px;
        right: 12px;
        z-index: 1001;
        min-width: 180px;
        padding: 8px;
        background:linear-gradient(
            -45deg, #ff2a2a,#cd6438
        );
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .mobile-menu a,
    .mobile-menu button {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        color: white;
        text-align: left;
        text-decoration: none;
        background: transparent;
        border: none;
        border-radius: 6px;
        font: inherit;
    }

    .mobile-menu a:hover,
    .mobile-menu button:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    .wn-root > .wn-user,
    .wn-root > .wn-signin {
        display: none;
    }
    .mobile-home  { grid-column: 1; grid-row: 1; }
    .mobile-brand { grid-column: 2; grid-row: 1; }

    
    .mobile-nav .mobile-menu-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .mobile-nav .wn-bell {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-right: 50px;  
        color: hsl(63, 100%, 75%);      
    }
    .mobile-nav .wn-badge{
        background: #020202;
    }
    .wn-saved-recipes .rc-card {
        flex-direction: column;
        width: 100%;
    }

    .wn-saved-recipes .rc-card .rc-pic {
        flex: none;
        width: 100%;
        height: 230px;
        min-height: 230px;
    }

    .wn-saved-recipes .rc-card .result-body {
        width: 100%;
        flex: none;
    }

    .wn-saved-recipes .rc-card .rc-cols {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .wn-saved-recipes .rc-card .rc-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e3d9cc;
        padding: 12px 14px;
    }

    .wn-saved-recipes .rc-card .rc-col:first-child {
        border-top: none;
    }

}


@media (max-width: 480px) { 
    .wn-name { display: none; } 
    .wn-head h2 {font-size: 1rem;}

}

@media (prefers-reduced-motion: reduce) {
    .bm-btn { transition: none; }

}
