﻿/* ==========================================================
   JOBSEEKER - EDIT PROFILE PAGE  (Teal / Emerald theme)
   Uses variables from dashboard.css (jobseeker master):
   --primary, --primary-dark, --primary-soft, --primary-soft-2,
   --grad, --dark, --text, --muted, --border
========================================================== */

html {
    scroll-behavior: smooth;
}

.edit-profile-page {
    max-width: 1450px;
    margin: auto;
}


/* ===============================
   HEADING
=============================== */

.edit-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.page-small-title {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.edit-page-heading h1 {
    margin: 10px 0 5px;
    color: var(--dark);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.9px;
}

.edit-page-heading p {
    color: var(--text);
    font-size: 13px;
    margin: 0;
}

.view-profile-btn {
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    transition: .2s;
}

    .view-profile-btn:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary-dark);
    }


/* ===============================
   MESSAGE
=============================== */

.profile-message {
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

    .profile-message.success {
        border: 1px solid #a7f3d0;
        background: #ecfdf5;
        color: #047857;
    }

    .profile-message.error {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }


/* ===============================
   LEFT NAVIGATION
=============================== */

.edit-profile-nav {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.edit-nav-title {
    padding: 8px 10px 12px;
}

    .edit-nav-title span {
        color: #a0aec0;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.2px;
    }

.edit-nav-link {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
}

    .edit-nav-link i {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        background: #f1f5f9;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: .2s;
    }

    .edit-nav-link:hover,
    .edit-nav-link.active {
        background: var(--primary-soft);
        color: var(--primary-dark);
    }

        .edit-nav-link:hover i,
        .edit-nav-link.active i {
            background: var(--grad);
            color: #fff;
        }


/* ===============================
   SECTIONS
=============================== */

.edit-section {
    scroll-margin-top: 90px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    overflow: hidden;
}

.edit-section-header {
    min-height: 80px;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-heading-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 10px 20px -8px rgba(13,148,136,.55);
}

.edit-section-header h2 {
    color: var(--dark);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.edit-section-header p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.edit-section-body {
    padding: 24px;
}


/* ===============================
   PHOTO
=============================== */

.profile-photo-edit {
    display: flex;
    align-items: center;
    gap: 20px;
}

.edit-photo-wrapper {
    width: 96px;
    height: 96px;
    min-width: 96px;
}

.edit-profile-photo,
.edit-profile-initial {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--primary-soft-2);
}

.edit-profile-photo {
    object-fit: cover;
}

.edit-profile-initial {
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
}

.profile-photo-info {
    flex: 1;
}

    .profile-photo-info > strong {
        display: block;
        color: var(--dark);
        font-size: 14px;
        margin-bottom: 3px;
    }

    .profile-photo-info > span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 12px;
    }

.photo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-file-input {
    max-width: 260px;
    font-size: 12px;
    color: var(--text);
}

    .profile-file-input::file-selector-button {
        margin-right: 10px;
        padding: 7px 12px;
        border: 0;
        border-radius: 9px;
        background: #f1f5f9;
        color: var(--text);
        font-weight: 600;
        cursor: pointer;
    }

.form-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 24px 0;
}


/* ===============================
   FORM
=============================== */

.profile-form-group {
    margin-bottom: 5px;
}

    .profile-form-group label {
        display: block;
        color: var(--dark);
        font-size: 12.5px;
        font-weight: 600;
        margin-bottom: 7px;
    }

        .profile-form-group label span {
            color: #ef4444;
        }

.profile-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--dark);
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    transition: .2s;
}

    .profile-input:focus {
        border-color: #5eead4;
        box-shadow: 0 0 0 4px rgba(20,184,166,.15);
    }

.readonly-input {
    background: #f8fafc;
    color: var(--muted);
}

.profile-textarea {
    min-height: 130px;
    padding: 12px 14px;
    resize: vertical;
}

.profile-form-group small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.field-error {
    display: block;
    color: #dc2626;
    font-size: 11.5px;
    margin-top: 5px;
}

.textarea-help {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .textarea-help span {
        color: var(--muted);
        font-size: 11px;
        margin-top: 5px;
    }


/* ===============================
   BUTTON
=============================== */

.section-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.save-profile-btn {
    height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 13px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px -10px rgba(13,148,136,.65);
    transition: .25s;
}

    .save-profile-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 28px -10px rgba(13,148,136,.75);
    }


/* ===============================
   COMING SECTIONS
=============================== */

.coming-section {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .coming-section > div {
        text-align: center;
    }

    .coming-section i {
        display: block;
        color: var(--primary);
        font-size: 28px;
        margin-bottom: 8px;
    }

    .coming-section h3 {
        color: var(--dark);
        font-size: 15px;
        font-weight: 700;
    }

    .coming-section p {
        color: var(--muted);
        font-size: 12px;
        margin: 0;
    }


/* ========================================
   CANDIDATE TYPE
======================================== */

.candidate-type-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 680px;
    margin-top: 9px;
}

.candidate-type-card {
    position: relative;
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    transition: .2s;
}

    .candidate-type-card:hover {
        border-color: var(--primary);
        background: #f0fdfa;
    }

    .candidate-type-card:has(input:checked) {
        border-color: var(--primary);
        background: var(--primary-soft);
        box-shadow: 0 0 0 3px rgba(20,184,166,.15);
    }

.candidate-radio input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

.candidate-option-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.candidate-option-content {
    flex: 1;
}

    .candidate-option-content strong {
        display: block;
        color: var(--dark);
        font-size: 13px;
        margin-bottom: 3px;
    }

    .candidate-option-content small {
        color: var(--muted);
        font-size: 11px;
        line-height: 1.5;
    }

.experience-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.salary-input {
    position: relative;
}

    .salary-input > span {
        position: absolute;
        z-index: 2;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-dark);
        font-size: 13px;
        font-weight: 700;
    }

.salary-field {
    padding-left: 32px;
}


/* ========================================
   SKILLS
======================================== */

.skill-add-area {
    max-width: 680px;
}

.skill-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.add-skill-btn {
    min-width: 105px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(13,148,136,.65);
    transition: .25s;
}

    .add-skill-btn:hover {
        transform: translateY(-1px);
    }

.edit-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.edit-skill-tag {
    min-height: 36px;
    padding: 0 7px 0 14px;
    border: 1px solid var(--primary-soft-2);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.delete-skill-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: .2s;
}

    .delete-skill-btn:hover {
        background: #fee2e2;
        color: #dc2626;
    }

.skill-suggestions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.suggestion-title {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-suggestion {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: .2s;
}

    .skill-suggestion:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary-dark);
    }


/* ========================================
   SHARED: list headings / count pills
======================================== */

.current-skills-heading,
.experience-list-heading,
.education-list-heading,
.project-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

    .current-skills-heading strong,
    .experience-list-heading strong,
    .education-list-heading strong,
    .project-list-heading strong {
        display: block;
        color: var(--dark);
        font-size: 14px;
        margin-bottom: 2px;
    }

    .current-skills-heading > div > span,
    .experience-list-heading > div > span,
    .education-list-heading > div > span,
    .project-list-heading > div > span {
        color: var(--muted);
        font-size: 11.5px;
    }

.skill-count,
.experience-count,
.education-count,
.project-count {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
}


/* ========================================
   SHARED: add/edit form boxes
======================================== */

.experience-form-box,
.education-form-box,
.project-form-box {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.experience-form-heading,
.education-form-heading,
.project-form-heading {
    margin-bottom: 18px;
}

    .experience-form-heading strong,
    .education-form-heading strong,
    .project-form-heading strong {
        display: block;
        color: var(--dark);
        font-size: 14px;
        margin-bottom: 2px;
    }

    .experience-form-heading span,
    .education-form-heading > span,
    .project-form-heading > span {
        display: block;
        color: var(--muted);
        font-size: 11.5px;
    }

.experience-form-actions,
.education-form-actions,
.project-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}

.cancel-experience-btn {
    height: 46px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    transition: .2s;
}

    .cancel-experience-btn:hover {
        background: #f1f5f9;
    }

.current-job-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .current-job-checkbox input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

    .current-job-checkbox label {
        color: var(--text);
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
    }


/* ========================================
   SHARED: cards (experience / education / project)
======================================== */

.experience-card,
.education-card,
.project-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    transition: .25s;
}

    .experience-card:hover,
    .education-card:hover,
    .project-card:hover {
        border-color: var(--primary-soft-2);
        transform: translateY(-2px);
        box-shadow: 0 16px 30px -16px rgba(15,23,42,.18);
    }

.experience-company-icon,
.education-icon,
.project-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.education-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.project-icon {
    background: #ecfeff;
    color: #0891b2;
}

.experience-card-content,
.education-card-content,
.project-card-content {
    flex: 1;
    min-width: 0;
}

.experience-card-top,
.education-card-top,
.project-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .experience-card-top h3,
    .education-card-top h3,
    .project-card-top h3 {
        color: var(--dark);
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 3px;
    }

    .experience-card-top strong,
    .education-card-top strong,
    .project-card-top strong {
        display: block;
        color: var(--primary-dark);
        font-size: 12.5px;
        font-weight: 600;
    }

.experience-actions {
    display: flex;
    gap: 6px;
}

.experience-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: .2s;
}

    .experience-action-btn:hover {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary-dark);
    }

    .experience-action-btn.delete:hover {
        border-color: #fecaca;
        background: #fef2f2;
        color: #dc2626;
    }

.experience-meta,
.education-meta,
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
}

    .experience-meta span,
    .education-meta span,
    .project-meta span {
        color: var(--text);
        font-size: 12px;
    }

    .experience-meta i,
    .education-meta i,
    .project-meta i {
        margin-right: 4px;
        color: var(--primary);
    }

.experience-description,
.project-description {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-line;
}

.education-specialization {
    color: var(--text);
    font-size: 12px;
    margin-top: 5px;
}

.project-technologies {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
}

    .project-technologies i {
        margin-right: 5px;
        color: var(--primary);
    }

.project-link {
    margin-top: 12px;
    font-size: 12px;
}

    .project-link a {
        color: var(--primary-dark);
        font-weight: 700;
        text-decoration: none;
    }

        .project-link a:hover {
            color: var(--primary);
            text-decoration: underline;
        }


/* ========================================
   SHARED: empty states
======================================== */

.skills-empty-state,
.experience-empty-state,
.education-empty-state,
.project-empty-state {
    padding: 34px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
}

.skills-empty-icon,
.experience-empty-icon,
.education-empty-icon,
.project-empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.skills-empty-state strong,
.experience-empty-state strong,
.education-empty-state strong,
.project-empty-state strong {
    display: block;
    color: var(--dark);
    font-size: 14px;
}

.skills-empty-state > span,
.experience-empty-state span,
.education-empty-state span,
.project-empty-state span {
    display: block;
    max-width: 440px;
    margin: 4px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}


/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 1199px) {

    .edit-profile-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 4px;
    }

    .edit-nav-title {
        display: none;
    }

    .edit-nav-link {
        min-width: max-content;
        margin: 0;
    }
}

@media (max-width: 576px) {

    .edit-page-heading {
        display: block;
    }

    .view-profile-btn {
        display: inline-flex;
        margin-top: 14px;
    }

    .edit-section-body {
        padding: 18px;
    }

    .profile-photo-edit {
        align-items: flex-start;
    }

    .photo-actions {
        display: block;
    }

    .section-actions {
        justify-content: stretch;
    }

    .save-profile-btn {
        width: 100%;
    }

    .candidate-type-options,
    .experience-select-row,
    .skill-input-row {
        grid-template-columns: 1fr;
    }

    .add-skill-btn {
        width: 100%;
    }

    .current-skills-heading {
        align-items: flex-start;
    }

    .experience-card,
    .education-card,
    .project-card {
        align-items: flex-start;
    }

    .experience-card-top,
    .education-card-top,
    .project-card-top {
        display: block;
    }

    .experience-actions {
        margin-top: 10px;
    }

    .experience-form-actions,
    .education-form-actions,
    .project-form-actions {
        flex-direction: column;
    }

        .cancel-experience-btn,
        .experience-form-actions .save-profile-btn,
        .education-form-actions input,
        .project-form-actions input {
            width: 100%;
        }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}


/* ==========================================================
   PROFILE PHOTO  (matches your current markup)
   .profile-photo-section / .profile-photo-preview / .profile-photo-actions
========================================================== */

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-photo-preview {
    width: 104px;
    height: 104px;
    min-width: 104px;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad);
    box-shadow: 0 14px 28px -12px rgba(13,148,136,.6);
}

    .profile-photo-image,
    .profile-photo-preview .profile-initial {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 4px solid #fff;
    }

.profile-photo-image {
    object-fit: cover;
    background: #fff;
    display: block;
}

.profile-photo-preview .profile-initial {
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
}

.profile-photo-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* "Choose Photo" button (it is a <label> that wraps the file input) */
label.photo-upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    margin: 0;
    border: 0 !important;
    border-radius: 12px;
    background: var(--grad) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 22px -10px rgba(13,148,136,.65);
    transition: .25s;
}

    label.photo-upload-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 26px -10px rgba(13,148,136,.75);
    }

    label.photo-upload-btn i {
        font-size: 15px;
    }

/* hide the real file input, the label is the button */
.photo-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.btn-save-photo {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================================
   PHOTO EDITOR MODAL
========================================================== */

.photo-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

    .photo-editor-modal.active {
        display: flex;
    }

.photo-editor-box {
    width: 100%;
    max-width: 760px;
    max-height: 94vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 80px -20px rgba(15,23,42,.45);
}

.photo-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 26px;
    border-bottom: 1px solid #f1f5f9;
}

    .photo-editor-header h3 {
        margin: 0 0 3px;
        color: var(--dark);
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -.4px;
    }

    .photo-editor-header p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
    }

.photo-editor-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}

    .photo-editor-close:hover {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

.photo-editor-body {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 22px;
    padding: 22px 26px;
}

.crop-area {
    height: 360px;
    border-radius: 16px;
    background: #0f172a;
    overflow: hidden;
}

    .crop-area img {
        display: block;
        max-width: 100%;
    }

.photo-live-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 12px;
    border: 1px solid var(--primary-soft-2);
    border-radius: 16px;
    background: linear-gradient(160deg, #f0fdfa, #ecfeff);
    height: fit-content;
}

    .photo-live-preview > span {
        color: var(--primary-dark);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.round-preview {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 14px 26px -10px rgba(13,148,136,.55);
}

#photoPreview {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.photo-editor-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 26px 20px;
}

    .photo-editor-tools button {
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        color: var(--text);
        font-size: 16px;
        cursor: pointer;
        transition: .2s;
    }

        .photo-editor-tools button:hover {
            border-color: var(--primary);
            background: var(--primary-soft);
            color: var(--primary-dark);
        }

.photo-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    border-top: 1px dashed var(--border);
}

.btn-photo-cancel {
    height: 46px;
    padding: 0 22px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    .btn-photo-cancel:hover {
        background: #f1f5f9;
    }

.btn-photo-use {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px -10px rgba(13,148,136,.65);
    transition: .25s;
}

    .btn-photo-use:hover {
        transform: translateY(-2px);
    }


/* ==========================================================
   POPULAR SKILLS  (soft tag chips instead of plain buttons)
========================================================== */

.popular-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .popular-skills button {
        appearance: none;
        -webkit-appearance: none;
        padding: 7px 14px;
        border: 1px dashed #99f6e4;
        border-radius: 999px;
        background: #f0fdfa;
        color: var(--primary-dark);
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        cursor: pointer;
        box-shadow: none;
        transition: .2s;
    }

        .popular-skills button:hover {
            border-style: solid;
            border-color: transparent;
            background: var(--grad);
            color: #fff;
            transform: translateY(-1px);
        }


/* ==========================================================
   RESPONSIVE (new parts)
========================================================== */

@media (max-width: 767px) {

    .photo-editor-body {
        grid-template-columns: 1fr;
    }

    .crop-area {
        height: 300px;
    }

    .photo-live-preview {
        flex-direction: row;
        justify-content: center;
    }

    .round-preview {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {

    .profile-photo-section {
        align-items: flex-start;
    }

    .profile-photo-actions {
        flex-direction: column;
        align-items: stretch;
    }

    label.photo-upload-btn {
        justify-content: center;
    }

    .photo-editor-header,
    .photo-editor-body,
    .photo-editor-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .photo-editor-tools {
        padding: 0 18px 18px;
    }

    .photo-editor-footer {
        flex-direction: column-reverse;
    }

    .btn-photo-cancel,
    .btn-photo-use {
        width: 100%;
        justify-content: center;
    }
}
