.profile-tabs {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px;
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 10px;
    border: 1px solid #7c9ec0;
}

.profile-tabs a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    white-space: nowrap; 
    transition: all 0.2s ease;
}

.profile-tabs a:hover {
    background: #f8fafc;
    color: #1e293b;
}

.profile-tabs a svg {
    opacity: 0.7;
    transition: 0.2s;
}

.profile-tabs a.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.profile-tabs a.active svg {
    opacity: 1;
}

@media (max-width: 900px) {
    .profile-tabs {
        flex-direction: row;
        justify-content: center;
        padding: 8px;
    }
    
    .profile-tabs a {
        flex: 1 1 70px; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 10px 4px;
        font-size: 0.75rem; 
        gap: 6px;
        white-space: normal;
        line-height: 1.2;
    }

    .profile-tabs a svg {
        width: 22px; 
        height: 22px;
    }
}

.profile-form{max-width:960px;margin-top:.5rem}.profile-card{background:#ffffff;border-radius:14px;border:1px solid #e5e7eb;padding:1.2rem 1.3rem 1.5rem;box-shadow:0 18px 40px rgba(15,23,42,0.06)}.profile-layout{display:flex;gap:1.2rem;align-items:flex-start;flex-wrap:wrap}.profile-avatar{width:220px;flex:0 0 auto;text-align:center}.avatar-preview{width:120px;height:120px;margin:0 auto .7rem;border-radius:999px;background:linear-gradient(135deg,#e5e7eb,#f3f4f6);display:flex;align-items:center;justify-content:center;font-size:2.4rem;font-weight:600;color:#4b5563;overflow:hidden;transition:opacity .15s ease,transform .15s ease}.avatar-preview.loading{opacity:.6}.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-upload-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem 1rem;border-radius:999px;border:1px solid #d1d5db;background:#f9fafb;font-size:.88rem;position:relative;overflow:hidden;font-weight:500;transition:background .18s ease,border-color .18s ease,transform .08s ease,box-shadow .18s ease}.avatar-upload-btn,.avatar-upload-btn *{cursor:pointer}.avatar-upload-btn:hover{background:#f3f4f6;border-color:#cbd5e1;box-shadow:0 8px 18px rgba(148,163,184,0.4)}.avatar-upload-btn:active{transform:translateY(1px);box-shadow:0 4px 10px rgba(148,163,184,0.35)}.avatar-upload-btn input[type="file"]{position:absolute;inset:0;opacity:0}.avatar-upload-icon{width:22px;height:22px;border-radius:7px;border:1px solid #d1d5db;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;background:#ffffff}.avatar-upload-icon::before{content:"📷";line-height:1}.avatar-delete-btn{border:none;background:transparent;color:#b91c1c;font-size:.85rem;cursor:pointer;text-decoration:underline;margin-top:.4rem}.profile-fields{flex:1 1 260px}.profile-section-title{font-size:1.08rem;font-weight:700;margin:.2rem 0 .9rem;color:#111827}.profile-flash-success{margin-bottom:1rem;padding:.75rem 1rem;border-radius:12px;background:#ecfdf3;border:1px solid #bbf7d0;color:#166534;display:flex;align-items:center;gap:.5rem;font-size:.95rem;font-weight:500;box-shadow:0 4px 10px rgba(22,101,52,0.08);opacity:1;max-height:200px;transition:opacity .45s ease,transform .45s ease,max-height .45s ease,margin-bottom .45s ease,padding-top .45s ease,padding-bottom .45s ease,border-width .45s ease}.profile-flash-icon{font-size:1.1rem}.profile-flash-success.is-hide{opacity:0;transform:translateY(-4px);max-height:0;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0}.field{margin-bottom:1rem}.field label{display:block;font-weight:600;margin-bottom:.2rem;color:#111827;font-size:.95rem}.field input[type="text"],.field input[type="email"],.field input[type="number"],.field input[type="url"],.field input[type="password"],.field textarea{width:100%;border-radius:12px;border:1px solid #e5e7eb;padding:.6rem .8rem;font:inherit;box-sizing:border-box;background:#ffffff;color:#111827;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .08s ease}.field input[type="text"]::placeholder,.field input[type="email"]::placeholder,.field input[type="number"]::placeholder,.field input[type="url"]::placeholder,.field input[type="password"]::placeholder,.field textarea::placeholder{color:#9ca3af}.field input[type="text"]:focus,.field input[type="email"]:focus,.field input[type="number"]:focus,.field input[type="url"]:focus,.field input[type="password"]:focus,.field textarea:focus{outline:none;border-color:#d81b60;background:#ffffff;transform:translateY(-1px)}.field textarea{resize:vertical;min-height:120px}.field input[disabled]{background:#f3f4f6;color:#6b7280;cursor:not-allowed;transform:none;box-shadow:none}.field-error{color:#b91c1c;font-size:.85rem;margin-top:.25rem}.profile-success-banner{margin-bottom:1rem;padding:.6rem .9rem;border-radius:999px;background:#ecfdf3;color:#166534;font-size:.9rem;display:flex;align-items:center;gap:.4rem;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .35s ease,transform .35s ease}.profile-success-banner .icon{font-size:1rem}.profile-success-banner.show{opacity:1;transform:translateY(0);pointer-events:auto}.field-inline{display:flex;gap:1rem;flex-wrap:wrap}.field-inline .field-half{flex:1 1 0}.profile-fields .field label.radio-inline{display:inline-flex;align-items:center;gap:.4rem;margin:.1rem 0.3rem;width:auto;font-weight:400;cursor:pointer;padding:.15rem .4rem}.profile-fields .field label.radio-inline input[type="radio"]{width:auto;padding:0;margin:0;accent-color:#d81b60;cursor:pointer;padding:.15rem .4rem}.profile-fields .field label.radio-inline:hover{background:#fee2e2;border-radius:999px;padding:.15rem .4rem}.profile-fields .field label.radio-inline input[type="radio"]:checked + span,.profile-fields .field label.radio-inline input[type="radio"]:checked{font-weight:600;color:#111827;padding:.15rem .4rem}.profile-actions{margin-top:1.4rem;display:flex;justify-content:center}.btn-primary{padding:.6rem 1.6rem;border-radius:12px;border:1px solid #d81b60;background:#d81b60;color:#fff;text-decoration:none;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:230px;box-shadow:0 3px 6px rgb(235 37 129 / 35%);transition:background .18s ease,box-shadow .18s ease,transform .08s ease}.btn-primary:hover{background:#b71555}.btn-primary:active{transform:translateY(1px)}.list-toolbar{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:.4rem 0 .8rem}.list-toolbar input[type="search"]{border:1px solid #e5e7eb;border-radius:10px;padding:.45rem .6rem}.list-toolbar select{border:1px solid #e5e7eb;border-radius:10px;padding:.4rem .5rem;background:#fff}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.8rem}.card{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:#fff}.card img{width:100%;height:150px;object-fit:cover;display:block}.card .body{padding:.6rem .7rem}.pager{display:flex;gap:.5rem;align-items:center;margin-top:.8rem}.pager a{padding:.35rem .6rem;border-radius:8px;border:1px solid #e5e7eb;background:#fff;text-decoration:none;color:#111827}.pager .muted{color:#6b7280}.my-recipes-toolbar{margin:0.8rem 0 1.2rem;display:flex;flex-wrap:wrap;gap:0.75rem;align-items:center}.my-recipes-toolbar-search{flex:1 1 260px}.my-recipes-toolbar-search input[type="search"]{width:100%;padding:0.6rem 1rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:0.95rem;box-shadow:0 1px 2px rgba(15,23,42,0.03),0 0 0 1px rgba(148,163,184,0.08);transition:border-color 0.16s ease,box-shadow 0.16s ease,background-color 0.16s ease,transform 0.08s ease}.my-recipes-toolbar-search input[type="search"]::placeholder{color:#9ca3af}.my-recipes-toolbar-search input[type="search"]:focus{outline:none;border-color:#d81b60;background:#ffffff;box-shadow:0 0 0 1px rgba(225,29,72,0.08),0 0 0 4px rgba(225,29,72,0.18);transform:translateY(-1px)}.my-recipes-toolbar-sort{flex:0 0 auto}.my-recipes-toolbar-sort select{padding:0.55rem 2.2rem 0.55rem 0.9rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:0.9rem;cursor:pointer;outline:none;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg fill='none' stroke='%236b7280' stroke-width='2.4' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-size:16px;background-position:right 10px center;transition:border-color 0.16s ease,box-shadow 0.16s ease,background-color 0.16s ease}.my-recipes-toolbar-sort select:hover{border-color:#cbd5e1;background-color:#f8fafc}.my-recipes-toolbar-sort select:focus{border-color:#d81b60;box-shadow:0 0 0 1px rgba(225,29,72,0.08),0 0 0 3px rgba(225,29,72,0.17)}.my-recipes-toolbar-btn{width:100px;border-radius:999px;border:none;padding:0.5rem;background:#d81b60;color:#ffffff;font-size:0.9rem;font-weight:600;cursor:pointer;box-shadow:0 3px 7px rgba(225,29,72,0.35);white-space:nowrap;transition:background-color 0.16s ease,box-shadow 0.16s ease,transform 0.08s ease}.my-recipes-toolbar-btn:hover{background:#b71555;box-shadow:0 5px 10px rgba(190,18,60,0.45)}.my-recipes-toolbar-btn:active{transform:translateY(1px);box-shadow:0 3px 7px rgba(190,18,60,0.35)}@media(min-width:700px){.my-recipes-toolbar-search input[type="search"]{width:350px;border-radius:999px;border:1px solid #e5e7eb;padding:0.5rem 0.9rem;font-size:.95rem;background:#ffffff;box-shadow:0 2px 6px rgba(15,23,42,0.08);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}}@media(max-width:700px){.my-recipes-toolbar{align-items:stretch}.my-recipes-toolbar-sort,.my-recipes-toolbar-btn{flex:0 0 100%}.my-recipes-toolbar-search input[type="search"]{width:100%;border-radius:999px;border:1px solid #e5e7eb;padding:0.5rem 0.9rem;font-size:.95rem;background:#ffffff;box-shadow:0 2px 6px rgba(15,23,42,0.08);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}}@media(max-width:700px){.profile-layout{flex-direction:column}.profile-avatar{width:100%;text-align:center}.profile-actions{justify-content:center}}.my-recipes-toolbar{margin:.6rem 0 1.1rem;display:flex;flex-direction:column;gap:.45rem;width:100%}.my-recipes-row{display:flex;align-items:center}.my-recipes-row-search{gap:.7rem}.my-recipes-toolbar-search{flex:1 1 auto}.my-recipes-toolbar-search input[type="search"]::placeholder{color:#9ca3af}.my-recipes-toolbar-search input[type="search"]:focus{outline:none;border-color:#d81b60;background:#ffffff;box-shadow:0 0 0 1px rgba(225,29,72,0.10),0 4px 14px rgba(225,29,72,0.22)}.my-recipes-row-sort{width:100%;gap:.55rem;align-items:center;justify-content:flex-end;font-size:.9rem;color:#4b5563;padding-top:10px}.my-recipes-row-sort label{font-weight:600}.my-recipes-row-sort select{padding:.5rem 2.2rem .5rem .9rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:.9rem;cursor:pointer;outline:none;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg fill='none' stroke='%236b7280' stroke-width='2.4' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M19 9l-7 7-7-7'/></svg>");background-repeat:no-repeat;background-size:16px;background-position:right 12px center}.my-recipes-row-sort select:hover{border-color:#cbd5e1;background-color:#f9fafb}.my-recipes-row-sort select:focus{border-color:#d81b60;box-shadow:0 0 0 2px rgba(225,29,72,0.18)}@media(max-width:700px){.my-recipes-toolbar{max-width:none}.my-recipes-row-search{flex-direction:column;align-items:stretch}.my-recipes-toolbar-btn{width:100%;justify-content:center;text-align:center}.my-recipes-row-sort{justify-content:flex-end}}.my-recipe-card-actions{margin-top:.7rem;display:flex;justify-content:flex-end;align-items:center}.my-recipe-edit-btn{padding:.45rem 1.1rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:.9rem;text-decoration:none;color:#111827;font-weight:500;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease}.my-recipe-edit-btn:hover{background:#f9fafb;border-color:#d4d4d8;box-shadow:0 6px 16px rgba(15,23,42,0.12);transform:translateY(-1px)}.my-recipe-pending{font-size:.9rem;color:#9f1239}.saved-recipe-remove-icon{cursor:pointer;font-size:1.1rem;opacity:.7;transition:opacity .15s ease,transform .15s ease}.saved-recipe-remove-icon:hover{opacity:1;transform:translateY(-1px)}.recipe-card-bottom-row{margin-top:.4rem;display:flex;align-items:center;justify-content:space-between;width:100%}.recipe-card-bottom-row .recipe-meta-bottom-text{font-size:.85rem;color:#6b7280;flex-shrink:0}.saved-recipe-remove-icon{cursor:pointer;font-size:1.25rem;line-height:1;opacity:.75;transition:.15s ease;flex-shrink:0}.saved-recipe-remove-icon:hover{opacity:1;transform:scale(1.15);color:#dc2626}.phase-profile{border:1px solid #e5e7eb;border-radius:10px;padding:0.9rem 0.9rem 1rem;background:#f9fafb}.profile-card-header-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.6rem}.profile-card-header-row h2{margin:0;font-size:1.05rem;font-weight:700;color:#111827}.profile-card-lead{margin:0 0 .9rem;color:#4b5563;font-size:.95rem}.profile-card-actions-row{text-align:center}.profile-card-btn-large{width:100%;max-width:320px}.profile-card-btn-small{width:auto;padding-inline:1.3rem}.profile-table-wrapper{width:100%;margin-top:.4rem;overflow-x:auto}.profile-table{width:100%;border-collapse:collapse;font-size:.9rem}.profile-table thead th{text-align:left;padding:.55rem .6rem;border-bottom:1px solid #e5e7eb;color:#4b5563;font-weight:600;white-space:nowrap}.profile-table tbody td{padding:.55rem .6rem;border-bottom:1px solid #f3f4f6;vertical-align:middle}.profile-table tbody tr:nth-child(even){background:#fcfcfc}.profile-table-title a{color:#1d4ed8;text-decoration:none}.profile-table-title a:hover{text-decoration:underline}.profile-table-actions-col{text-align:right}.profile-table-actions{text-align:right}.my-articles-toolbar{margin:.4rem 0 1rem;display:flex;flex-direction:column;gap:.35rem}.my-articles-row{display:flex;align-items:center;gap:.7rem}.my-articles-row-search{flex-wrap:nowrap;padding-top:20px;padding-bottom:20px}.my-articles-toolbar-search input[type="search"]{width:100%;padding:.55rem 1rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:.9rem;box-shadow:0 1px 2px rgba(15,23,42,0.03),0 0 0 1px rgba(148,163,184,0.08);transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease,transform .08s ease}.my-articles-toolbar-search input[type="search"]::placeholder{color:#9ca3af}.my-articles-toolbar-search input[type="search"]:focus{outline:none;border-color:#d81b60;background:#ffffff;transform:translateY(-1px)}.my-articles-toolbar-btn{flex:0 0 130px;max-width:130px;border-radius:999px;border:none;padding:.5rem 1rem;background:#d81b60;color:#ffffff;font-size:.9rem;font-weight:600;cursor:pointer;box-shadow:0 3px 7px rgba(225,29,72,0.35);white-space:nowrap;text-align:center;transition:background-color .16s ease,box-shadow .16s ease,transform .08s ease}.my-articles-toolbar-btn:hover{background:#b71555}.my-articles-toolbar-btn:active{transform:translateY(1px);box-shadow:0 3px 7px rgba(190,18,60,0.35)}.my-articles-row-sort{justify-content:flex-end;gap:.45rem;font-size:.9rem;color:#4b5563}.my-articles-row-sort label{font-weight:600}.my-articles-row-sort select{padding:.45rem 2.1rem .45rem .9rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:.9rem;cursor:pointer;outline:none;appearance:none;background-image:url("data:image/svg+xml;utf8,<svg fill='none' stroke='%236b7280' stroke-width='2.4' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M19 9l-7 7-7-7'/></svg>");background-repeat:no-repeat;background-size:16px;background-position:right 10px center;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}.my-articles-row-sort select:hover{border-color:#cbd5e1;background-color:#f9fafb}.my-articles-row-sort select:focus{border-color:#d81b60;box-shadow:0 0 0 1px rgba(225,29,72,0.08),0 0 0 3px rgba(225,29,72,0.17)}.my-articles-toolbar-search{width:330px}@media(max-width:700px){.my-articles-row-search{flex-direction:column;align-items:flex-start;gap:.45rem}.my-articles-toolbar-btn{flex:0 0 auto;width:100%;max-width:100%;justify-content:center;text-align:center}.my-articles-toolbar-search{flex:1 1 auto;width:100%}}.my-article-status{display:flex;flex-wrap:wrap;gap:.25rem}.badge-article{display:inline-flex;align-items:center;padding:.15rem .5rem;border-radius:999px;font-size:.78rem;font-weight:500}.badge-article-live{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.badge-article-pending{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.badge-article-edit{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.my-article-edit-btn{padding:.4rem 1rem;border-radius:999px;border:1px solid #e5e7eb;background:#ffffff;font-size:.85rem;text-decoration:none;color:#111827;font-weight:500;display:inline-flex;align-items:center;justify-content:center;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .08s ease}.my-article-edit-btn:hover{background:#f9fafb;border-color:#d4d4d8;transform:translateY(-1px)}.profile-pager{margin-top:1rem;justify-content:flex-end}.pager span.current{padding:.35rem .6rem;border-radius:8px;border:1px solid #d81b60;background:#d81b60;color:#ffffff;font-weight:600}
.avatar-preview{position:relative}.avatar-preview.loading{opacity:1}.avatar-preview.loading img,.avatar-preview.loading span{opacity:.35}.avatar-preview.loading::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,0.45);z-index:2}.avatar-preview.loading::after{content:"";position:absolute;left:50%;top:50%;width:34px;height:34px;border-radius:999px;border:3px solid rgba(216,27,96,0.22);border-top-color:#d81b60;box-sizing:border-box;transform:translate(-50%,-50%);animation:profileAvatarSpin .8s linear infinite;z-index:3}@keyframes profileAvatarSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}@media (prefers-reduced-motion: reduce){.avatar-preview.loading::after{animation:none}}