/* =====================================================================
   PROFILE PAGE - profil.html
   ===================================================================== */
.profile-page {
    max-width: var(--wrapper-max-width);
    margin: 0 auto;
}


.profile-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.profile-header-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.profile-title-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-title {
    margin: 0;
    color: var(--color-primary);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--letter-spacing-wide);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.profile-subtitle {
    margin: 0;
    font-size: var(--text-sm-plus);
    color: var(--color-gray-700);
}

.profile-summary-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--color-primary-lighter);
    border: 1px solid var(--color-primary-light);
}

.profile-summary-card--compact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
    border: 1px solid rgba(216, 27, 96, 0.2);
    box-shadow: 0 10px 18px rgba(216, 27, 96, 0.08);
    width: calc(100% - var(--space-3));
    margin: 0 auto;
    box-sizing: border-box;
}

.profile-summary-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-gray-600);
}

.profile-summary-title {
    font-weight: var(--font-bold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-summary-card--compact .profile-summary-infos {
    align-items: center;
}

.profile-summary-card--compact .profile-summary-stats {
    justify-content: center;
    font-size: var(--text-xs);
}

.profile-summary-card--compact .profile-avatar-large {
    width: 96px;
    height: 96px;
    margin: 0 auto;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    padding: 0;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large.is-editable {
    cursor: pointer;
}

.profile-avatar-large::after {
    content: '+';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
    pointer-events: none;
}

.profile-avatar-large.is-editable::after {
    opacity: 1;
    transform: scale(1);
}

.profile-avatar-large.is-editable:hover::after {
    filter: brightness(0.95);
}

.profile-avatar-large.is-uploading {
    opacity: 0.6;
    pointer-events: none;
}

.profile-avatar-large:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

.profile-avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-2);
    font-size: var(--text-sm-plus);
    color: var(--color-gray-700);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    display: block;
}

.profile-avatar-img[hidden] {
    display: none;
}

.profile-avatar-input {
    display: none;
}

.profile-summary-infos {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-username {
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    color: var(--color-primary);
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.profile-username:hover {
    text-decoration: underline;
}

.profile-role {
    font-size: var(--text-sm-plus);
    color: var(--color-gray-700);
}

.profile-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    width: 100%;
    justify-content: center;
    padding-top: var(--space-2);
    border-top: 1px dashed rgba(216, 27, 96, 0.2);
}

.profile-stat strong {
    color: var(--color-primary-dark);
}

.profile-layout {
    display: flex;
    gap: var(--space-6);
}

.profile-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-panel {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-primary-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: var(--space-4);
    position: relative;
}

.profile-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-4);
    right: var(--space-4);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(216, 27, 96, 0.35), rgba(216, 27, 96, 0));
    opacity: 0.35;
}


.profile-panel-title {
    margin: 0 0 var(--space-3);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid rgba(216, 27, 96, 0.12);
}

.profile-look-card {
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    width: 100%;
    text-align: left;
    color: var(--color-gray-700);
}

.profile-tags {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-primary-light);
}

.profile-tags-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.profile-tags-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-dark);
}

.profile-tags-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.profile-tags-toggle:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.06);
}

.profile-tags-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.profile-tags-selected {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
    min-height: 22px;
    align-items: center;
}

.profile-tags-empty {
    font-size: var(--text-xs);
    color: var(--color-gray-700);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(252, 228, 236, 0.5);
    border: 1px dashed rgba(216, 27, 96, 0.25);
}

/* Cropper Modal Backdrop (like items modal) */
.profile-cropper-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(76, 58, 99, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.profile-cropper-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.profile-cropper-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(120, 38, 70, 0.3);
    transform: scale(0.95);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

.profile-cropper-backdrop:not([hidden]) .profile-cropper-modal {
    transform: scale(1);
}

.profile-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid rgba(255, 106, 162, 0.2);
    flex-shrink: 0;
}

.profile-cropper-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.profile-cropper-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 106, 162, 0.3);
    background: transparent;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.profile-cropper-close:hover {
    background: rgba(255, 106, 162, 0.1);
    border-color: var(--color-primary);
}

.profile-cropper-body {
    padding: 20px 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-cropper-stage {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

#avatarCropperImage {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.profile-cropper-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.profile-cropper-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-tool-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-tool-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-tool-btn:active {
    transform: scale(0.95);
    background: #e9ecef;
}

.profile-toolbar-divider {
    width: 1px;
    height: 30px;
    background: #ddd;
    margin: 0 4px;
}

.profile-cropper-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.profile-zoom-display {
    min-width: 50px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

#avatarZoomRange {
    flex: 1;
}

.profile-cropper-hint {
    display: none;
}

.profile-cropper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 2px solid rgba(255, 106, 162, 0.2);
    flex-shrink: 0;
}

.profile-tags-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-lighter);
    border: 1px solid var(--color-primary-light);
    border-radius: 999px;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-primary-dark);
}

.profile-tags-badge-remove {
    border: none;
    background: transparent;
    color: var(--color-primary-dark);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    opacity: 0.7;
}

.profile-tags-badge-remove:hover {
    opacity: 1;
}

.profile-tags-dropdown {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: min(360px, calc(100vw - 24px));
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    max-height: min(60vh, 520px);
    overflow: auto;
    box-shadow: var(--shadow-md);
}

.profile-tags-menu-header {
    position: sticky;
    top: 0;
    background: var(--color-white);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-tags-menu-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-4);
}

.profile-tags-search-input {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-300);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-family);
    font-size: var(--text-sm-plus);
    box-sizing: border-box;
}

.profile-tags-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.profile-tags-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-tags-group[data-collapsed="true"] .profile-tags-option {
    display: none;
}

.profile-tags-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-tags-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 var(--space-2);
    cursor: pointer;
}

.profile-tags-group-toggle:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.profile-tags-group-title {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-primary);
}

.profile-tags-group-caret {
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.profile-tags-group[data-collapsed="true"] .profile-tags-group-caret {
    transform: rotate(-90deg);
}

.profile-tags-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.profile-tags-option:hover {
    background: var(--color-primary-lighter);
}

.profile-tags-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.profile-tags-option-label {
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    user-select: none;
}

.profile-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--text-sm-plus);
}

.profile-links-list a {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(252, 228, 236, 0.2);
    color: var(--color-primary);
    text-decoration: none;
}

.profile-links-list a:hover {
    background: rgba(252, 228, 236, 0.6);
    border-color: rgba(216, 27, 96, 0.25);
    text-decoration: none;
}

.profile-links-list a:focus-visible {
    outline: 2px solid rgba(216, 27, 96, 0.4);
    outline-offset: 2px;
}

.profile-shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.profile-shortcut-btn {
    flex: 1;
    text-align: left;
    border: 1px solid transparent;
    background: rgba(252, 228, 236, 0.35);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font: inherit;
    color: var(--color-primary);
    cursor: pointer;
}

.profile-shortcut-btn:hover {
    background: rgba(252, 228, 236, 0.75);
    color: var(--color-primary-dark);
    border-color: rgba(216, 27, 96, 0.25);
}

.profile-shortcut-btn:focus-visible {
    outline: 2px solid rgba(216, 27, 96, 0.4);
    outline-offset: 2px;
}

.profile-shortcut-open {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(216, 27, 96, 0.25);
    background: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.profile-shortcut-open:hover {
    background: rgba(255, 255, 255, 0.9);
}

.profile-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-section {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid #c7ccd6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: var(--space-4);
}

.profile-section--presentation {
    border-color: var(--color-primary-light);
    background: var(--color-white);
    position: relative;
}

.profile-section--presentation > * {
    position: relative;
    z-index: 1;
}

.profile-section--presentation .profile-section-header {
    align-items: flex-start;
}

.profile-section-header {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.profile-section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-section-subtitle {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.profile-section-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.profile-section-title {
    margin: 0;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
}

.profile-edit-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-edit-btn:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 6px 12px rgba(216, 27, 96, 0.25);
    transform: translateY(-1px);
}

.profile-presentation-shell {
    border-radius: var(--radius-md);
    border: 1px solid rgba(216, 27, 96, 0.18);
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 180px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.profile-presentation-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-presentation-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 2px solid rgba(216, 27, 96, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(252, 228, 236, 0.7));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    position: relative;
}

.profile-presentation-hero.is-split {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
}

.profile-presentation-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid var(--presentation-accent, rgba(216, 27, 96, 0.3));
    pointer-events: none;
    opacity: 0.6;
}

.profile-presentation-hero-media {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(216, 27, 96, 0.2);
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
}

.profile-presentation-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-presentation-hero-text h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--color-primary);
}

.profile-presentation-hero-text p {
    margin: var(--space-2) 0 0;
    color: var(--color-gray-700);
}

.profile-presentation-custom {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px dashed rgba(216, 27, 96, 0.2);
    display: grid;
    gap: var(--space-2);
}

.profile-custom-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-gray-700);
}

.profile-custom-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(216, 27, 96, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    box-sizing: border-box;
}

.profile-custom-color {
    padding: 4px;
    height: 36px;
}

.profile-custom-reset {
    margin-top: var(--space-2);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(216, 27, 96, 0.35);
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
    font-weight: var(--font-semibold);
    cursor: pointer;
}

.profile-custom-reset:hover {
    background: rgba(252, 228, 236, 0.7);
}

.profile-presentation-content,
.profile-presentation-preview {
    font-size: var(--text-base);
    color: var(--color-gray-800);
    line-height: var(--line-height-normal);
    word-break: break-word;
    white-space: normal;
}

.profile-presentation-content {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    background: #fff;
    overflow: auto;
}

.profile-presentation-content:hover {
    border-color: #999;
}

.profile-presentation-content > * + *,
.profile-presentation-preview > * + * {
    margin-top: var(--space-3);
}

.profile-presentation-content img,
.profile-presentation-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.profile-presentation-content table,
.profile-presentation-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0;
}

.profile-presentation-content th,
.profile-presentation-content td,
.profile-presentation-preview th,
.profile-presentation-preview td {
    border: 1px solid var(--color-primary-light);
    padding: var(--space-2);
    text-align: left;
}

.profile-presentation-content blockquote,
.profile-presentation-preview blockquote {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border-left: 3px solid var(--color-primary-light);
    background: rgba(252, 228, 236, 0.4);
    border-radius: var(--radius-sm);
}

.profile-presentation-content ul,
.profile-presentation-content ol,
.profile-presentation-preview ul,
.profile-presentation-preview ol {
    padding-left: 1.2rem;
    margin: var(--space-2) 0;
}

.profile-presentation-content a,
.profile-presentation-preview a {
    color: var(--color-primary-dark);
    font-weight: var(--font-semibold);
}

.profile-presentation-content code,
.profile-presentation-preview code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85em;
}

.profile-presentation-content pre,
.profile-presentation-preview pre {
    background: #f6f6f8;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    overflow: auto;
    border: 1px solid var(--color-gray-200);
}

.profile-presentation-content pre code,
.profile-presentation-preview pre code {
    background: none;
    padding: 0;
    font-size: 0.9em;
}

.profile-presentation-editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border: 1px solid rgba(216, 27, 96, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.75);
}

.profile-presentation-editor [hidden] {
    display: none !important;
}

.profile-editor-layout {
    display: flex;
    gap: var(--space-4);
}

.profile-editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2);
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
}

.profile-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.profile-toolbar-button {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
    font-weight: var(--font-semibold);
    color: var(--color-gray-700);
}

.profile-toolbar-button:hover {
    background: #e0e0e0;
}

.profile-toolbar-button.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.profile-toolbar-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: var(--text-xs);
}

.profile-toolbar-color {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 4px 6px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ddd;
}

.profile-toolbar-label {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
}

.profile-toolbar-color input[type="color"] {
    border: none;
    background: transparent;
    padding: 0;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.profile-toolbar-underline {
    text-decoration: underline;
}

.profile-toolbar-strike {
    text-decoration: line-through;
}

.profile-editor-surface {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-editor-quill {
    border: 2px dashed #ccc;
    border-radius: 8px;
    min-height: 400px;
    background: #fff;
    overflow: auto;
}

.profile-editor-quill .ql-container {
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.profile-editor-quill .ql-editor {
    min-height: 400px;
    padding: 20px;
}

.profile-editor-html {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    background: #fff;
    resize: vertical;
}

.profile-editor-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid #e0e0e0;
}

.profile-editor-cancel {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #999;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.profile-editor-cancel:hover {
    background: #f5f5f5;
}

.profile-editor-save {
    padding: 10px 24px;
    background: var(--color-success, #4caf50);
    border: none;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-fast);
}

.profile-editor-save:hover {
    background: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.profile-editor-save:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.profile-presentations-sidebar {
    width: 300px;
    padding: var(--space-3);
    background: #fafafa;
    border-left: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    max-height: calc(100vh - var(--space-6));
    overflow-y: auto;
    position: sticky;
    top: var(--space-4);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.profile-sidebar-title {
    margin: 0;
    font-size: var(--text-sm-plus);
    color: var(--color-primary);
}

.profile-sidebar-count {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid #e0e0e0;
}

.profile-presentations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-presentation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.profile-presentation-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.profile-presentation-card.is-active {
    border-color: var(--color-success, #4caf50);
    border-width: 2px;
}

.profile-presentation-card.is-selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(216, 27, 96, 0.15);
}

.profile-presentation-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.profile-presentation-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-presentation-name {
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 4px;
    width: 100%;
}

.profile-presentation-name:focus {
    outline: none;
    border-bottom: 1px solid var(--color-primary);
}

.profile-presentation-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: #c8e6c9;
    color: #2e7d32;
    border-radius: 4px;
    font-weight: 700;
    align-self: flex-start;
}

.profile-presentation-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-presentation-choose {
    padding: 4px 12px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition-fast);
}

.profile-presentation-choose:hover {
    background: #1976d2;
}

.profile-presentation-delete {
    padding: 4px 8px;
    background: transparent;
    color: #f44336;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.profile-presentation-delete:hover {
    background: #ffebee;
    border-radius: 4px;
}

.profile-new-presentation {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.profile-new-presentation:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.profile-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.profile-image-preview {
    margin: 16px 0;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.profile-image-preview-text {
    font-size: var(--text-xs);
    color: var(--color-gray-600);
}

.profile-placeholder-text {
    margin: 0;
    font-size: var(--text-base);
    color: var(--color-gray-800);
}

.profile-comments {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-comment-card {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: #fffaf5;
    border: 1px solid #f6d0b5;
}

.profile-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.profile-comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.profile-comment-header {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-gray-700);
}

.profile-comment-author {
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
}

.profile-comment-text {
    margin: 0;
    font-size: var(--text-base-minus);
    color: var(--color-gray-800);
}

@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .profile-panel {
        flex: 1 1 220px;
    }

    .profile-summary-card--compact {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .profile-summary-card--compact .profile-summary-infos {
        align-items: flex-start;
    }

    .profile-editor-layout {
        flex-direction: column;
    }

    .profile-presentations-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-summary-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .profile-summary-card--compact {
        flex-direction: column;
        text-align: center;
    }

    .profile-summary-card--compact .profile-summary-infos {
        align-items: center;
    }

    .profile-presentation-hero.is-split {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .profile-presentation-hero-media {
        max-width: 120px;
    }
}
