/* --- Profile Page Base Layout --- */
.profile-main-container {
    background-color: #f7f5f2;
    /* Light subtle grey/beige background */
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.profile-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-layout > * {
    min-width: 0; /* Prevents grid items from overflowing on mobile */
}

#profile-alerts-container:empty {
    display: none !important;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* --- Card Sections --- */
.card-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    padding: 30px;
}

/* Sidebar Specific */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- Profile Picture & Header --- */
.circular-progress-wrapper {
    position: relative;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: conic-gradient(#4caf50 0deg, #eaeaea 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.profile-img-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
}

.profile-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.edit-img-btn {
    position: absolute;
    bottom: 0;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: #fdf2ec;
    /* Soft reddish background */
    color: #e85d04;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.edit-img-btn:hover {
    background-color: #fde3d2;
    transform: scale(1.05);
}

.view-only-mode .edit-img-btn {
    display: none !important;
}

.share-profile-btn {
    background: transparent;
    border: none;
    color: #e85d04;
    /* Primary red color */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    transition: color 0.2s ease;
}

.share-profile-btn:hover {
    color: #d55301;
}

.profile-divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 0;
}

/* --- Sidebar Sections Inner --- */
.profile-section {
    margin-bottom: 16px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: capitalize;
}

/* Tags (Expertise & Languages) */
.expertise-tags,
.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Specific Tag Colors based on image */
.expertise-tags .profile-tag {
    border: 1px solid #fde3d2;
    background-color: #fff;
    color: #555;
}

.expertise-tags .profile-tag i {
    color: #e85d04;
}

.outline-tag {
    border: 1px solid #ddd;
    background-color: transparent;
    color: #444;
}

.add-tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px dashed #ccc;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-tag-btn:hover {
    border-color: #e85d04;
    color: #e85d04;
    background: #fdf2ec;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14.5px;
    font-weight: 500;
    color: #444;
}

.achievement-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
}

.achievement-rating .fa-star {
    color: #ffc107;
    /* Gold star */
}

/* Social Icons (Footer Match) */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.social-icon:hover {
    background-color: #555;
    border-color: #e85d04;
    transform: translateY(-2px);
}

.social-icon i {
    font-size: 20px;
    color: white;
    transition: color 0.3s ease;
}

.social-icon:hover i {
    color: #e85d04;
}

.social-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.edit-social-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background-color: #fdf2ec;
    color: #e85d04;
    border: 1px solid #fde3d2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.edit-social-btn:hover {
    background-color: #fde3d2;
    transform: scale(1.1);
}

body.view-only-mode .edit-social-btn {
    display: none !important;
}

/* --- Right Side: Overview --- */
.overview-section {
    padding: 40px;
}

.section-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    color: #333 !important;
}

.edit-text-btn {
    background: transparent;
    border: none;
    color: #e85d04;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.edit-text-btn:hover {
    color: #d55301;
}

.overview-content p {
    color: #444 !important;
    font-size: 16px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.7;
    margin-bottom: 20px;
}

.overview-content p:last-child {
    margin-bottom: 0;
}

/* Textarea input mode */
.overview-edit-mode textarea {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 15px;
    resize: vertical;
}

.overview-edit-mode textarea:focus {
    outline: none;
    border-color: #e85d04;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.btn-primary {
    background-color: #e85d04;
    border-color: #e85d04;
}

.btn-primary:hover {
    background-color: #d55301;
    border-color: #d55301;
}

/* --- View Only Mode --- */
body.view-only-mode .edit-img-btn,
body.view-only-mode .add-tag-btn,
body.view-only-mode .edit-text-btn,
body.view-only-mode .remove-tag,
body.view-only-mode #profileProgressHint,
body.view-only-mode .logout-btn-container {
    display: none !important;
}

/* --- Status Animation Overlay --- */
#status-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#status-animation-overlay.show {
    opacity: 1;
}

.animation-container {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

#status-animation-overlay.show .animation-container {
    transform: scale(1);
}

#status-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.animation-icon-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.animation-icon-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 60px;
}

.status-message {
    margin-top: 40px;
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
}

#status-animation-overlay.show .status-message {
    opacity: 1;
    transform: translateY(0);
}

.status-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.status-message p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.6;
}

.close-animation-btn {
    margin-top: 50px;
    background: white;
    color: #0f172a;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.close-animation-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Specific Status Styles */
.status-published .animation-icon-wrapper {
    display: none;
}

.status-published #status-video {
    display: block;
}

.status-rejected .animation-icon-box {
    background: #fee2e2;
    color: #ef4444;
}

.status-rejected .animation-icon-wrapper {
    display: flex;
}

.status-modification .animation-icon-box {
    background: #fff7ed;
    color: #f97316;
}

.status-modification .animation-icon-wrapper {
    display: flex;
}

/* --- Override Bootstrap Modal Z-Index for this page to beat Navbar --- */
.modal-backdrop {
    z-index: 2147483645 !important;
}

.modal {
    z-index: 2147483646 !important;
}

/* --- Advanced Typeahead Search & Modal (Apple-inspired) --- */
.picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483647 !important;
    /* Max integer to beat navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.picker-overlay.show {
    opacity: 1;
    visibility: visible;
}

.picker-modal {
    background: #ffffff;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.picker-overlay.show .picker-modal {
    transform: translateY(0) scale(1);
}

/* Mobile Bottom Sheet Transformation */
@media (max-width: 576px) {
    .picker-overlay {
        align-items: flex-end;
    }

    .picker-modal {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        /* Taller on mobile for better reach */
        border-radius: 32px 32px 0 0;
        transform: translateY(100%);
    }

    .picker-overlay.show .picker-modal {
        transform: translateY(0);
    }

    .picker-drag-handle {
        width: 40px;
        height: 5px;
        background: #e2e8f0;
        border-radius: 10px;
        margin: 12px auto 0 auto;
        display: block !important;
    }
}

.picker-drag-handle {
    display: none;
}

.picker-header {
    padding: 32px 32px 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.picker-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    font-family: 'Outfit', sans-serif;
    padding-top: 4px;
}

.picker-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.picker-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.picker-search-container {
    padding: 0 32px 16px 32px;
    position: relative;
}

.picker-search-input {
    width: 100%;
    height: 54px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 0 50px 0 20px;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.picker-search-input:focus {
    border-color: #e85d04;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
}

.picker-search-icon {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.picker-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px 16px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling for iOS */
}

.picker-content::-webkit-scrollbar {
    width: 6px;
}

.picker-content::-webkit-scrollbar-track {
    background: transparent;
}

.picker-content::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.picker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.picker-item {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    font-weight: 500;
    color: #334155;
}

.picker-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.picker-item.selected {
    background: #fdf2ec;
    color: #e85d04;
}

.picker-item i {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.picker-item.selected i {
    opacity: 1;
}

.picker-footer {
    padding: 20px 32px 32px 32px;
    display: flex;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.picker-btn {
    flex: 1;
    height: 54px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.picker-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.picker-btn-secondary:hover {
    background: #e2e8f0;
}

.picker-btn-primary {
    background: #e85d04;
    color: #ffffff;
}

.picker-btn-primary:hover {
    background: #d55301;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

/* Selected Filter Chips */
.selected-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 32px 16px 32px;
    max-height: 100px;
    overflow-y: auto;
}

.lang-chip {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.lang-chip i {
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.lang-chip i:hover {
    color: #f43f5e;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.no-results i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ===== Bootstrap Modal Z-Index Override =====
   Ensure Bootstrap modals always appear above the navbar (which typically uses z-index 1000-1100).
   Bootstrap's default is 1055 for modal, 1050 for backdrop — we push both higher. */
#addAchievementModal,
#addExpertiseModal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99998 !important;
}

/* Circular Crop Box for Social Media Feel */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.cropper-view-box {
    outline: 0;
    box-shadow: 0 0 0 1px #e85d04;
}

.cropper-dashed {
    display: none;
    /* Hide dashed lines for circular crop */
}

/* ── Modern Article Status Tracker ───────────────────── */
.art-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 24px 14px;
    width: 100%;
    gap: 0;
}

.art-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
    min-width: 60px;
}

.art-tracker-line {
    flex: 1 1 0;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 16px; /* align with center of 32px circle */
    min-width: 20px;
    transition: background 0.4s ease;
}

.art-tracker-line.done { background: #16a34a; }
.art-tracker-line.active-line { background: linear-gradient(90deg, #16a34a 50%, #e2e8f0 100%); }
.art-tracker-line.warn-line { background: linear-gradient(90deg, #e85d04 50%, #e2e8f0 100%); }
.art-tracker-line.error-line { background: linear-gradient(90deg, #dc2626 50%, #e2e8f0 100%); }

.art-tracker-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 2.5px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.art-tracker-circle.done {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.art-tracker-circle.active {
    background: #fff;
    border-color: #e85d04;
    color: #e85d04;
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.12);
    animation: tracker-glow 2s ease-in-out infinite;
}

.art-tracker-circle.terminal-ok {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.art-tracker-circle.terminal-bad, .art-tracker-circle.error {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.art-tracker-circle.warn {
    background: #fff;
    border-color: #e85d04;
    color: #e85d04;
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.12);
}

@keyframes tracker-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12); }
    50% { box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.06); }
}

.art-tracker-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.art-tracker-label.done { color: #16a34a; }
.art-tracker-label.active { color: #e85d04; font-weight: 700; }
.art-tracker-label.terminal-ok { color: #16a34a; font-weight: 700; }
.art-tracker-label.terminal-bad, .art-tracker-label.error { color: #dc2626; font-weight: 700; }
.art-tracker-label.warn { color: #e85d04; font-weight: 700; }

/* ── Article Kebab Menu (three-dot) ───────────────────── */
.article-menu-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
}

.article-menu-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}

.article-menu-btn:hover {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-menu-dropdown {
    display: none;
    position: absolute;
    top: 36px;
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 150px;
    overflow: hidden;
    z-index: 20;
    animation: menuFadeIn 0.15s ease;
}

.article-menu-dropdown.show {
    display: block;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-menu-dropdown button {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.article-menu-dropdown button:hover {
    background: #f8fafc;
}

.article-menu-dropdown button.danger {
    color: #dc2626;
}

.article-menu-dropdown button.danger:hover {
    background: #fef2f2;
}

/* Revision Notification Badge */
.revision-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background: #e85d04;
    color: white;
    font-size: 1rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -12px;
    box-shadow: 0 4px 10px rgba(232, 93, 4, 0.35);
    border: 2px solid #fff;
    /* High contrast border makes it pop */
    animation: badge-pulse 2s infinite;
    z-index: 5;
}

/* Invert colors when the tab is active to ensure visibility on orange background */
.profile-tabs .nav-link.active .revision-badge {
    background: #fff;
    color: #e85d04;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(232, 93, 4, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 93, 4, 0);
    }
}

.nav-link {
    position: relative;
}

/* My Articles Category Tabs */
.profile-tabs .nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 12px;
    color: #64748b;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-tabs .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.profile-tabs .nav-link.active {
    background: #e85d04 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.25);
}

/* Clean Editorial Article Cards styling matching the main site */
.article-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Instagram-style Settings Button */
.profile-settings-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.profile-settings-btn:hover {
    color: #475569;
    transform: rotate(45deg);
}

/* Instagram-Style Settings Modal Backdrops */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.instagram-settings-card {
    background: #ffffff;
    width: 400px;
    max-width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: settingsSlideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes settingsSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.settings-option {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.settings-option:hover {
    background-color: #f8fafc;
}

.settings-option.text-danger {
    color: #ef4444;
}

.settings-option.settings-cancel {
    font-weight: 500;
    color: #64748b;
    border-bottom: none;
}

/* Delete Article Selection Dialog styling */
.delete-article-card {
    background: #ffffff;
    width: 500px;
    max-width: 95%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: settingsSlideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.delete-article-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-article-header h3 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Playfair Display', serif;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #ef4444;
}

.delete-article-list {
    padding: 10px 20px;
    overflow-y: auto;
    flex: 1;
}

.delete-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.delete-article-item:last-child {
    border-bottom: none;
}

.delete-article-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.delete-article-img {
    width: 50px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
}

.delete-article-title-text {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-article-status {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
}

.delete-article-status.published {
    background: #e6f4ea;
    color: #137333;
}

.delete-article-status.under_review,
.delete-article-status.pending {
    background: #fef7e0;
    color: #b06000;
}

.delete-article-status.draft {
    background: #f1f5f9;
    color: #475569;
}

.delete-item-action-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-left: 12px;
}

.delete-item-action-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.08);
}

/* Custom Confirm Modal styling */
.presspeak-confirm-card {
    background: #ffffff;
    width: 420px;
    max-width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: settingsSlideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.confirm-modal-header {
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Playfair Display', serif;
}

.confirm-modal-body {
    padding: 14px 20px 10px;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #475569;
    text-align: center;
}

.confirm-modal-footer {
    padding: 10px 20px 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: #f8fafc;
}

.confirm-btn-cancel {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.45rem;
    transition: background 0.2s, transform 0.2s;
    transform: translateY(0px);
}

.confirm-btn-cancel:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.confirm-btn-ok {
    background: rgb(232, 93, 4);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 1.45rem;
    box-shadow: rgba(232, 93, 4, 0.2) 0px 4px 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.confirm-btn-ok:hover {
    background: rgb(210, 80, 3);
    transform: translateY(-1px);
}

.confirm-btn-ok:active {
    transform: translateY(1px);
}

/* --- Mobile Layout Optimizations --- */
@media (max-width: 576px) {
    .profile-main-container {
        padding: 15px 10px;
    }
    
    .card-section {
        padding: 16px 20px;
    }
    
    .profile-sidebar {
        gap: 10px;
    }
    
    .profile-section-title {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .profile-section p.text-muted {
        margin-bottom: 0 !important;
        font-size: 14px !important;
    }
    
    .circular-progress-wrapper {
        width: 112px;
        height: 112px;
        margin-bottom: 5px;
    }
    
    .profile-img-container {
        width: 104px;
        height: 104px;
    }
    
    .profile-header .mb-3 {
        margin-bottom: 8px !important;
    }
    
    .profile-header .mt-3 {
        margin-top: 8px !important;
    }
    
    .edit-img-btn {
        width: 32px;
        height: 32px;
        right: 0px;
        bottom: 0px;
    }
}