.edit-page {
    min-height: 100vh;
    background: var(--bg-grey, #f5f6fa);
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.edit-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.edit-back svg {
    width: 22px;
    height: 22px;
    color: #333;
}

.edit-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.edit-save {
    padding: 6px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary, #6C8FF2));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-save:active {
    transform: scale(0.95);
}

.edit-save.saving {
    opacity: 0.6;
    pointer-events: none;
}

.edit-content {
    padding: 15px;
}

.avatar-section {
    text-align: center;
    padding: 20px 0;
}

.avatar-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary, #6C8FF2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.avatar-edit-icon svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.form-section {
    background: #fff;
    border-radius: 14px;
    padding: 5px 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
}

.form-group input:focus {
    border-color: var(--primary);
    background: #fff;
}

.gender-options {
    display: flex;
    gap: 10px;
}

.gender-option {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}

.gender-option.active {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f4ff;
    font-weight: 600;
}

.location-input {
    display: flex;
    gap: 10px;
}

.location-input input {
    flex: 1;
}

.location-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    background: #fafbfc;
    transition: all 0.2s;
}

.location-btn:hover {
    border-color: var(--primary);
}

.location-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.tag-section {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.tag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tag-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.tag-section-hint {
    font-size: 12px;
    color: #999;
}

.tag-category {
    margin-bottom: 14px;
}

.tag-category-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-option {
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background: #f5f6fa;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.tag-option:hover {
    background: #eef1ff;
}

.tag-option.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary, #6C8FF2));
    font-weight: 500;
}

.tag-option.active[data-type="hobby"] {
    background: linear-gradient(135deg, #2EC4B6, #5DD9CD);
}

.custom-tag-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.custom-tag-row input {
    flex: 1;
    height: 38px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}

.custom-tag-row input:focus {
    border-color: var(--primary);
}

.custom-tag-btn {
    padding: 0 16px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary, #6C8FF2));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.selected-count {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.selected-count span {
    color: var(--primary);
    font-weight: 600;
}