.edit-profile {
    padding-bottom: 90px;
}
.profile-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.block-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.block-subtitle {
    margin: 0;
    font-size: 12px;
    color: #6b6b6b;
}
.edit-profile .icon-btn {
    border: none;
    background: #f2f4ff;
    color: #2b3cff;
    border-radius: 10px;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: static;
    width: auto;
    max-width: none;
    height: auto;
}
.edit-profile .icon-btn svg {
    width: 16px;
    height: 16px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.photo-slot {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f3f3;
    min-height: 90px;
    cursor: grab;
}
.photo-slot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-size: 12px;
    border: 1px dashed #d5d5d5;
    cursor: pointer;
}
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.photo-placeholder svg {
    width: 20px;
    height: 20px;
    fill: #9b9b9b;
}
.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-slot--main {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 190px;
}
.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.photo-slot:hover .photo-overlay {
    opacity: 1;
}
.photo-handle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.photo-handle svg {
    width: 18px;
    height: 18px;
    fill: #1b1b1b;
}
.photo-delete,
.photo-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.photo-edit {
    background: rgba(43, 60, 255, 0.85);
}
.photo-delete svg,
.photo-edit svg {
    width: 14px;
    height: 14px;
}
.photo-slot.drag-over {
    outline: 2px dashed #2b3cff;
    outline-offset: -4px;
}
.bio-body p {
    margin: 0;
    color: #444;
    font-size: 14px;
}
.bio-body textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dedede;
    padding: 10px;
    min-height: 90px;
}
.bio-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.field-grid {
    display: grid;
    gap: 12px;
}
.field-group label {
    display: block;
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 6px;
}
.city-display-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}
.city-display-value {
    flex: 1;
    font-size: 14px;
    color: var(--LUVIO-text, #1a1a1a);
}
.city-change-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid #dedede;
    background: #fff;
    color: #2b3cff;
    font-weight: 600;
    cursor: pointer;
}
.city-change-btn:hover {
    background: #f2f4ff;
}
.field-input,
.field-select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dedede;
    padding: 10px 12px;
    font-size: 14px;
    background: #ffffff;
}
.field-input.is-invalid {
    border-color: var(--LUVIO-error, #dc3545);
    background: rgba(220, 53, 69, 0.04);
}
.field-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: var(--LUVIO-error, #dc3545);
    font-weight: 500;
}
.field-error:not(:empty) {
    display: block;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.info-row:last-child {
    border-bottom: none;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #f2f4ff;
    color: #2b3cff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.verification-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.verification-status p {
    margin: 0;
    color: #6b6b6b;
    font-size: 13px;
}
.primary-btn {
    background: #2b3cff;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}
.toggle-row.is-locked {
    opacity: 0.6;
}
.toggle-row.is-locked::after {
    content: "Premium";
    font-size: 11px;
    font-weight: 700;
    color: #2b3cff;
}
.toggle-row input.is-hidden {
    display: none;
}
.toggle-row input {
    accent-color: #2b3cff;
    width: 18px;
    height: 18px;
}
.lock-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lock-title img {
    width: 16px;
    height: 16px;
}
.modal-options {
    display: grid;
    gap: 10px;
}
.modal-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}
.modal-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.modal-option svg {
    width: 18px;
    height: 18px;
}
.save-status {
    margin-top: 12px;
    font-size: 13px;
    color: #2b3cff;
    display: none;
}
.save-status.error {
    color: #ff4d4f;
}

/* City change modal (edit profile) */
.city-change-modal-dialog .modal-content {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.city-change-modal-dialog .city-modal-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b6b6b;
}
.city-change-modal-dialog .city-change-input {
    width: 100%;
    margin-bottom: 0;
}
.city-change-modal-dialog .city-suggestions {
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}
.city-change-modal-dialog .city-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f6f4ff;
    border: 1px solid rgba(129, 72, 247, 0.12);
    font-size: 13px;
    color: var(--LUVIO-text, #1a1a1a);
    cursor: pointer;
    margin-bottom: 6px;
}
.city-change-modal-dialog .city-suggestion:last-child {
    margin-bottom: 0;
}
.city-change-modal-dialog .city-suggestion:hover {
    background: rgba(129, 72, 247, 0.12);
}
@media (max-width: 576px) {
    .city-display-row {
        flex-wrap: wrap;
    }
    .city-change-btn {
        width: 100%;
    }
}
